stripe 17.0.1 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (847) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/ca-certificates.crt +682 -518
  3. data/lib/stripe/api_requestor.rb +40 -44
  4. data/lib/stripe/api_version.rb +2 -2
  5. data/lib/stripe/errors.rb +3 -0
  6. data/lib/stripe/event_types.rb +61 -0
  7. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +7 -7
  8. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
  9. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  21. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  22. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  24. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  25. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
  27. data/lib/stripe/object_types.rb +14 -0
  28. data/lib/stripe/params/account_capability_list_params.rb +1 -1
  29. data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
  30. data/lib/stripe/params/account_capability_update_params.rb +1 -1
  31. data/lib/stripe/params/account_create_params.rb +210 -143
  32. data/lib/stripe/params/account_delete_params.rb +1 -1
  33. data/lib/stripe/params/account_external_account_create_params.rb +6 -6
  34. data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
  35. data/lib/stripe/params/account_external_account_list_params.rb +1 -1
  36. data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
  37. data/lib/stripe/params/account_external_account_update_params.rb +5 -5
  38. data/lib/stripe/params/account_link_create_params.rb +2 -2
  39. data/lib/stripe/params/account_list_params.rb +2 -2
  40. data/lib/stripe/params/account_login_link_create_params.rb +1 -1
  41. data/lib/stripe/params/account_person_create_params.rb +29 -29
  42. data/lib/stripe/params/account_person_delete_params.rb +1 -1
  43. data/lib/stripe/params/account_person_list_params.rb +2 -2
  44. data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
  45. data/lib/stripe/params/account_person_update_params.rb +29 -29
  46. data/lib/stripe/params/account_persons_params.rb +2 -2
  47. data/lib/stripe/params/account_reject_params.rb +1 -1
  48. data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
  49. data/lib/stripe/params/account_retrieve_params.rb +1 -1
  50. data/lib/stripe/params/account_session_create_params.rb +43 -43
  51. data/lib/stripe/params/account_update_params.rb +206 -139
  52. data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
  53. data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
  54. data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
  55. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
  56. data/lib/stripe/params/application_fee_list_params.rb +2 -2
  57. data/lib/stripe/params/application_fee_refund_create_params.rb +2 -2
  58. data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
  59. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
  60. data/lib/stripe/params/application_fee_refund_update_params.rb +2 -2
  61. data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
  62. data/lib/stripe/params/apps/secret_create_params.rb +2 -2
  63. data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
  64. data/lib/stripe/params/apps/secret_find_params.rb +2 -2
  65. data/lib/stripe/params/apps/secret_list_params.rb +2 -2
  66. data/lib/stripe/params/balance_retrieve_params.rb +1 -1
  67. data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
  68. data/lib/stripe/params/balance_settings_update_params.rb +5 -5
  69. data/lib/stripe/params/balance_transaction_list_params.rb +4 -4
  70. data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
  71. data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
  72. data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
  73. data/lib/stripe/params/billing/alert_create_params.rb +4 -4
  74. data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
  75. data/lib/stripe/params/billing/alert_list_params.rb +1 -1
  76. data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
  77. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +9 -6
  78. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +6 -2
  79. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
  80. data/lib/stripe/params/billing/credit_grant_create_params.rb +12 -8
  81. data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
  82. data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
  83. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
  84. data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
  85. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
  86. data/lib/stripe/params/billing/meter_create_params.rb +4 -4
  87. data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
  88. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
  89. data/lib/stripe/params/billing/meter_event_create_params.rb +2 -2
  90. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
  91. data/lib/stripe/params/billing/meter_list_params.rb +1 -1
  92. data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
  93. data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
  94. data/lib/stripe/params/billing/meter_update_params.rb +1 -1
  95. data/lib/stripe/params/billing_portal/configuration_create_params.rb +25 -18
  96. data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
  97. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
  98. data/lib/stripe/params/billing_portal/configuration_update_params.rb +25 -18
  99. data/lib/stripe/params/billing_portal/session_create_params.rb +23 -19
  100. data/lib/stripe/params/charge_capture_params.rb +4 -4
  101. data/lib/stripe/params/charge_create_params.rb +18 -18
  102. data/lib/stripe/params/charge_list_params.rb +2 -2
  103. data/lib/stripe/params/charge_retrieve_params.rb +1 -1
  104. data/lib/stripe/params/charge_search_params.rb +2 -2
  105. data/lib/stripe/params/charge_update_params.rb +7 -7
  106. data/lib/stripe/params/checkout/session_create_params.rb +359 -177
  107. data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
  108. data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
  109. data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
  110. data/lib/stripe/params/checkout/session_list_params.rb +7 -3
  111. data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
  112. data/lib/stripe/params/checkout/session_update_params.rb +185 -16
  113. data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
  114. data/lib/stripe/params/climate/order_create_params.rb +7 -3
  115. data/lib/stripe/params/climate/order_list_params.rb +1 -1
  116. data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
  117. data/lib/stripe/params/climate/order_update_params.rb +3 -3
  118. data/lib/stripe/params/climate/product_list_params.rb +1 -1
  119. data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
  120. data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
  121. data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
  122. data/lib/stripe/params/confirmation_token_create_params.rb +117 -67
  123. data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
  124. data/lib/stripe/params/country_spec_list_params.rb +1 -1
  125. data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
  126. data/lib/stripe/params/coupon_create_params.rb +5 -5
  127. data/lib/stripe/params/coupon_delete_params.rb +1 -1
  128. data/lib/stripe/params/coupon_list_params.rb +2 -2
  129. data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
  130. data/lib/stripe/params/coupon_update_params.rb +3 -3
  131. data/lib/stripe/params/credit_note_create_params.rb +44 -10
  132. data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
  133. data/lib/stripe/params/credit_note_list_params.rb +6 -2
  134. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +44 -10
  135. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +44 -10
  136. data/lib/stripe/params/credit_note_preview_params.rb +44 -10
  137. data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
  138. data/lib/stripe/params/credit_note_update_params.rb +2 -2
  139. data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
  140. data/lib/stripe/params/customer_balance_transaction_create_params.rb +3 -3
  141. data/lib/stripe/params/customer_balance_transaction_list_params.rb +32 -2
  142. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
  143. data/lib/stripe/params/customer_balance_transaction_update_params.rb +2 -2
  144. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
  145. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
  146. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
  147. data/lib/stripe/params/customer_cash_balance_update_params.rb +3 -3
  148. data/lib/stripe/params/customer_create_funding_instructions_params.rb +4 -4
  149. data/lib/stripe/params/customer_create_params.rb +17 -17
  150. data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
  151. data/lib/stripe/params/customer_delete_params.rb +1 -1
  152. data/lib/stripe/params/customer_fund_cash_balance_params.rb +3 -3
  153. data/lib/stripe/params/customer_funding_instructions_create_params.rb +4 -4
  154. data/lib/stripe/params/customer_list_params.rb +2 -2
  155. data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
  156. data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
  157. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
  158. data/lib/stripe/params/customer_payment_source_create_params.rb +3 -3
  159. data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
  160. data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
  161. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
  162. data/lib/stripe/params/customer_payment_source_update_params.rb +5 -5
  163. data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
  164. data/lib/stripe/params/customer_retrieve_params.rb +1 -1
  165. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
  166. data/lib/stripe/params/customer_search_params.rb +2 -2
  167. data/lib/stripe/params/customer_session_create_params.rb +97 -9
  168. data/lib/stripe/params/customer_tax_id_create_params.rb +2 -2
  169. data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
  170. data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
  171. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
  172. data/lib/stripe/params/customer_update_params.rb +17 -17
  173. data/lib/stripe/params/dispute_close_params.rb +1 -1
  174. data/lib/stripe/params/dispute_list_params.rb +2 -2
  175. data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
  176. data/lib/stripe/params/dispute_update_params.rb +12 -12
  177. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
  178. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
  179. data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
  180. data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
  181. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
  182. data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
  183. data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
  184. data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
  185. data/lib/stripe/params/event_list_params.rb +2 -2
  186. data/lib/stripe/params/event_retrieve_params.rb +1 -1
  187. data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
  188. data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
  189. data/lib/stripe/params/file_create_params.rb +5 -5
  190. data/lib/stripe/params/file_link_create_params.rb +2 -2
  191. data/lib/stripe/params/file_link_list_params.rb +2 -2
  192. data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
  193. data/lib/stripe/params/file_link_update_params.rb +2 -2
  194. data/lib/stripe/params/file_list_params.rb +2 -2
  195. data/lib/stripe/params/file_retrieve_params.rb +1 -1
  196. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
  197. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
  198. data/lib/stripe/params/financial_connections/account_list_params.rb +8 -5
  199. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
  200. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
  201. data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
  202. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
  203. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
  204. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
  205. data/lib/stripe/params/financial_connections/session_create_params.rb +9 -6
  206. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
  207. data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
  208. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
  209. data/lib/stripe/params/forwarding/request_create_params.rb +4 -4
  210. data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
  211. data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
  212. data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
  213. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
  214. data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
  215. data/lib/stripe/params/identity/verification_session_create_params.rb +14 -10
  216. data/lib/stripe/params/identity/verification_session_list_params.rb +8 -4
  217. data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
  218. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
  219. data/lib/stripe/params/identity/verification_session_update_params.rb +9 -9
  220. data/lib/stripe/params/invoice_add_lines_params.rb +48 -18
  221. data/lib/stripe/params/invoice_attach_payment_params.rb +5 -2
  222. data/lib/stripe/params/invoice_create_params.rb +77 -48
  223. data/lib/stripe/params/invoice_create_preview_params.rb +257 -80
  224. data/lib/stripe/params/invoice_delete_params.rb +1 -1
  225. data/lib/stripe/params/invoice_finalize_invoice_params.rb +2 -2
  226. data/lib/stripe/params/invoice_item_create_params.rb +33 -13
  227. data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
  228. data/lib/stripe/params/invoice_item_list_params.rb +7 -3
  229. data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
  230. data/lib/stripe/params/invoice_item_update_params.rb +28 -12
  231. data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
  232. data/lib/stripe/params/invoice_line_item_update_params.rb +31 -16
  233. data/lib/stripe/params/invoice_list_params.rb +8 -4
  234. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
  235. data/lib/stripe/params/invoice_pay_params.rb +1 -1
  236. data/lib/stripe/params/invoice_payment_list_params.rb +28 -3
  237. data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
  238. data/lib/stripe/params/invoice_remove_lines_params.rb +3 -3
  239. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
  240. data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
  241. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
  242. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
  243. data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
  244. data/lib/stripe/params/invoice_search_params.rb +2 -2
  245. data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
  246. data/lib/stripe/params/invoice_update_lines_params.rb +48 -18
  247. data/lib/stripe/params/invoice_update_params.rb +70 -45
  248. data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
  249. data/lib/stripe/params/issuing/authorization_approve_params.rb +3 -3
  250. data/lib/stripe/params/issuing/authorization_capture_params.rb +139 -14
  251. data/lib/stripe/params/issuing/authorization_create_params.rb +124 -29
  252. data/lib/stripe/params/issuing/authorization_decline_params.rb +2 -2
  253. data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
  254. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +89 -9
  255. data/lib/stripe/params/issuing/authorization_increment_params.rb +3 -3
  256. data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
  257. data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
  258. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
  259. data/lib/stripe/params/issuing/authorization_reverse_params.rb +2 -2
  260. data/lib/stripe/params/issuing/authorization_update_params.rb +2 -2
  261. data/lib/stripe/params/issuing/card_create_params.rb +36 -15
  262. data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
  263. data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
  264. data/lib/stripe/params/issuing/card_list_params.rb +2 -2
  265. data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
  266. data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
  267. data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
  268. data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
  269. data/lib/stripe/params/issuing/card_update_params.rb +14 -14
  270. data/lib/stripe/params/issuing/cardholder_create_params.rb +26 -26
  271. data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
  272. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
  273. data/lib/stripe/params/issuing/cardholder_update_params.rb +25 -25
  274. data/lib/stripe/params/issuing/dispute_create_params.rb +13 -13
  275. data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
  276. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
  277. data/lib/stripe/params/issuing/dispute_submit_params.rb +2 -2
  278. data/lib/stripe/params/issuing/dispute_update_params.rb +12 -12
  279. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
  280. data/lib/stripe/params/issuing/personalization_design_create_params.rb +4 -4
  281. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
  282. data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
  283. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
  284. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
  285. data/lib/stripe/params/issuing/personalization_design_update_params.rb +4 -4
  286. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
  287. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
  288. data/lib/stripe/params/issuing/token_list_params.rb +2 -2
  289. data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
  290. data/lib/stripe/params/issuing/token_update_params.rb +1 -1
  291. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +141 -16
  292. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +141 -16
  293. data/lib/stripe/params/issuing/transaction_list_params.rb +2 -2
  294. data/lib/stripe/params/issuing/transaction_refund_params.rb +2 -2
  295. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
  296. data/lib/stripe/params/issuing/transaction_update_params.rb +2 -2
  297. data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
  298. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  299. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  300. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  301. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +2 -2
  302. data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
  303. data/lib/stripe/params/payment_intent_capture_params.rb +243 -6
  304. data/lib/stripe/params/payment_intent_confirm_params.rb +544 -162
  305. data/lib/stripe/params/payment_intent_create_params.rb +568 -178
  306. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +242 -5
  307. data/lib/stripe/params/payment_intent_list_params.rb +6 -2
  308. data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
  309. data/lib/stripe/params/payment_intent_search_params.rb +2 -2
  310. data/lib/stripe/params/payment_intent_update_params.rb +550 -160
  311. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
  312. data/lib/stripe/params/payment_link_create_params.rb +134 -73
  313. data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
  314. data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
  315. data/lib/stripe/params/payment_link_list_params.rb +1 -1
  316. data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
  317. data/lib/stripe/params/payment_link_update_params.rb +128 -54
  318. data/lib/stripe/params/payment_method_attach_params.rb +5 -2
  319. data/lib/stripe/params/payment_method_configuration_create_params.rb +227 -143
  320. data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
  321. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
  322. data/lib/stripe/params/payment_method_configuration_update_params.rb +227 -143
  323. data/lib/stripe/params/payment_method_create_params.rb +124 -60
  324. data/lib/stripe/params/payment_method_detach_params.rb +1 -1
  325. data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
  326. data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
  327. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
  328. data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
  329. data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
  330. data/lib/stripe/params/payment_method_list_params.rb +10 -2
  331. data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
  332. data/lib/stripe/params/payment_method_update_params.rb +27 -8
  333. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  334. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  335. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  336. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  337. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  338. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  339. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  340. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  341. data/lib/stripe/params/payout_cancel_params.rb +1 -1
  342. data/lib/stripe/params/payout_create_params.rb +2 -2
  343. data/lib/stripe/params/payout_list_params.rb +3 -3
  344. data/lib/stripe/params/payout_retrieve_params.rb +1 -1
  345. data/lib/stripe/params/payout_reverse_params.rb +2 -2
  346. data/lib/stripe/params/payout_update_params.rb +2 -2
  347. data/lib/stripe/params/plan_create_params.rb +28 -8
  348. data/lib/stripe/params/plan_delete_params.rb +1 -1
  349. data/lib/stripe/params/plan_list_params.rb +2 -2
  350. data/lib/stripe/params/plan_retrieve_params.rb +1 -1
  351. data/lib/stripe/params/plan_update_params.rb +3 -3
  352. data/lib/stripe/params/price_create_params.rb +55 -15
  353. data/lib/stripe/params/price_list_params.rb +3 -3
  354. data/lib/stripe/params/price_retrieve_params.rb +1 -1
  355. data/lib/stripe/params/price_search_params.rb +2 -2
  356. data/lib/stripe/params/price_update_params.rb +27 -7
  357. data/lib/stripe/params/product_create_params.rb +49 -16
  358. data/lib/stripe/params/product_delete_params.rb +1 -1
  359. data/lib/stripe/params/product_feature_create_params.rb +2 -2
  360. data/lib/stripe/params/product_feature_delete_params.rb +1 -1
  361. data/lib/stripe/params/product_feature_list_params.rb +1 -1
  362. data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
  363. data/lib/stripe/params/product_list_params.rb +3 -3
  364. data/lib/stripe/params/product_retrieve_params.rb +1 -1
  365. data/lib/stripe/params/product_search_params.rb +2 -2
  366. data/lib/stripe/params/product_update_params.rb +7 -7
  367. data/lib/stripe/params/promotion_code_create_params.rb +11 -7
  368. data/lib/stripe/params/promotion_code_list_params.rb +6 -2
  369. data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
  370. data/lib/stripe/params/promotion_code_update_params.rb +4 -4
  371. data/lib/stripe/params/quote_accept_params.rb +1 -1
  372. data/lib/stripe/params/quote_cancel_params.rb +1 -1
  373. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
  374. data/lib/stripe/params/quote_create_params.rb +45 -19
  375. data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
  376. data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
  377. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
  378. data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
  379. data/lib/stripe/params/quote_list_params.rb +6 -2
  380. data/lib/stripe/params/quote_pdf_params.rb +1 -1
  381. data/lib/stripe/params/quote_retrieve_params.rb +1 -1
  382. data/lib/stripe/params/quote_update_params.rb +42 -16
  383. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
  384. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
  385. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
  386. data/lib/stripe/params/radar/value_list_create_params.rb +3 -3
  387. data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
  388. data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
  389. data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
  390. data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
  391. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
  392. data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
  393. data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
  394. data/lib/stripe/params/radar/value_list_update_params.rb +2 -2
  395. data/lib/stripe/params/refund_cancel_params.rb +1 -1
  396. data/lib/stripe/params/refund_create_params.rb +3 -3
  397. data/lib/stripe/params/refund_expire_params.rb +1 -1
  398. data/lib/stripe/params/refund_list_params.rb +2 -2
  399. data/lib/stripe/params/refund_retrieve_params.rb +1 -1
  400. data/lib/stripe/params/refund_update_params.rb +2 -2
  401. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -4
  402. data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
  403. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
  404. data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
  405. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
  406. data/lib/stripe/params/review_approve_params.rb +1 -1
  407. data/lib/stripe/params/review_list_params.rb +2 -2
  408. data/lib/stripe/params/review_retrieve_params.rb +1 -1
  409. data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
  410. data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
  411. data/lib/stripe/params/setup_intent_confirm_params.rb +223 -93
  412. data/lib/stripe/params/setup_intent_create_params.rb +241 -101
  413. data/lib/stripe/params/setup_intent_list_params.rb +6 -2
  414. data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
  415. data/lib/stripe/params/setup_intent_update_params.rb +231 -91
  416. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
  417. data/lib/stripe/params/shipping_rate_create_params.rb +8 -8
  418. data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
  419. data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
  420. data/lib/stripe/params/shipping_rate_update_params.rb +4 -4
  421. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
  422. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
  423. data/lib/stripe/params/source_create_params.rb +16 -16
  424. data/lib/stripe/params/source_detach_params.rb +1 -1
  425. data/lib/stripe/params/source_retrieve_params.rb +1 -1
  426. data/lib/stripe/params/source_transaction_list_params.rb +1 -1
  427. data/lib/stripe/params/source_update_params.rb +14 -14
  428. data/lib/stripe/params/source_verify_params.rb +1 -1
  429. data/lib/stripe/params/subscription_cancel_params.rb +2 -2
  430. data/lib/stripe/params/subscription_create_params.rb +131 -63
  431. data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
  432. data/lib/stripe/params/subscription_item_create_params.rb +25 -15
  433. data/lib/stripe/params/subscription_item_delete_params.rb +18 -4
  434. data/lib/stripe/params/subscription_item_list_params.rb +1 -1
  435. data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
  436. data/lib/stripe/params/subscription_item_update_params.rb +25 -15
  437. data/lib/stripe/params/subscription_list_params.rb +11 -7
  438. data/lib/stripe/params/subscription_migrate_params.rb +3 -3
  439. data/lib/stripe/params/subscription_resume_params.rb +3 -3
  440. data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
  441. data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
  442. data/lib/stripe/params/subscription_schedule_create_params.rb +119 -45
  443. data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
  444. data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
  445. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
  446. data/lib/stripe/params/subscription_schedule_update_params.rb +113 -43
  447. data/lib/stripe/params/subscription_search_params.rb +2 -2
  448. data/lib/stripe/params/subscription_update_params.rb +126 -62
  449. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  450. data/lib/stripe/params/tax/calculation_create_params.rb +16 -16
  451. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
  452. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
  453. data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
  454. data/lib/stripe/params/tax/registration_create_params.rb +190 -164
  455. data/lib/stripe/params/tax/registration_list_params.rb +1 -1
  456. data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
  457. data/lib/stripe/params/tax/registration_update_params.rb +1 -1
  458. data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
  459. data/lib/stripe/params/tax/settings_update_params.rb +5 -5
  460. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +2 -2
  461. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +12 -12
  462. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
  463. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
  464. data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
  465. data/lib/stripe/params/tax_code_list_params.rb +1 -1
  466. data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
  467. data/lib/stripe/params/tax_id_create_params.rb +8 -5
  468. data/lib/stripe/params/tax_id_delete_params.rb +1 -1
  469. data/lib/stripe/params/tax_id_list_params.rb +7 -4
  470. data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
  471. data/lib/stripe/params/tax_rate_create_params.rb +2 -2
  472. data/lib/stripe/params/tax_rate_list_params.rb +2 -2
  473. data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
  474. data/lib/stripe/params/tax_rate_update_params.rb +2 -2
  475. data/lib/stripe/params/terminal/configuration_create_params.rb +72 -46
  476. data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
  477. data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
  478. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
  479. data/lib/stripe/params/terminal/configuration_update_params.rb +72 -46
  480. data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
  481. data/lib/stripe/params/terminal/location_create_params.rb +6 -6
  482. data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
  483. data/lib/stripe/params/terminal/location_list_params.rb +1 -1
  484. data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
  485. data/lib/stripe/params/terminal/location_update_params.rb +6 -6
  486. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  487. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
  488. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +14 -14
  489. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +5 -5
  490. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +4 -4
  491. data/lib/stripe/params/terminal/reader_create_params.rb +2 -2
  492. data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
  493. data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
  494. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +5 -5
  495. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +5 -5
  496. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +4 -4
  497. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +4 -4
  498. data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
  499. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +9 -9
  500. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
  501. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
  502. data/lib/stripe/params/terminal/reader_update_params.rb +2 -2
  503. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +117 -67
  504. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +3 -3
  505. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +142 -14
  506. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +127 -29
  507. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
  508. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +92 -9
  509. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +3 -3
  510. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
  511. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +2 -2
  512. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
  513. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
  514. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
  515. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
  516. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
  517. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
  518. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
  519. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
  520. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +144 -16
  521. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +144 -16
  522. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +2 -2
  523. data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
  524. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +5 -5
  525. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
  526. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
  527. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
  528. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
  529. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
  530. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
  531. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
  532. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
  533. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  534. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
  535. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
  536. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
  537. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  538. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
  539. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
  540. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
  541. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  542. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
  543. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +4 -4
  544. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +4 -4
  545. data/lib/stripe/params/token_create_params.rb +86 -67
  546. data/lib/stripe/params/token_retrieve_params.rb +1 -1
  547. data/lib/stripe/params/topup_cancel_params.rb +1 -1
  548. data/lib/stripe/params/topup_create_params.rb +3 -3
  549. data/lib/stripe/params/topup_list_params.rb +3 -3
  550. data/lib/stripe/params/topup_retrieve_params.rb +1 -1
  551. data/lib/stripe/params/topup_update_params.rb +2 -2
  552. data/lib/stripe/params/transfer_create_params.rb +4 -4
  553. data/lib/stripe/params/transfer_list_params.rb +2 -2
  554. data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
  555. data/lib/stripe/params/transfer_reversal_create_params.rb +2 -2
  556. data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
  557. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
  558. data/lib/stripe/params/transfer_reversal_update_params.rb +2 -2
  559. data/lib/stripe/params/transfer_update_params.rb +2 -2
  560. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +2 -2
  561. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
  562. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
  563. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +2 -2
  564. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
  565. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
  566. data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
  567. data/lib/stripe/params/treasury/financial_account_create_params.rb +17 -17
  568. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
  569. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +14 -14
  570. data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
  571. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
  572. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
  573. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +14 -14
  574. data/lib/stripe/params/treasury/financial_account_update_params.rb +18 -18
  575. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
  576. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +3 -3
  577. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
  578. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
  579. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
  580. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
  581. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
  582. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
  583. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +13 -13
  584. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
  585. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
  586. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
  587. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
  588. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
  589. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
  590. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
  591. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +7 -7
  592. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
  593. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
  594. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
  595. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
  596. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
  597. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
  598. data/lib/stripe/params/treasury/received_credit_create_params.rb +4 -4
  599. data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
  600. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
  601. data/lib/stripe/params/treasury/received_debit_create_params.rb +4 -4
  602. data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
  603. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
  604. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
  605. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
  606. data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
  607. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
  608. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  609. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
  610. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
  611. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
  612. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  613. data/lib/stripe/params/v2/core/account_create_params.rb +2154 -0
  614. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  615. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  616. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  617. data/lib/stripe/params/v2/core/account_token_create_params.rb +1048 -0
  618. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  619. data/lib/stripe/params/v2/core/account_update_params.rb +2207 -0
  620. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
  621. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  622. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  623. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  624. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
  625. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  626. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
  627. data/lib/stripe/params/v2/core/event_destination_create_params.rb +8 -4
  628. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
  629. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
  630. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
  631. data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
  632. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
  633. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
  634. data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
  635. data/lib/stripe/params/v2/core/event_list_params.rb +25 -2
  636. data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
  637. data/lib/stripe/params/webhook_endpoint_create_params.rb +2 -2
  638. data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
  639. data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
  640. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
  641. data/lib/stripe/params/webhook_endpoint_update_params.rb +2 -2
  642. data/lib/stripe/params.rb +29 -0
  643. data/lib/stripe/request_params.rb +116 -0
  644. data/lib/stripe/resources/account.rb +94 -68
  645. data/lib/stripe/resources/account_link.rb +1 -1
  646. data/lib/stripe/resources/account_session.rb +45 -45
  647. data/lib/stripe/resources/apple_pay_domain.rb +1 -1
  648. data/lib/stripe/resources/application_fee.rb +2 -2
  649. data/lib/stripe/resources/application_fee_refund.rb +2 -2
  650. data/lib/stripe/resources/apps/secret.rb +3 -3
  651. data/lib/stripe/resources/balance.rb +21 -21
  652. data/lib/stripe/resources/balance_settings.rb +5 -5
  653. data/lib/stripe/resources/balance_transaction.rb +3 -3
  654. data/lib/stripe/resources/bank_account.rb +16 -16
  655. data/lib/stripe/resources/billing/alert.rb +4 -4
  656. data/lib/stripe/resources/billing/alert_triggered.rb +1 -1
  657. data/lib/stripe/resources/billing/credit_balance_summary.rb +8 -6
  658. data/lib/stripe/resources/billing/credit_balance_transaction.rb +9 -9
  659. data/lib/stripe/resources/billing/credit_grant.rb +9 -7
  660. data/lib/stripe/resources/billing/meter.rb +5 -5
  661. data/lib/stripe/resources/billing/meter_event.rb +2 -2
  662. data/lib/stripe/resources/billing/meter_event_adjustment.rb +2 -2
  663. data/lib/stripe/resources/billing/meter_event_summary.rb +1 -1
  664. data/lib/stripe/resources/billing_portal/configuration.rb +22 -18
  665. data/lib/stripe/resources/billing_portal/session.rb +20 -18
  666. data/lib/stripe/resources/capability.rb +22 -22
  667. data/lib/stripe/resources/card.rb +3 -3
  668. data/lib/stripe/resources/cash_balance.rb +5 -3
  669. data/lib/stripe/resources/charge.rb +198 -138
  670. data/lib/stripe/resources/checkout/session.rb +266 -140
  671. data/lib/stripe/resources/climate/order.rb +8 -4
  672. data/lib/stripe/resources/climate/product.rb +5 -1
  673. data/lib/stripe/resources/climate/supplier.rb +1 -1
  674. data/lib/stripe/resources/confirmation_token.rb +147 -105
  675. data/lib/stripe/resources/connect_collection_transfer.rb +1 -1
  676. data/lib/stripe/resources/country_spec.rb +3 -3
  677. data/lib/stripe/resources/coupon.rb +6 -6
  678. data/lib/stripe/resources/credit_note.rb +33 -13
  679. data/lib/stripe/resources/credit_note_line_item.rb +12 -6
  680. data/lib/stripe/resources/customer.rb +21 -17
  681. data/lib/stripe/resources/customer_balance_transaction.rb +8 -6
  682. data/lib/stripe/resources/customer_cash_balance_transaction.rb +23 -21
  683. data/lib/stripe/resources/customer_session.rb +90 -6
  684. data/lib/stripe/resources/discount.rb +5 -3
  685. data/lib/stripe/resources/dispute.rb +23 -23
  686. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -2
  687. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +1 -1
  688. data/lib/stripe/resources/entitlements/feature.rb +1 -1
  689. data/lib/stripe/resources/ephemeral_key.rb +1 -1
  690. data/lib/stripe/resources/event.rb +4 -4
  691. data/lib/stripe/resources/exchange_rate.rb +2 -2
  692. data/lib/stripe/resources/file.rb +4 -4
  693. data/lib/stripe/resources/file_link.rb +2 -2
  694. data/lib/stripe/resources/financial_connections/account.rb +37 -13
  695. data/lib/stripe/resources/financial_connections/session.rb +7 -5
  696. data/lib/stripe/resources/financial_connections/transaction.rb +2 -2
  697. data/lib/stripe/resources/forwarding/request.rb +7 -7
  698. data/lib/stripe/resources/funding_instructions.rb +35 -35
  699. data/lib/stripe/resources/identity/verification_report.rb +28 -28
  700. data/lib/stripe/resources/identity/verification_session.rb +26 -24
  701. data/lib/stripe/resources/invoice.rb +119 -85
  702. data/lib/stripe/resources/invoice_item.rb +29 -14
  703. data/lib/stripe/resources/invoice_line_item.rb +35 -20
  704. data/lib/stripe/resources/invoice_payment.rb +6 -4
  705. data/lib/stripe/resources/invoice_rendering_template.rb +2 -2
  706. data/lib/stripe/resources/issuing/authorization.rb +120 -40
  707. data/lib/stripe/resources/issuing/card.rb +69 -23
  708. data/lib/stripe/resources/issuing/cardholder.rb +28 -28
  709. data/lib/stripe/resources/issuing/dispute.rb +18 -18
  710. data/lib/stripe/resources/issuing/personalization_design.rb +5 -5
  711. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -2
  712. data/lib/stripe/resources/issuing/token.rb +8 -8
  713. data/lib/stripe/resources/issuing/transaction.rb +145 -29
  714. data/lib/stripe/resources/line_item.rb +30 -5
  715. data/lib/stripe/resources/login_link.rb +1 -1
  716. data/lib/stripe/resources/mandate.rb +77 -23
  717. data/lib/stripe/resources/payment_attempt_record.rb +2010 -0
  718. data/lib/stripe/resources/payment_intent.rb +413 -178
  719. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  720. data/lib/stripe/resources/payment_link.rb +101 -54
  721. data/lib/stripe/resources/payment_method.rb +174 -98
  722. data/lib/stripe/resources/payment_method_configuration.rb +243 -107
  723. data/lib/stripe/resources/payment_method_domain.rb +14 -14
  724. data/lib/stripe/resources/payment_record.rb +2140 -0
  725. data/lib/stripe/resources/payout.rb +12 -12
  726. data/lib/stripe/resources/person.rb +43 -43
  727. data/lib/stripe/resources/plan.rb +28 -8
  728. data/lib/stripe/resources/price.rb +54 -14
  729. data/lib/stripe/resources/product.rb +12 -12
  730. data/lib/stripe/resources/product_feature.rb +1 -1
  731. data/lib/stripe/resources/promotion_code.rb +10 -8
  732. data/lib/stripe/resources/quote.rb +39 -37
  733. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -2
  734. data/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
  735. data/lib/stripe/resources/radar/value_list.rb +4 -4
  736. data/lib/stripe/resources/radar/value_list_item.rb +2 -2
  737. data/lib/stripe/resources/refund.rb +87 -40
  738. data/lib/stripe/resources/reporting/report_run.rb +4 -4
  739. data/lib/stripe/resources/reporting/report_type.rb +4 -4
  740. data/lib/stripe/resources/reserve/hold.rb +67 -0
  741. data/lib/stripe/resources/reserve/plan.rb +78 -0
  742. data/lib/stripe/resources/reserve/release.rb +65 -0
  743. data/lib/stripe/resources/reversal.rb +4 -4
  744. data/lib/stripe/resources/review.rb +4 -4
  745. data/lib/stripe/resources/setup_attempt.rb +74 -46
  746. data/lib/stripe/resources/setup_intent.rb +163 -49
  747. data/lib/stripe/resources/shipping_rate.rb +9 -9
  748. data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -3
  749. data/lib/stripe/resources/source.rb +38 -38
  750. data/lib/stripe/resources/source_mandate_notification.rb +7 -7
  751. data/lib/stripe/resources/source_transaction.rb +6 -6
  752. data/lib/stripe/resources/subscription.rb +105 -55
  753. data/lib/stripe/resources/subscription_item.rb +8 -8
  754. data/lib/stripe/resources/subscription_schedule.rb +37 -35
  755. data/lib/stripe/resources/tax/association.rb +86 -0
  756. data/lib/stripe/resources/tax/calculation.rb +26 -26
  757. data/lib/stripe/resources/tax/calculation_line_item.rb +11 -11
  758. data/lib/stripe/resources/tax/registration.rb +176 -144
  759. data/lib/stripe/resources/tax/settings.rb +9 -9
  760. data/lib/stripe/resources/tax/transaction.rb +21 -21
  761. data/lib/stripe/resources/tax/transaction_line_item.rb +7 -7
  762. data/lib/stripe/resources/tax_id.rb +10 -6
  763. data/lib/stripe/resources/tax_rate.rb +3 -3
  764. data/lib/stripe/resources/terminal/configuration.rb +68 -36
  765. data/lib/stripe/resources/terminal/connection_token.rb +1 -1
  766. data/lib/stripe/resources/terminal/location.rb +7 -7
  767. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  768. data/lib/stripe/resources/terminal/reader.rb +64 -62
  769. data/lib/stripe/resources/test_helpers/test_clock.rb +3 -3
  770. data/lib/stripe/resources/token.rb +5 -5
  771. data/lib/stripe/resources/topup.rb +4 -4
  772. data/lib/stripe/resources/transfer.rb +6 -6
  773. data/lib/stripe/resources/treasury/credit_reversal.rb +5 -5
  774. data/lib/stripe/resources/treasury/debit_reversal.rb +6 -6
  775. data/lib/stripe/resources/treasury/financial_account.rb +8 -8
  776. data/lib/stripe/resources/treasury/financial_account_features.rb +22 -22
  777. data/lib/stripe/resources/treasury/inbound_transfer.rb +13 -13
  778. data/lib/stripe/resources/treasury/outbound_payment.rb +18 -18
  779. data/lib/stripe/resources/treasury/outbound_transfer.rb +16 -16
  780. data/lib/stripe/resources/treasury/received_credit.rb +19 -19
  781. data/lib/stripe/resources/treasury/received_debit.rb +17 -15
  782. data/lib/stripe/resources/treasury/transaction.rb +15 -15
  783. data/lib/stripe/resources/treasury/transaction_entry.rb +14 -14
  784. data/lib/stripe/resources/v2/billing/meter_event.rb +3 -2
  785. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -1
  786. data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
  787. data/lib/stripe/resources/v2/core/account.rb +3586 -0
  788. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  789. data/lib/stripe/resources/v2/core/account_person.rb +487 -0
  790. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  791. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  792. data/lib/stripe/resources/v2/core/event.rb +6 -4
  793. data/lib/stripe/resources/v2/core/event_destination.rb +9 -5
  794. data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
  795. data/lib/stripe/resources/webhook_endpoint.rb +2 -2
  796. data/lib/stripe/resources.rb +31 -0
  797. data/lib/stripe/services/checkout/session_service.rb +5 -1
  798. data/lib/stripe/services/climate/order_service.rb +2 -0
  799. data/lib/stripe/services/credit_note_preview_lines_service.rb +2 -0
  800. data/lib/stripe/services/credit_note_service.rb +4 -0
  801. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  802. data/lib/stripe/services/customer_service.rb +1 -1
  803. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  804. data/lib/stripe/services/invoice_item_service.rb +4 -0
  805. data/lib/stripe/services/invoice_line_item_service.rb +2 -0
  806. data/lib/stripe/services/invoice_service.rb +10 -4
  807. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  808. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  809. data/lib/stripe/services/payment_intent_service.rb +8 -1
  810. data/lib/stripe/services/payment_link_service.rb +2 -0
  811. data/lib/stripe/services/payment_method_service.rb +1 -1
  812. data/lib/stripe/services/payment_record_service.rb +101 -0
  813. data/lib/stripe/services/payout_service.rb +2 -2
  814. data/lib/stripe/services/plan_service.rb +2 -0
  815. data/lib/stripe/services/price_service.rb +2 -0
  816. data/lib/stripe/services/product_service.rb +2 -0
  817. data/lib/stripe/services/quote_service.rb +4 -0
  818. data/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
  819. data/lib/stripe/services/radar_service.rb +2 -1
  820. data/lib/stripe/services/subscription_item_service.rb +4 -0
  821. data/lib/stripe/services/subscription_schedule_service.rb +4 -0
  822. data/lib/stripe/services/subscription_service.rb +6 -2
  823. data/lib/stripe/services/tax/association_service.rb +19 -0
  824. data/lib/stripe/services/tax_service.rb +2 -1
  825. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  826. data/lib/stripe/services/terminal/reader_service.rb +8 -8
  827. data/lib/stripe/services/terminal_service.rb +2 -1
  828. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +12 -0
  829. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +8 -0
  830. data/lib/stripe/services/v1_services.rb +3 -1
  831. data/lib/stripe/services/v2/core/account_link_service.rb +23 -0
  832. data/lib/stripe/services/v2/core/account_service.rb +87 -0
  833. data/lib/stripe/services/v2/core/account_token_service.rb +38 -0
  834. data/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
  835. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +42 -0
  836. data/lib/stripe/services/v2/core_service.rb +4 -1
  837. data/lib/stripe/services.rb +11 -0
  838. data/lib/stripe/stripe_client.rb +6 -0
  839. data/lib/stripe/stripe_object.rb +39 -1
  840. data/lib/stripe/util.rb +12 -14
  841. data/lib/stripe/version.rb +1 -1
  842. data/lib/stripe/webhook.rb +7 -0
  843. data/lib/stripe.rb +1 -1
  844. data/rbi/stripe.rbi +64414 -32011
  845. metadata +103 -6
  846. data/lib/stripe/resources/alipay_account.rb +0 -34
  847. data/lib/stripe/resources/recipient_transfer.rb +0 -7
@@ -0,0 +1,1048 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountTokenCreateParams < ::Stripe::RequestParams
8
+ class Identity < ::Stripe::RequestParams
9
+ class Attestations < ::Stripe::RequestParams
10
+ class DirectorshipDeclaration < ::Stripe::RequestParams
11
+ # A boolean indicating if the directors information has been attested.
12
+ attr_accessor :attested
13
+
14
+ def initialize(attested: nil)
15
+ @attested = attested
16
+ end
17
+ end
18
+
19
+ class OwnershipDeclaration < ::Stripe::RequestParams
20
+ # A boolean indicating if the beneficial owner information has been attested.
21
+ attr_accessor :attested
22
+
23
+ def initialize(attested: nil)
24
+ @attested = attested
25
+ end
26
+ end
27
+
28
+ class PersonsProvided < ::Stripe::RequestParams
29
+ # 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).
30
+ attr_accessor :directors
31
+ # 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).
32
+ attr_accessor :executives
33
+ # 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).
34
+ attr_accessor :owners
35
+ # Reason for why the company is exempt from providing ownership information.
36
+ attr_accessor :ownership_exemption_reason
37
+
38
+ def initialize(
39
+ directors: nil,
40
+ executives: nil,
41
+ owners: nil,
42
+ ownership_exemption_reason: nil
43
+ )
44
+ @directors = directors
45
+ @executives = executives
46
+ @owners = owners
47
+ @ownership_exemption_reason = ownership_exemption_reason
48
+ end
49
+ end
50
+
51
+ class RepresentativeDeclaration < ::Stripe::RequestParams
52
+ # A boolean indicating if the representative is authorized to act as the representative of their legal entity.
53
+ attr_accessor :attested
54
+
55
+ def initialize(attested: nil)
56
+ @attested = attested
57
+ end
58
+ end
59
+
60
+ class TermsOfService < ::Stripe::RequestParams
61
+ class Account < ::Stripe::RequestParams
62
+ # The boolean value indicating if the terms of service have been accepted.
63
+ attr_accessor :shown_and_accepted
64
+
65
+ def initialize(shown_and_accepted: nil)
66
+ @shown_and_accepted = shown_and_accepted
67
+ end
68
+ end
69
+ # Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe.
70
+ attr_accessor :account
71
+
72
+ def initialize(account: nil)
73
+ @account = account
74
+ end
75
+ end
76
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
77
+ attr_accessor :directorship_declaration
78
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
79
+ attr_accessor :ownership_declaration
80
+ # Attestation that all Persons with a specific Relationship value have been provided.
81
+ attr_accessor :persons_provided
82
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity; IP, date, and User Agent are expanded by Stripe.
83
+ attr_accessor :representative_declaration
84
+ # Attestations of accepted terms of service agreements.
85
+ attr_accessor :terms_of_service
86
+
87
+ def initialize(
88
+ directorship_declaration: nil,
89
+ ownership_declaration: nil,
90
+ persons_provided: nil,
91
+ representative_declaration: nil,
92
+ terms_of_service: nil
93
+ )
94
+ @directorship_declaration = directorship_declaration
95
+ @ownership_declaration = ownership_declaration
96
+ @persons_provided = persons_provided
97
+ @representative_declaration = representative_declaration
98
+ @terms_of_service = terms_of_service
99
+ end
100
+ end
101
+
102
+ class BusinessDetails < ::Stripe::RequestParams
103
+ class Address < ::Stripe::RequestParams
104
+ # City, district, suburb, town, or village.
105
+ attr_accessor :city
106
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
107
+ attr_accessor :country
108
+ # Address line 1 (e.g., street, PO Box, or company name).
109
+ attr_accessor :line1
110
+ # Address line 2 (e.g., apartment, suite, unit, or building).
111
+ attr_accessor :line2
112
+ # ZIP or postal code.
113
+ attr_accessor :postal_code
114
+ # State, county, province, or region.
115
+ attr_accessor :state
116
+ # Town or district.
117
+ attr_accessor :town
118
+
119
+ def initialize(
120
+ city: nil,
121
+ country: nil,
122
+ line1: nil,
123
+ line2: nil,
124
+ postal_code: nil,
125
+ state: nil,
126
+ town: nil
127
+ )
128
+ @city = city
129
+ @country = country
130
+ @line1 = line1
131
+ @line2 = line2
132
+ @postal_code = postal_code
133
+ @state = state
134
+ @town = town
135
+ end
136
+ end
137
+
138
+ class AnnualRevenue < ::Stripe::RequestParams
139
+ # A non-negative integer representing the amount in the smallest currency unit.
140
+ attr_accessor :amount
141
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
142
+ attr_accessor :fiscal_year_end
143
+
144
+ def initialize(amount: nil, fiscal_year_end: nil)
145
+ @amount = amount
146
+ @fiscal_year_end = fiscal_year_end
147
+ end
148
+ end
149
+
150
+ class Documents < ::Stripe::RequestParams
151
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
152
+ # 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`.
153
+ attr_accessor :files
154
+ # The format of the document. Currently supports `files` only.
155
+ attr_accessor :type
156
+
157
+ def initialize(files: nil, type: nil)
158
+ @files = files
159
+ @type = type
160
+ end
161
+ end
162
+
163
+ class CompanyLicense < ::Stripe::RequestParams
164
+ # 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`.
165
+ attr_accessor :files
166
+ # The format of the document. Currently supports `files` only.
167
+ attr_accessor :type
168
+
169
+ def initialize(files: nil, type: nil)
170
+ @files = files
171
+ @type = type
172
+ end
173
+ end
174
+
175
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
176
+ # 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`.
177
+ attr_accessor :files
178
+ # The format of the document. Currently supports `files` only.
179
+ attr_accessor :type
180
+
181
+ def initialize(files: nil, type: nil)
182
+ @files = files
183
+ @type = type
184
+ end
185
+ end
186
+
187
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
188
+ # 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`.
189
+ attr_accessor :files
190
+ # The format of the document. Currently supports `files` only.
191
+ attr_accessor :type
192
+
193
+ def initialize(files: nil, type: nil)
194
+ @files = files
195
+ @type = type
196
+ end
197
+ end
198
+
199
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
200
+ # 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`.
201
+ attr_accessor :files
202
+ # The format of the document. Currently supports `files` only.
203
+ attr_accessor :type
204
+
205
+ def initialize(files: nil, type: nil)
206
+ @files = files
207
+ @type = type
208
+ end
209
+ end
210
+
211
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
212
+ # 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`.
213
+ attr_accessor :files
214
+ # The format of the document. Currently supports `files` only.
215
+ attr_accessor :type
216
+
217
+ def initialize(files: nil, type: nil)
218
+ @files = files
219
+ @type = type
220
+ end
221
+ end
222
+
223
+ class PrimaryVerification < ::Stripe::RequestParams
224
+ class FrontBack < ::Stripe::RequestParams
225
+ # 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.
226
+ attr_accessor :back
227
+ # 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.
228
+ attr_accessor :front
229
+
230
+ def initialize(back: nil, front: nil)
231
+ @back = back
232
+ @front = front
233
+ end
234
+ end
235
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
236
+ attr_accessor :front_back
237
+ # The format of the verification document. Currently supports `front_back` only.
238
+ attr_accessor :type
239
+
240
+ def initialize(front_back: nil, type: nil)
241
+ @front_back = front_back
242
+ @type = type
243
+ end
244
+ end
245
+
246
+ class ProofOfAddress < ::Stripe::RequestParams
247
+ # 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`.
248
+ attr_accessor :files
249
+ # The format of the document. Currently supports `files` only.
250
+ attr_accessor :type
251
+
252
+ def initialize(files: nil, type: nil)
253
+ @files = files
254
+ @type = type
255
+ end
256
+ end
257
+
258
+ class ProofOfRegistration < ::Stripe::RequestParams
259
+ # 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`.
260
+ attr_accessor :files
261
+ # The format of the document. Currently supports `files` only.
262
+ attr_accessor :type
263
+
264
+ def initialize(files: nil, type: nil)
265
+ @files = files
266
+ @type = type
267
+ end
268
+ end
269
+
270
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
271
+ # 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`.
272
+ attr_accessor :files
273
+ # The format of the document. Currently supports `files` only.
274
+ attr_accessor :type
275
+
276
+ def initialize(files: nil, type: nil)
277
+ @files = files
278
+ @type = type
279
+ end
280
+ end
281
+ # 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.
282
+ attr_accessor :bank_account_ownership_verification
283
+ # One or more documents that demonstrate proof of a company’s license to operate.
284
+ attr_accessor :company_license
285
+ # One or more documents showing the company’s Memorandum of Association.
286
+ attr_accessor :company_memorandum_of_association
287
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
288
+ attr_accessor :company_ministerial_decree
289
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
290
+ attr_accessor :company_registration_verification
291
+ # One or more documents that demonstrate proof of a company’s tax ID.
292
+ attr_accessor :company_tax_id_verification
293
+ # A document verifying the business.
294
+ attr_accessor :primary_verification
295
+ # One or more documents that demonstrate proof of address.
296
+ attr_accessor :proof_of_address
297
+ # One or more documents showing the company’s proof of registration with the national business registry.
298
+ attr_accessor :proof_of_registration
299
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
300
+ attr_accessor :proof_of_ultimate_beneficial_ownership
301
+
302
+ def initialize(
303
+ bank_account_ownership_verification: nil,
304
+ company_license: nil,
305
+ company_memorandum_of_association: nil,
306
+ company_ministerial_decree: nil,
307
+ company_registration_verification: nil,
308
+ company_tax_id_verification: nil,
309
+ primary_verification: nil,
310
+ proof_of_address: nil,
311
+ proof_of_registration: nil,
312
+ proof_of_ultimate_beneficial_ownership: nil
313
+ )
314
+ @bank_account_ownership_verification = bank_account_ownership_verification
315
+ @company_license = company_license
316
+ @company_memorandum_of_association = company_memorandum_of_association
317
+ @company_ministerial_decree = company_ministerial_decree
318
+ @company_registration_verification = company_registration_verification
319
+ @company_tax_id_verification = company_tax_id_verification
320
+ @primary_verification = primary_verification
321
+ @proof_of_address = proof_of_address
322
+ @proof_of_registration = proof_of_registration
323
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
324
+ end
325
+ end
326
+
327
+ class IdNumber < ::Stripe::RequestParams
328
+ # The registrar of the ID number (Only valid for DE ID number types).
329
+ attr_accessor :registrar
330
+ # Open Enum. The ID number type of a business entity.
331
+ attr_accessor :type
332
+ # The value of the ID number.
333
+ attr_accessor :value
334
+
335
+ def initialize(registrar: nil, type: nil, value: nil)
336
+ @registrar = registrar
337
+ @type = type
338
+ @value = value
339
+ end
340
+ end
341
+
342
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
343
+ # A non-negative integer representing the amount in the smallest currency unit.
344
+ attr_accessor :amount
345
+
346
+ def initialize(amount: nil)
347
+ @amount = amount
348
+ end
349
+ end
350
+
351
+ class RegistrationDate < ::Stripe::RequestParams
352
+ # The day of registration, between 1 and 31.
353
+ attr_accessor :day
354
+ # The month of registration, between 1 and 12.
355
+ attr_accessor :month
356
+ # The four-digit year of registration.
357
+ attr_accessor :year
358
+
359
+ def initialize(day: nil, month: nil, year: nil)
360
+ @day = day
361
+ @month = month
362
+ @year = year
363
+ end
364
+ end
365
+
366
+ class ScriptAddresses < ::Stripe::RequestParams
367
+ class Kana < ::Stripe::RequestParams
368
+ # City, district, suburb, town, or village.
369
+ attr_accessor :city
370
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
371
+ attr_accessor :country
372
+ # Address line 1 (e.g., street, PO Box, or company name).
373
+ attr_accessor :line1
374
+ # Address line 2 (e.g., apartment, suite, unit, or building).
375
+ attr_accessor :line2
376
+ # ZIP or postal code.
377
+ attr_accessor :postal_code
378
+ # State, county, province, or region.
379
+ attr_accessor :state
380
+ # Town or district.
381
+ attr_accessor :town
382
+
383
+ def initialize(
384
+ city: nil,
385
+ country: nil,
386
+ line1: nil,
387
+ line2: nil,
388
+ postal_code: nil,
389
+ state: nil,
390
+ town: nil
391
+ )
392
+ @city = city
393
+ @country = country
394
+ @line1 = line1
395
+ @line2 = line2
396
+ @postal_code = postal_code
397
+ @state = state
398
+ @town = town
399
+ end
400
+ end
401
+
402
+ class Kanji < ::Stripe::RequestParams
403
+ # City, district, suburb, town, or village.
404
+ attr_accessor :city
405
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
406
+ attr_accessor :country
407
+ # Address line 1 (e.g., street, PO Box, or company name).
408
+ attr_accessor :line1
409
+ # Address line 2 (e.g., apartment, suite, unit, or building).
410
+ attr_accessor :line2
411
+ # ZIP or postal code.
412
+ attr_accessor :postal_code
413
+ # State, county, province, or region.
414
+ attr_accessor :state
415
+ # Town or district.
416
+ attr_accessor :town
417
+
418
+ def initialize(
419
+ city: nil,
420
+ country: nil,
421
+ line1: nil,
422
+ line2: nil,
423
+ postal_code: nil,
424
+ state: nil,
425
+ town: nil
426
+ )
427
+ @city = city
428
+ @country = country
429
+ @line1 = line1
430
+ @line2 = line2
431
+ @postal_code = postal_code
432
+ @state = state
433
+ @town = town
434
+ end
435
+ end
436
+ # Kana Address.
437
+ attr_accessor :kana
438
+ # Kanji Address.
439
+ attr_accessor :kanji
440
+
441
+ def initialize(kana: nil, kanji: nil)
442
+ @kana = kana
443
+ @kanji = kanji
444
+ end
445
+ end
446
+
447
+ class ScriptNames < ::Stripe::RequestParams
448
+ class Kana < ::Stripe::RequestParams
449
+ # Registered name of the business.
450
+ attr_accessor :registered_name
451
+
452
+ def initialize(registered_name: nil)
453
+ @registered_name = registered_name
454
+ end
455
+ end
456
+
457
+ class Kanji < ::Stripe::RequestParams
458
+ # Registered name of the business.
459
+ attr_accessor :registered_name
460
+
461
+ def initialize(registered_name: nil)
462
+ @registered_name = registered_name
463
+ end
464
+ end
465
+ # Kana name.
466
+ attr_accessor :kana
467
+ # Kanji name.
468
+ attr_accessor :kanji
469
+
470
+ def initialize(kana: nil, kanji: nil)
471
+ @kana = kana
472
+ @kanji = kanji
473
+ end
474
+ end
475
+ # The business registration address of the business entity.
476
+ attr_accessor :address
477
+ # The business gross annual revenue for its preceding fiscal year.
478
+ attr_accessor :annual_revenue
479
+ # A document verifying the business.
480
+ attr_accessor :documents
481
+ # Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
482
+ attr_accessor :estimated_worker_count
483
+ # The ID numbers of a business entity.
484
+ attr_accessor :id_numbers
485
+ # An estimate of the monthly revenue of the business.
486
+ attr_accessor :monthly_estimated_revenue
487
+ # The phone number of the Business Entity.
488
+ attr_accessor :phone
489
+ # The business legal name.
490
+ attr_accessor :registered_name
491
+ # When the business was incorporated or registered.
492
+ attr_accessor :registration_date
493
+ # The business registration address of the business entity in non latin script.
494
+ attr_accessor :script_addresses
495
+ # The business legal name in non latin script.
496
+ attr_accessor :script_names
497
+ # The category identifying the legal structure of the business.
498
+ attr_accessor :structure
499
+
500
+ def initialize(
501
+ address: nil,
502
+ annual_revenue: nil,
503
+ documents: nil,
504
+ estimated_worker_count: nil,
505
+ id_numbers: nil,
506
+ monthly_estimated_revenue: nil,
507
+ phone: nil,
508
+ registered_name: nil,
509
+ registration_date: nil,
510
+ script_addresses: nil,
511
+ script_names: nil,
512
+ structure: nil
513
+ )
514
+ @address = address
515
+ @annual_revenue = annual_revenue
516
+ @documents = documents
517
+ @estimated_worker_count = estimated_worker_count
518
+ @id_numbers = id_numbers
519
+ @monthly_estimated_revenue = monthly_estimated_revenue
520
+ @phone = phone
521
+ @registered_name = registered_name
522
+ @registration_date = registration_date
523
+ @script_addresses = script_addresses
524
+ @script_names = script_names
525
+ @structure = structure
526
+ end
527
+ end
528
+
529
+ class Individual < ::Stripe::RequestParams
530
+ class AdditionalAddress < ::Stripe::RequestParams
531
+ # City, district, suburb, town, or village.
532
+ attr_accessor :city
533
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
534
+ attr_accessor :country
535
+ # Address line 1 (e.g., street, PO Box, or company name).
536
+ attr_accessor :line1
537
+ # Address line 2 (e.g., apartment, suite, unit, or building).
538
+ attr_accessor :line2
539
+ # ZIP or postal code.
540
+ attr_accessor :postal_code
541
+ # Purpose of additional address.
542
+ attr_accessor :purpose
543
+ # State, county, province, or region.
544
+ attr_accessor :state
545
+ # Town or district.
546
+ attr_accessor :town
547
+
548
+ def initialize(
549
+ city: nil,
550
+ country: nil,
551
+ line1: nil,
552
+ line2: nil,
553
+ postal_code: nil,
554
+ purpose: nil,
555
+ state: nil,
556
+ town: nil
557
+ )
558
+ @city = city
559
+ @country = country
560
+ @line1 = line1
561
+ @line2 = line2
562
+ @postal_code = postal_code
563
+ @purpose = purpose
564
+ @state = state
565
+ @town = town
566
+ end
567
+ end
568
+
569
+ class AdditionalName < ::Stripe::RequestParams
570
+ # The person's full name.
571
+ attr_accessor :full_name
572
+ # The person's first or given name.
573
+ attr_accessor :given_name
574
+ # The purpose or type of the additional name.
575
+ attr_accessor :purpose
576
+ # The person's last or family name.
577
+ attr_accessor :surname
578
+
579
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
580
+ @full_name = full_name
581
+ @given_name = given_name
582
+ @purpose = purpose
583
+ @surname = surname
584
+ end
585
+ end
586
+
587
+ class Address < ::Stripe::RequestParams
588
+ # City, district, suburb, town, or village.
589
+ attr_accessor :city
590
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
591
+ attr_accessor :country
592
+ # Address line 1 (e.g., street, PO Box, or company name).
593
+ attr_accessor :line1
594
+ # Address line 2 (e.g., apartment, suite, unit, or building).
595
+ attr_accessor :line2
596
+ # ZIP or postal code.
597
+ attr_accessor :postal_code
598
+ # State, county, province, or region.
599
+ attr_accessor :state
600
+ # Town or district.
601
+ attr_accessor :town
602
+
603
+ def initialize(
604
+ city: nil,
605
+ country: nil,
606
+ line1: nil,
607
+ line2: nil,
608
+ postal_code: nil,
609
+ state: nil,
610
+ town: nil
611
+ )
612
+ @city = city
613
+ @country = country
614
+ @line1 = line1
615
+ @line2 = line2
616
+ @postal_code = postal_code
617
+ @state = state
618
+ @town = town
619
+ end
620
+ end
621
+
622
+ class DateOfBirth < ::Stripe::RequestParams
623
+ # The day of the birth.
624
+ attr_accessor :day
625
+ # The month of birth.
626
+ attr_accessor :month
627
+ # The year of birth.
628
+ attr_accessor :year
629
+
630
+ def initialize(day: nil, month: nil, year: nil)
631
+ @day = day
632
+ @month = month
633
+ @year = year
634
+ end
635
+ end
636
+
637
+ class Documents < ::Stripe::RequestParams
638
+ class CompanyAuthorization < ::Stripe::RequestParams
639
+ # 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`.
640
+ attr_accessor :files
641
+ # The format of the document. Currently supports `files` only.
642
+ attr_accessor :type
643
+
644
+ def initialize(files: nil, type: nil)
645
+ @files = files
646
+ @type = type
647
+ end
648
+ end
649
+
650
+ class Passport < ::Stripe::RequestParams
651
+ # 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`.
652
+ attr_accessor :files
653
+ # The format of the document. Currently supports `files` only.
654
+ attr_accessor :type
655
+
656
+ def initialize(files: nil, type: nil)
657
+ @files = files
658
+ @type = type
659
+ end
660
+ end
661
+
662
+ class PrimaryVerification < ::Stripe::RequestParams
663
+ class FrontBack < ::Stripe::RequestParams
664
+ # 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.
665
+ attr_accessor :back
666
+ # 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.
667
+ attr_accessor :front
668
+
669
+ def initialize(back: nil, front: nil)
670
+ @back = back
671
+ @front = front
672
+ end
673
+ end
674
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
675
+ attr_accessor :front_back
676
+ # The format of the verification document. Currently supports `front_back` only.
677
+ attr_accessor :type
678
+
679
+ def initialize(front_back: nil, type: nil)
680
+ @front_back = front_back
681
+ @type = type
682
+ end
683
+ end
684
+
685
+ class SecondaryVerification < ::Stripe::RequestParams
686
+ class FrontBack < ::Stripe::RequestParams
687
+ # 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.
688
+ attr_accessor :back
689
+ # 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.
690
+ attr_accessor :front
691
+
692
+ def initialize(back: nil, front: nil)
693
+ @back = back
694
+ @front = front
695
+ end
696
+ end
697
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
698
+ attr_accessor :front_back
699
+ # The format of the verification document. Currently supports `front_back` only.
700
+ attr_accessor :type
701
+
702
+ def initialize(front_back: nil, type: nil)
703
+ @front_back = front_back
704
+ @type = type
705
+ end
706
+ end
707
+
708
+ class Visa < ::Stripe::RequestParams
709
+ # 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`.
710
+ attr_accessor :files
711
+ # The format of the document. Currently supports `files` only.
712
+ attr_accessor :type
713
+
714
+ def initialize(files: nil, type: nil)
715
+ @files = files
716
+ @type = type
717
+ end
718
+ end
719
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
720
+ attr_accessor :company_authorization
721
+ # One or more documents showing the person’s passport page with photo and personal data.
722
+ attr_accessor :passport
723
+ # An identifying document showing the person's name, either a passport or local ID card.
724
+ attr_accessor :primary_verification
725
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
726
+ attr_accessor :secondary_verification
727
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
728
+ attr_accessor :visa
729
+
730
+ def initialize(
731
+ company_authorization: nil,
732
+ passport: nil,
733
+ primary_verification: nil,
734
+ secondary_verification: nil,
735
+ visa: nil
736
+ )
737
+ @company_authorization = company_authorization
738
+ @passport = passport
739
+ @primary_verification = primary_verification
740
+ @secondary_verification = secondary_verification
741
+ @visa = visa
742
+ end
743
+ end
744
+
745
+ class IdNumber < ::Stripe::RequestParams
746
+ # The ID number type of an individual.
747
+ attr_accessor :type
748
+ # The value of the ID number.
749
+ attr_accessor :value
750
+
751
+ def initialize(type: nil, value: nil)
752
+ @type = type
753
+ @value = value
754
+ end
755
+ end
756
+
757
+ class Relationship < ::Stripe::RequestParams
758
+ # 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.
759
+ attr_accessor :director
760
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
761
+ attr_accessor :executive
762
+ # Whether the person is an owner of the account’s identity.
763
+ attr_accessor :owner
764
+ # The percent owned by the person of the account's legal entity.
765
+ attr_accessor :percent_ownership
766
+ # The person's title (e.g., CEO, Support Engineer).
767
+ attr_accessor :title
768
+
769
+ def initialize(
770
+ director: nil,
771
+ executive: nil,
772
+ owner: nil,
773
+ percent_ownership: nil,
774
+ title: nil
775
+ )
776
+ @director = director
777
+ @executive = executive
778
+ @owner = owner
779
+ @percent_ownership = percent_ownership
780
+ @title = title
781
+ end
782
+
783
+ def self.field_encodings
784
+ @field_encodings = { percent_ownership: :decimal_string }
785
+ end
786
+ end
787
+
788
+ class ScriptAddresses < ::Stripe::RequestParams
789
+ class Kana < ::Stripe::RequestParams
790
+ # City, district, suburb, town, or village.
791
+ attr_accessor :city
792
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
793
+ attr_accessor :country
794
+ # Address line 1 (e.g., street, PO Box, or company name).
795
+ attr_accessor :line1
796
+ # Address line 2 (e.g., apartment, suite, unit, or building).
797
+ attr_accessor :line2
798
+ # ZIP or postal code.
799
+ attr_accessor :postal_code
800
+ # State, county, province, or region.
801
+ attr_accessor :state
802
+ # Town or district.
803
+ attr_accessor :town
804
+
805
+ def initialize(
806
+ city: nil,
807
+ country: nil,
808
+ line1: nil,
809
+ line2: nil,
810
+ postal_code: nil,
811
+ state: nil,
812
+ town: nil
813
+ )
814
+ @city = city
815
+ @country = country
816
+ @line1 = line1
817
+ @line2 = line2
818
+ @postal_code = postal_code
819
+ @state = state
820
+ @town = town
821
+ end
822
+ end
823
+
824
+ class Kanji < ::Stripe::RequestParams
825
+ # City, district, suburb, town, or village.
826
+ attr_accessor :city
827
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
828
+ attr_accessor :country
829
+ # Address line 1 (e.g., street, PO Box, or company name).
830
+ attr_accessor :line1
831
+ # Address line 2 (e.g., apartment, suite, unit, or building).
832
+ attr_accessor :line2
833
+ # ZIP or postal code.
834
+ attr_accessor :postal_code
835
+ # State, county, province, or region.
836
+ attr_accessor :state
837
+ # Town or district.
838
+ attr_accessor :town
839
+
840
+ def initialize(
841
+ city: nil,
842
+ country: nil,
843
+ line1: nil,
844
+ line2: nil,
845
+ postal_code: nil,
846
+ state: nil,
847
+ town: nil
848
+ )
849
+ @city = city
850
+ @country = country
851
+ @line1 = line1
852
+ @line2 = line2
853
+ @postal_code = postal_code
854
+ @state = state
855
+ @town = town
856
+ end
857
+ end
858
+ # Kana Address.
859
+ attr_accessor :kana
860
+ # Kanji Address.
861
+ attr_accessor :kanji
862
+
863
+ def initialize(kana: nil, kanji: nil)
864
+ @kana = kana
865
+ @kanji = kanji
866
+ end
867
+ end
868
+
869
+ class ScriptNames < ::Stripe::RequestParams
870
+ class Kana < ::Stripe::RequestParams
871
+ # The person's first or given name.
872
+ attr_accessor :given_name
873
+ # The person's last or family name.
874
+ attr_accessor :surname
875
+
876
+ def initialize(given_name: nil, surname: nil)
877
+ @given_name = given_name
878
+ @surname = surname
879
+ end
880
+ end
881
+
882
+ class Kanji < ::Stripe::RequestParams
883
+ # The person's first or given name.
884
+ attr_accessor :given_name
885
+ # The person's last or family name.
886
+ attr_accessor :surname
887
+
888
+ def initialize(given_name: nil, surname: nil)
889
+ @given_name = given_name
890
+ @surname = surname
891
+ end
892
+ end
893
+ # Persons name in kana script.
894
+ attr_accessor :kana
895
+ # Persons name in kanji script.
896
+ attr_accessor :kanji
897
+
898
+ def initialize(kana: nil, kanji: nil)
899
+ @kana = kana
900
+ @kanji = kanji
901
+ end
902
+ end
903
+ # Additional addresses associated with the individual.
904
+ attr_accessor :additional_addresses
905
+ # Additional names (e.g. aliases) associated with the individual.
906
+ attr_accessor :additional_names
907
+ # The individual's residential address.
908
+ attr_accessor :address
909
+ # The individual's date of birth.
910
+ attr_accessor :date_of_birth
911
+ # Documents that may be submitted to satisfy various informational requests.
912
+ attr_accessor :documents
913
+ # The individual's email address.
914
+ attr_accessor :email
915
+ # The individual's first name.
916
+ attr_accessor :given_name
917
+ # The identification numbers (e.g., SSN) associated with the individual.
918
+ attr_accessor :id_numbers
919
+ # The individual's gender (International regulations require either "male" or "female").
920
+ attr_accessor :legal_gender
921
+ # 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.
922
+ attr_accessor :metadata
923
+ # 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)).
924
+ attr_accessor :nationalities
925
+ # The individual's phone number.
926
+ attr_accessor :phone
927
+ # The individual's political exposure.
928
+ attr_accessor :political_exposure
929
+ # The relationship that this individual has with the account's identity.
930
+ attr_accessor :relationship
931
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
932
+ attr_accessor :script_addresses
933
+ # The individuals primary name in non latin script.
934
+ attr_accessor :script_names
935
+ # The individual's last name.
936
+ attr_accessor :surname
937
+
938
+ def initialize(
939
+ additional_addresses: nil,
940
+ additional_names: nil,
941
+ address: nil,
942
+ date_of_birth: nil,
943
+ documents: nil,
944
+ email: nil,
945
+ given_name: nil,
946
+ id_numbers: nil,
947
+ legal_gender: nil,
948
+ metadata: nil,
949
+ nationalities: nil,
950
+ phone: nil,
951
+ political_exposure: nil,
952
+ relationship: nil,
953
+ script_addresses: nil,
954
+ script_names: nil,
955
+ surname: nil
956
+ )
957
+ @additional_addresses = additional_addresses
958
+ @additional_names = additional_names
959
+ @address = address
960
+ @date_of_birth = date_of_birth
961
+ @documents = documents
962
+ @email = email
963
+ @given_name = given_name
964
+ @id_numbers = id_numbers
965
+ @legal_gender = legal_gender
966
+ @metadata = metadata
967
+ @nationalities = nationalities
968
+ @phone = phone
969
+ @political_exposure = political_exposure
970
+ @relationship = relationship
971
+ @script_addresses = script_addresses
972
+ @script_names = script_names
973
+ @surname = surname
974
+ end
975
+
976
+ def self.field_encodings
977
+ @field_encodings = {
978
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
979
+ }
980
+ end
981
+ end
982
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
983
+ attr_accessor :attestations
984
+ # Information about the company or business.
985
+ attr_accessor :business_details
986
+ # The entity type.
987
+ attr_accessor :entity_type
988
+ # Information about the person represented by the account.
989
+ attr_accessor :individual
990
+
991
+ def initialize(
992
+ attestations: nil,
993
+ business_details: nil,
994
+ entity_type: nil,
995
+ individual: nil
996
+ )
997
+ @attestations = attestations
998
+ @business_details = business_details
999
+ @entity_type = entity_type
1000
+ @individual = individual
1001
+ end
1002
+
1003
+ def self.field_encodings
1004
+ @field_encodings = {
1005
+ individual: {
1006
+ kind: :object,
1007
+ fields: {
1008
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
1009
+ },
1010
+ },
1011
+ }
1012
+ end
1013
+ end
1014
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
1015
+ attr_accessor :contact_email
1016
+ # The default contact phone for the Account.
1017
+ attr_accessor :contact_phone
1018
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
1019
+ attr_accessor :display_name
1020
+ # Information about the company, individual, and business represented by the Account.
1021
+ attr_accessor :identity
1022
+
1023
+ def initialize(contact_email: nil, contact_phone: nil, display_name: nil, identity: nil)
1024
+ @contact_email = contact_email
1025
+ @contact_phone = contact_phone
1026
+ @display_name = display_name
1027
+ @identity = identity
1028
+ end
1029
+
1030
+ def self.field_encodings
1031
+ @field_encodings = {
1032
+ identity: {
1033
+ kind: :object,
1034
+ fields: {
1035
+ individual: {
1036
+ kind: :object,
1037
+ fields: {
1038
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
1039
+ },
1040
+ },
1041
+ },
1042
+ },
1043
+ }
1044
+ end
1045
+ end
1046
+ end
1047
+ end
1048
+ end