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,2207 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountUpdateParams < ::Stripe::RequestParams
8
+ class Configuration < ::Stripe::RequestParams
9
+ class Customer < ::Stripe::RequestParams
10
+ class AutomaticIndirectTax < ::Stripe::RequestParams
11
+ # The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge".
12
+ attr_accessor :exempt
13
+ # A recent IP address of the customer used for tax reporting and tax location inference.
14
+ attr_accessor :ip_address
15
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
16
+ attr_accessor :validate_location
17
+
18
+ def initialize(exempt: nil, ip_address: nil, validate_location: nil)
19
+ @exempt = exempt
20
+ @ip_address = ip_address
21
+ @validate_location = validate_location
22
+ end
23
+ end
24
+
25
+ class Billing < ::Stripe::RequestParams
26
+ class Invoice < ::Stripe::RequestParams
27
+ class CustomField < ::Stripe::RequestParams
28
+ # The name of the custom field. This may be up to 40 characters.
29
+ attr_accessor :name
30
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
31
+ attr_accessor :value
32
+
33
+ def initialize(name: nil, value: nil)
34
+ @name = name
35
+ @value = value
36
+ end
37
+ end
38
+
39
+ class Rendering < ::Stripe::RequestParams
40
+ # Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`.
41
+ attr_accessor :amount_tax_display
42
+ # ID of the invoice rendering template to use for future invoices.
43
+ attr_accessor :template
44
+
45
+ def initialize(amount_tax_display: nil, template: nil)
46
+ @amount_tax_display = amount_tax_display
47
+ @template = template
48
+ end
49
+ end
50
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
51
+ attr_accessor :custom_fields
52
+ # Default invoice footer.
53
+ attr_accessor :footer
54
+ # Sequence number to use on the customer account's next invoice. Defaults to 1.
55
+ attr_accessor :next_sequence
56
+ # Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers.
57
+ attr_accessor :prefix
58
+ # Default invoice PDF rendering options.
59
+ attr_accessor :rendering
60
+
61
+ def initialize(
62
+ custom_fields: nil,
63
+ footer: nil,
64
+ next_sequence: nil,
65
+ prefix: nil,
66
+ rendering: nil
67
+ )
68
+ @custom_fields = custom_fields
69
+ @footer = footer
70
+ @next_sequence = next_sequence
71
+ @prefix = prefix
72
+ @rendering = rendering
73
+ end
74
+ end
75
+ # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions.
76
+ attr_accessor :default_payment_method
77
+ # Default invoice settings for the customer account.
78
+ attr_accessor :invoice
79
+
80
+ def initialize(default_payment_method: nil, invoice: nil)
81
+ @default_payment_method = default_payment_method
82
+ @invoice = invoice
83
+ end
84
+ end
85
+
86
+ class Capabilities < ::Stripe::RequestParams
87
+ class AutomaticIndirectTax < ::Stripe::RequestParams
88
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
89
+ attr_accessor :requested
90
+
91
+ def initialize(requested: nil)
92
+ @requested = requested
93
+ end
94
+ end
95
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions.
96
+ attr_accessor :automatic_indirect_tax
97
+
98
+ def initialize(automatic_indirect_tax: nil)
99
+ @automatic_indirect_tax = automatic_indirect_tax
100
+ end
101
+ end
102
+
103
+ class Shipping < ::Stripe::RequestParams
104
+ class Address < ::Stripe::RequestParams
105
+ # City, district, suburb, town, or village.
106
+ attr_accessor :city
107
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
108
+ attr_accessor :country
109
+ # Address line 1 (e.g., street, PO Box, or company name).
110
+ attr_accessor :line1
111
+ # Address line 2 (e.g., apartment, suite, unit, or building).
112
+ attr_accessor :line2
113
+ # ZIP or postal code.
114
+ attr_accessor :postal_code
115
+ # State, county, province, or region.
116
+ attr_accessor :state
117
+
118
+ def initialize(
119
+ city: nil,
120
+ country: nil,
121
+ line1: nil,
122
+ line2: nil,
123
+ postal_code: nil,
124
+ state: nil
125
+ )
126
+ @city = city
127
+ @country = country
128
+ @line1 = line1
129
+ @line2 = line2
130
+ @postal_code = postal_code
131
+ @state = state
132
+ end
133
+ end
134
+ # Customer shipping address.
135
+ attr_accessor :address
136
+ # Customer name.
137
+ attr_accessor :name
138
+ # Customer phone (including extension).
139
+ attr_accessor :phone
140
+
141
+ def initialize(address: nil, name: nil, phone: nil)
142
+ @address = address
143
+ @name = name
144
+ @phone = phone
145
+ end
146
+ end
147
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
148
+ attr_accessor :applied
149
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
150
+ attr_accessor :automatic_indirect_tax
151
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
152
+ attr_accessor :billing
153
+ # Capabilities that have been requested on the Customer Configuration.
154
+ attr_accessor :capabilities
155
+ # The customer's shipping information. Appears on invoices emailed to this customer.
156
+ attr_accessor :shipping
157
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
158
+ attr_accessor :test_clock
159
+
160
+ def initialize(
161
+ applied: nil,
162
+ automatic_indirect_tax: nil,
163
+ billing: nil,
164
+ capabilities: nil,
165
+ shipping: nil,
166
+ test_clock: nil
167
+ )
168
+ @applied = applied
169
+ @automatic_indirect_tax = automatic_indirect_tax
170
+ @billing = billing
171
+ @capabilities = capabilities
172
+ @shipping = shipping
173
+ @test_clock = test_clock
174
+ end
175
+ end
176
+
177
+ class Merchant < ::Stripe::RequestParams
178
+ class BacsDebitPayments < ::Stripe::RequestParams
179
+ # Display name for Bacs Direct Debit payments.
180
+ attr_accessor :display_name
181
+
182
+ def initialize(display_name: nil)
183
+ @display_name = display_name
184
+ end
185
+ end
186
+
187
+ class Branding < ::Stripe::RequestParams
188
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
189
+ attr_accessor :icon
190
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
191
+ attr_accessor :logo
192
+ # A CSS hex color value representing the primary branding color for the merchant.
193
+ attr_accessor :primary_color
194
+ # A CSS hex color value representing the secondary branding color for the merchant.
195
+ attr_accessor :secondary_color
196
+
197
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
198
+ @icon = icon
199
+ @logo = logo
200
+ @primary_color = primary_color
201
+ @secondary_color = secondary_color
202
+ end
203
+ end
204
+
205
+ class Capabilities < ::Stripe::RequestParams
206
+ class AchDebitPayments < ::Stripe::RequestParams
207
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
208
+ attr_accessor :requested
209
+
210
+ def initialize(requested: nil)
211
+ @requested = requested
212
+ end
213
+ end
214
+
215
+ class AcssDebitPayments < ::Stripe::RequestParams
216
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
217
+ attr_accessor :requested
218
+
219
+ def initialize(requested: nil)
220
+ @requested = requested
221
+ end
222
+ end
223
+
224
+ class AffirmPayments < ::Stripe::RequestParams
225
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
226
+ attr_accessor :requested
227
+
228
+ def initialize(requested: nil)
229
+ @requested = requested
230
+ end
231
+ end
232
+
233
+ class AfterpayClearpayPayments < ::Stripe::RequestParams
234
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
235
+ attr_accessor :requested
236
+
237
+ def initialize(requested: nil)
238
+ @requested = requested
239
+ end
240
+ end
241
+
242
+ class AlmaPayments < ::Stripe::RequestParams
243
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
244
+ attr_accessor :requested
245
+
246
+ def initialize(requested: nil)
247
+ @requested = requested
248
+ end
249
+ end
250
+
251
+ class AmazonPayPayments < ::Stripe::RequestParams
252
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
253
+ attr_accessor :requested
254
+
255
+ def initialize(requested: nil)
256
+ @requested = requested
257
+ end
258
+ end
259
+
260
+ class AuBecsDebitPayments < ::Stripe::RequestParams
261
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
262
+ attr_accessor :requested
263
+
264
+ def initialize(requested: nil)
265
+ @requested = requested
266
+ end
267
+ end
268
+
269
+ class BacsDebitPayments < ::Stripe::RequestParams
270
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
271
+ attr_accessor :requested
272
+
273
+ def initialize(requested: nil)
274
+ @requested = requested
275
+ end
276
+ end
277
+
278
+ class BancontactPayments < ::Stripe::RequestParams
279
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
280
+ attr_accessor :requested
281
+
282
+ def initialize(requested: nil)
283
+ @requested = requested
284
+ end
285
+ end
286
+
287
+ class BlikPayments < ::Stripe::RequestParams
288
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
289
+ attr_accessor :requested
290
+
291
+ def initialize(requested: nil)
292
+ @requested = requested
293
+ end
294
+ end
295
+
296
+ class BoletoPayments < ::Stripe::RequestParams
297
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
298
+ attr_accessor :requested
299
+
300
+ def initialize(requested: nil)
301
+ @requested = requested
302
+ end
303
+ end
304
+
305
+ class CardPayments < ::Stripe::RequestParams
306
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
307
+ attr_accessor :requested
308
+
309
+ def initialize(requested: nil)
310
+ @requested = requested
311
+ end
312
+ end
313
+
314
+ class CartesBancairesPayments < ::Stripe::RequestParams
315
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
316
+ attr_accessor :requested
317
+
318
+ def initialize(requested: nil)
319
+ @requested = requested
320
+ end
321
+ end
322
+
323
+ class CashappPayments < ::Stripe::RequestParams
324
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
325
+ attr_accessor :requested
326
+
327
+ def initialize(requested: nil)
328
+ @requested = requested
329
+ end
330
+ end
331
+
332
+ class EpsPayments < ::Stripe::RequestParams
333
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
334
+ attr_accessor :requested
335
+
336
+ def initialize(requested: nil)
337
+ @requested = requested
338
+ end
339
+ end
340
+
341
+ class FpxPayments < ::Stripe::RequestParams
342
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
343
+ attr_accessor :requested
344
+
345
+ def initialize(requested: nil)
346
+ @requested = requested
347
+ end
348
+ end
349
+
350
+ class GbBankTransferPayments < ::Stripe::RequestParams
351
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
352
+ attr_accessor :requested
353
+
354
+ def initialize(requested: nil)
355
+ @requested = requested
356
+ end
357
+ end
358
+
359
+ class GrabpayPayments < ::Stripe::RequestParams
360
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
361
+ attr_accessor :requested
362
+
363
+ def initialize(requested: nil)
364
+ @requested = requested
365
+ end
366
+ end
367
+
368
+ class IdealPayments < ::Stripe::RequestParams
369
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
370
+ attr_accessor :requested
371
+
372
+ def initialize(requested: nil)
373
+ @requested = requested
374
+ end
375
+ end
376
+
377
+ class JcbPayments < ::Stripe::RequestParams
378
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
379
+ attr_accessor :requested
380
+
381
+ def initialize(requested: nil)
382
+ @requested = requested
383
+ end
384
+ end
385
+
386
+ class JpBankTransferPayments < ::Stripe::RequestParams
387
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
388
+ attr_accessor :requested
389
+
390
+ def initialize(requested: nil)
391
+ @requested = requested
392
+ end
393
+ end
394
+
395
+ class KakaoPayPayments < ::Stripe::RequestParams
396
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
397
+ attr_accessor :requested
398
+
399
+ def initialize(requested: nil)
400
+ @requested = requested
401
+ end
402
+ end
403
+
404
+ class KlarnaPayments < ::Stripe::RequestParams
405
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
406
+ attr_accessor :requested
407
+
408
+ def initialize(requested: nil)
409
+ @requested = requested
410
+ end
411
+ end
412
+
413
+ class KonbiniPayments < ::Stripe::RequestParams
414
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
415
+ attr_accessor :requested
416
+
417
+ def initialize(requested: nil)
418
+ @requested = requested
419
+ end
420
+ end
421
+
422
+ class KrCardPayments < ::Stripe::RequestParams
423
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
424
+ attr_accessor :requested
425
+
426
+ def initialize(requested: nil)
427
+ @requested = requested
428
+ end
429
+ end
430
+
431
+ class LinkPayments < ::Stripe::RequestParams
432
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
433
+ attr_accessor :requested
434
+
435
+ def initialize(requested: nil)
436
+ @requested = requested
437
+ end
438
+ end
439
+
440
+ class MobilepayPayments < ::Stripe::RequestParams
441
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
442
+ attr_accessor :requested
443
+
444
+ def initialize(requested: nil)
445
+ @requested = requested
446
+ end
447
+ end
448
+
449
+ class MultibancoPayments < ::Stripe::RequestParams
450
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
451
+ attr_accessor :requested
452
+
453
+ def initialize(requested: nil)
454
+ @requested = requested
455
+ end
456
+ end
457
+
458
+ class MxBankTransferPayments < ::Stripe::RequestParams
459
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
460
+ attr_accessor :requested
461
+
462
+ def initialize(requested: nil)
463
+ @requested = requested
464
+ end
465
+ end
466
+
467
+ class NaverPayPayments < ::Stripe::RequestParams
468
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
469
+ attr_accessor :requested
470
+
471
+ def initialize(requested: nil)
472
+ @requested = requested
473
+ end
474
+ end
475
+
476
+ class OxxoPayments < ::Stripe::RequestParams
477
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
478
+ attr_accessor :requested
479
+
480
+ def initialize(requested: nil)
481
+ @requested = requested
482
+ end
483
+ end
484
+
485
+ class P24Payments < ::Stripe::RequestParams
486
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
487
+ attr_accessor :requested
488
+
489
+ def initialize(requested: nil)
490
+ @requested = requested
491
+ end
492
+ end
493
+
494
+ class PayByBankPayments < ::Stripe::RequestParams
495
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
496
+ attr_accessor :requested
497
+
498
+ def initialize(requested: nil)
499
+ @requested = requested
500
+ end
501
+ end
502
+
503
+ class PaycoPayments < ::Stripe::RequestParams
504
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
505
+ attr_accessor :requested
506
+
507
+ def initialize(requested: nil)
508
+ @requested = requested
509
+ end
510
+ end
511
+
512
+ class PaynowPayments < ::Stripe::RequestParams
513
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
514
+ attr_accessor :requested
515
+
516
+ def initialize(requested: nil)
517
+ @requested = requested
518
+ end
519
+ end
520
+
521
+ class PromptpayPayments < ::Stripe::RequestParams
522
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
523
+ attr_accessor :requested
524
+
525
+ def initialize(requested: nil)
526
+ @requested = requested
527
+ end
528
+ end
529
+
530
+ class RevolutPayPayments < ::Stripe::RequestParams
531
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
532
+ attr_accessor :requested
533
+
534
+ def initialize(requested: nil)
535
+ @requested = requested
536
+ end
537
+ end
538
+
539
+ class SamsungPayPayments < ::Stripe::RequestParams
540
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
541
+ attr_accessor :requested
542
+
543
+ def initialize(requested: nil)
544
+ @requested = requested
545
+ end
546
+ end
547
+
548
+ class SepaBankTransferPayments < ::Stripe::RequestParams
549
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
550
+ attr_accessor :requested
551
+
552
+ def initialize(requested: nil)
553
+ @requested = requested
554
+ end
555
+ end
556
+
557
+ class SepaDebitPayments < ::Stripe::RequestParams
558
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
559
+ attr_accessor :requested
560
+
561
+ def initialize(requested: nil)
562
+ @requested = requested
563
+ end
564
+ end
565
+
566
+ class SwishPayments < ::Stripe::RequestParams
567
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
568
+ attr_accessor :requested
569
+
570
+ def initialize(requested: nil)
571
+ @requested = requested
572
+ end
573
+ end
574
+
575
+ class TwintPayments < ::Stripe::RequestParams
576
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
577
+ attr_accessor :requested
578
+
579
+ def initialize(requested: nil)
580
+ @requested = requested
581
+ end
582
+ end
583
+
584
+ class UsBankTransferPayments < ::Stripe::RequestParams
585
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
586
+ attr_accessor :requested
587
+
588
+ def initialize(requested: nil)
589
+ @requested = requested
590
+ end
591
+ end
592
+
593
+ class ZipPayments < ::Stripe::RequestParams
594
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
595
+ attr_accessor :requested
596
+
597
+ def initialize(requested: nil)
598
+ @requested = requested
599
+ end
600
+ end
601
+ # Allow the merchant to process ACH debit payments.
602
+ attr_accessor :ach_debit_payments
603
+ # Allow the merchant to process ACSS debit payments.
604
+ attr_accessor :acss_debit_payments
605
+ # Allow the merchant to process Affirm payments.
606
+ attr_accessor :affirm_payments
607
+ # Allow the merchant to process Afterpay/Clearpay payments.
608
+ attr_accessor :afterpay_clearpay_payments
609
+ # Allow the merchant to process Alma payments.
610
+ attr_accessor :alma_payments
611
+ # Allow the merchant to process Amazon Pay payments.
612
+ attr_accessor :amazon_pay_payments
613
+ # Allow the merchant to process Australian BECS Direct Debit payments.
614
+ attr_accessor :au_becs_debit_payments
615
+ # Allow the merchant to process BACS Direct Debit payments.
616
+ attr_accessor :bacs_debit_payments
617
+ # Allow the merchant to process Bancontact payments.
618
+ attr_accessor :bancontact_payments
619
+ # Allow the merchant to process BLIK payments.
620
+ attr_accessor :blik_payments
621
+ # Allow the merchant to process Boleto payments.
622
+ attr_accessor :boleto_payments
623
+ # Allow the merchant to collect card payments.
624
+ attr_accessor :card_payments
625
+ # Allow the merchant to process Cartes Bancaires payments.
626
+ attr_accessor :cartes_bancaires_payments
627
+ # Allow the merchant to process Cash App payments.
628
+ attr_accessor :cashapp_payments
629
+ # Allow the merchant to process EPS payments.
630
+ attr_accessor :eps_payments
631
+ # Allow the merchant to process FPX payments.
632
+ attr_accessor :fpx_payments
633
+ # Allow the merchant to process UK bank transfer payments.
634
+ attr_accessor :gb_bank_transfer_payments
635
+ # Allow the merchant to process GrabPay payments.
636
+ attr_accessor :grabpay_payments
637
+ # Allow the merchant to process iDEAL payments.
638
+ attr_accessor :ideal_payments
639
+ # Allow the merchant to process JCB card payments.
640
+ attr_accessor :jcb_payments
641
+ # Allow the merchant to process Japanese bank transfer payments.
642
+ attr_accessor :jp_bank_transfer_payments
643
+ # Allow the merchant to process Kakao Pay payments.
644
+ attr_accessor :kakao_pay_payments
645
+ # Allow the merchant to process Klarna payments.
646
+ attr_accessor :klarna_payments
647
+ # Allow the merchant to process Konbini convenience store payments.
648
+ attr_accessor :konbini_payments
649
+ # Allow the merchant to process Korean card payments.
650
+ attr_accessor :kr_card_payments
651
+ # Allow the merchant to process Link payments.
652
+ attr_accessor :link_payments
653
+ # Allow the merchant to process MobilePay payments.
654
+ attr_accessor :mobilepay_payments
655
+ # Allow the merchant to process Multibanco payments.
656
+ attr_accessor :multibanco_payments
657
+ # Allow the merchant to process Mexican bank transfer payments.
658
+ attr_accessor :mx_bank_transfer_payments
659
+ # Allow the merchant to process Naver Pay payments.
660
+ attr_accessor :naver_pay_payments
661
+ # Allow the merchant to process OXXO payments.
662
+ attr_accessor :oxxo_payments
663
+ # Allow the merchant to process Przelewy24 (P24) payments.
664
+ attr_accessor :p24_payments
665
+ # Allow the merchant to process Pay by Bank payments.
666
+ attr_accessor :pay_by_bank_payments
667
+ # Allow the merchant to process PAYCO payments.
668
+ attr_accessor :payco_payments
669
+ # Allow the merchant to process PayNow payments.
670
+ attr_accessor :paynow_payments
671
+ # Allow the merchant to process PromptPay payments.
672
+ attr_accessor :promptpay_payments
673
+ # Allow the merchant to process Revolut Pay payments.
674
+ attr_accessor :revolut_pay_payments
675
+ # Allow the merchant to process Samsung Pay payments.
676
+ attr_accessor :samsung_pay_payments
677
+ # Allow the merchant to process SEPA bank transfer payments.
678
+ attr_accessor :sepa_bank_transfer_payments
679
+ # Allow the merchant to process SEPA Direct Debit payments.
680
+ attr_accessor :sepa_debit_payments
681
+ # Allow the merchant to process Swish payments.
682
+ attr_accessor :swish_payments
683
+ # Allow the merchant to process TWINT payments.
684
+ attr_accessor :twint_payments
685
+ # Allow the merchant to process US bank transfer payments.
686
+ attr_accessor :us_bank_transfer_payments
687
+ # Allow the merchant to process Zip payments.
688
+ attr_accessor :zip_payments
689
+
690
+ def initialize(
691
+ ach_debit_payments: nil,
692
+ acss_debit_payments: nil,
693
+ affirm_payments: nil,
694
+ afterpay_clearpay_payments: nil,
695
+ alma_payments: nil,
696
+ amazon_pay_payments: nil,
697
+ au_becs_debit_payments: nil,
698
+ bacs_debit_payments: nil,
699
+ bancontact_payments: nil,
700
+ blik_payments: nil,
701
+ boleto_payments: nil,
702
+ card_payments: nil,
703
+ cartes_bancaires_payments: nil,
704
+ cashapp_payments: nil,
705
+ eps_payments: nil,
706
+ fpx_payments: nil,
707
+ gb_bank_transfer_payments: nil,
708
+ grabpay_payments: nil,
709
+ ideal_payments: nil,
710
+ jcb_payments: nil,
711
+ jp_bank_transfer_payments: nil,
712
+ kakao_pay_payments: nil,
713
+ klarna_payments: nil,
714
+ konbini_payments: nil,
715
+ kr_card_payments: nil,
716
+ link_payments: nil,
717
+ mobilepay_payments: nil,
718
+ multibanco_payments: nil,
719
+ mx_bank_transfer_payments: nil,
720
+ naver_pay_payments: nil,
721
+ oxxo_payments: nil,
722
+ p24_payments: nil,
723
+ pay_by_bank_payments: nil,
724
+ payco_payments: nil,
725
+ paynow_payments: nil,
726
+ promptpay_payments: nil,
727
+ revolut_pay_payments: nil,
728
+ samsung_pay_payments: nil,
729
+ sepa_bank_transfer_payments: nil,
730
+ sepa_debit_payments: nil,
731
+ swish_payments: nil,
732
+ twint_payments: nil,
733
+ us_bank_transfer_payments: nil,
734
+ zip_payments: nil
735
+ )
736
+ @ach_debit_payments = ach_debit_payments
737
+ @acss_debit_payments = acss_debit_payments
738
+ @affirm_payments = affirm_payments
739
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
740
+ @alma_payments = alma_payments
741
+ @amazon_pay_payments = amazon_pay_payments
742
+ @au_becs_debit_payments = au_becs_debit_payments
743
+ @bacs_debit_payments = bacs_debit_payments
744
+ @bancontact_payments = bancontact_payments
745
+ @blik_payments = blik_payments
746
+ @boleto_payments = boleto_payments
747
+ @card_payments = card_payments
748
+ @cartes_bancaires_payments = cartes_bancaires_payments
749
+ @cashapp_payments = cashapp_payments
750
+ @eps_payments = eps_payments
751
+ @fpx_payments = fpx_payments
752
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
753
+ @grabpay_payments = grabpay_payments
754
+ @ideal_payments = ideal_payments
755
+ @jcb_payments = jcb_payments
756
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
757
+ @kakao_pay_payments = kakao_pay_payments
758
+ @klarna_payments = klarna_payments
759
+ @konbini_payments = konbini_payments
760
+ @kr_card_payments = kr_card_payments
761
+ @link_payments = link_payments
762
+ @mobilepay_payments = mobilepay_payments
763
+ @multibanco_payments = multibanco_payments
764
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
765
+ @naver_pay_payments = naver_pay_payments
766
+ @oxxo_payments = oxxo_payments
767
+ @p24_payments = p24_payments
768
+ @pay_by_bank_payments = pay_by_bank_payments
769
+ @payco_payments = payco_payments
770
+ @paynow_payments = paynow_payments
771
+ @promptpay_payments = promptpay_payments
772
+ @revolut_pay_payments = revolut_pay_payments
773
+ @samsung_pay_payments = samsung_pay_payments
774
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
775
+ @sepa_debit_payments = sepa_debit_payments
776
+ @swish_payments = swish_payments
777
+ @twint_payments = twint_payments
778
+ @us_bank_transfer_payments = us_bank_transfer_payments
779
+ @zip_payments = zip_payments
780
+ end
781
+ end
782
+
783
+ class CardPayments < ::Stripe::RequestParams
784
+ class DeclineOn < ::Stripe::RequestParams
785
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
786
+ attr_accessor :avs_failure
787
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
788
+ attr_accessor :cvc_failure
789
+
790
+ def initialize(avs_failure: nil, cvc_failure: nil)
791
+ @avs_failure = avs_failure
792
+ @cvc_failure = cvc_failure
793
+ end
794
+ end
795
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
796
+ attr_accessor :decline_on
797
+
798
+ def initialize(decline_on: nil)
799
+ @decline_on = decline_on
800
+ end
801
+ end
802
+
803
+ class KonbiniPayments < ::Stripe::RequestParams
804
+ class Support < ::Stripe::RequestParams
805
+ class Hours < ::Stripe::RequestParams
806
+ # Support hours end time (JST time of day) for in `HH:MM` format.
807
+ attr_accessor :end_time
808
+ # Support hours start time (JST time of day) for in `HH:MM` format.
809
+ attr_accessor :start_time
810
+
811
+ def initialize(end_time: nil, start_time: nil)
812
+ @end_time = end_time
813
+ @start_time = start_time
814
+ end
815
+ end
816
+ # Support email address for Konbini payments.
817
+ attr_accessor :email
818
+ # Support hours for Konbini payments.
819
+ attr_accessor :hours
820
+ # Support phone number for Konbini payments.
821
+ attr_accessor :phone
822
+
823
+ def initialize(email: nil, hours: nil, phone: nil)
824
+ @email = email
825
+ @hours = hours
826
+ @phone = phone
827
+ end
828
+ end
829
+ # Support for Konbini payments.
830
+ attr_accessor :support
831
+
832
+ def initialize(support: nil)
833
+ @support = support
834
+ end
835
+ end
836
+
837
+ class ScriptStatementDescriptor < ::Stripe::RequestParams
838
+ class Kana < ::Stripe::RequestParams
839
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
840
+ attr_accessor :descriptor
841
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
842
+ attr_accessor :prefix
843
+
844
+ def initialize(descriptor: nil, prefix: nil)
845
+ @descriptor = descriptor
846
+ @prefix = prefix
847
+ end
848
+ end
849
+
850
+ class Kanji < ::Stripe::RequestParams
851
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
852
+ attr_accessor :descriptor
853
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
854
+ attr_accessor :prefix
855
+
856
+ def initialize(descriptor: nil, prefix: nil)
857
+ @descriptor = descriptor
858
+ @prefix = prefix
859
+ end
860
+ end
861
+ # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
862
+ attr_accessor :kana
863
+ # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
864
+ attr_accessor :kanji
865
+
866
+ def initialize(kana: nil, kanji: nil)
867
+ @kana = kana
868
+ @kanji = kanji
869
+ end
870
+ end
871
+
872
+ class StatementDescriptor < ::Stripe::RequestParams
873
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
874
+ attr_accessor :descriptor
875
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
876
+ attr_accessor :prefix
877
+
878
+ def initialize(descriptor: nil, prefix: nil)
879
+ @descriptor = descriptor
880
+ @prefix = prefix
881
+ end
882
+ end
883
+
884
+ class Support < ::Stripe::RequestParams
885
+ class Address < ::Stripe::RequestParams
886
+ # City, district, suburb, town, or village.
887
+ attr_accessor :city
888
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
889
+ attr_accessor :country
890
+ # Address line 1 (e.g., street, PO Box, or company name).
891
+ attr_accessor :line1
892
+ # Address line 2 (e.g., apartment, suite, unit, or building).
893
+ attr_accessor :line2
894
+ # ZIP or postal code.
895
+ attr_accessor :postal_code
896
+ # State, county, province, or region.
897
+ attr_accessor :state
898
+ # Town or district.
899
+ attr_accessor :town
900
+
901
+ def initialize(
902
+ city: nil,
903
+ country: nil,
904
+ line1: nil,
905
+ line2: nil,
906
+ postal_code: nil,
907
+ state: nil,
908
+ town: nil
909
+ )
910
+ @city = city
911
+ @country = country
912
+ @line1 = line1
913
+ @line2 = line2
914
+ @postal_code = postal_code
915
+ @state = state
916
+ @town = town
917
+ end
918
+ end
919
+ # A publicly available mailing address for sending support issues to.
920
+ attr_accessor :address
921
+ # A publicly available email address for sending support issues to.
922
+ attr_accessor :email
923
+ # A publicly available phone number to call with support issues.
924
+ attr_accessor :phone
925
+ # A publicly available website for handling support issues.
926
+ attr_accessor :url
927
+
928
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
929
+ @address = address
930
+ @email = email
931
+ @phone = phone
932
+ @url = url
933
+ end
934
+ end
935
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
936
+ attr_accessor :applied
937
+ # Settings for Bacs Direct Debit payments.
938
+ attr_accessor :bacs_debit_payments
939
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
940
+ attr_accessor :branding
941
+ # Capabilities to request on the Merchant Configuration.
942
+ attr_accessor :capabilities
943
+ # Card payments settings.
944
+ attr_accessor :card_payments
945
+ # Settings specific to Konbini payments on the account.
946
+ attr_accessor :konbini_payments
947
+ # The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
948
+ attr_accessor :mcc
949
+ # Settings for the default text that appears on statements for language variations.
950
+ attr_accessor :script_statement_descriptor
951
+ # Settings for the default [statement descriptor](/connect/statement-descriptors) text.
952
+ attr_accessor :statement_descriptor
953
+ # Publicly available contact information for sending support issues to.
954
+ attr_accessor :support
955
+
956
+ def initialize(
957
+ applied: nil,
958
+ bacs_debit_payments: nil,
959
+ branding: nil,
960
+ capabilities: nil,
961
+ card_payments: nil,
962
+ konbini_payments: nil,
963
+ mcc: nil,
964
+ script_statement_descriptor: nil,
965
+ statement_descriptor: nil,
966
+ support: nil
967
+ )
968
+ @applied = applied
969
+ @bacs_debit_payments = bacs_debit_payments
970
+ @branding = branding
971
+ @capabilities = capabilities
972
+ @card_payments = card_payments
973
+ @konbini_payments = konbini_payments
974
+ @mcc = mcc
975
+ @script_statement_descriptor = script_statement_descriptor
976
+ @statement_descriptor = statement_descriptor
977
+ @support = support
978
+ end
979
+ end
980
+
981
+ class Recipient < ::Stripe::RequestParams
982
+ class Capabilities < ::Stripe::RequestParams
983
+ class StripeBalance < ::Stripe::RequestParams
984
+ class StripeTransfers < ::Stripe::RequestParams
985
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
986
+ attr_accessor :requested
987
+
988
+ def initialize(requested: nil)
989
+ @requested = requested
990
+ end
991
+ end
992
+ # Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
993
+ attr_accessor :stripe_transfers
994
+
995
+ def initialize(stripe_transfers: nil)
996
+ @stripe_transfers = stripe_transfers
997
+ end
998
+ end
999
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1000
+ attr_accessor :stripe_balance
1001
+
1002
+ def initialize(stripe_balance: nil)
1003
+ @stripe_balance = stripe_balance
1004
+ end
1005
+ end
1006
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1007
+ attr_accessor :applied
1008
+ # Capabilities to request on the Recipient Configuration.
1009
+ attr_accessor :capabilities
1010
+
1011
+ def initialize(applied: nil, capabilities: nil)
1012
+ @applied = applied
1013
+ @capabilities = capabilities
1014
+ end
1015
+ end
1016
+ # The Customer Configuration allows the Account to be charged.
1017
+ attr_accessor :customer
1018
+ # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
1019
+ attr_accessor :merchant
1020
+ # The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
1021
+ attr_accessor :recipient
1022
+
1023
+ def initialize(customer: nil, merchant: nil, recipient: nil)
1024
+ @customer = customer
1025
+ @merchant = merchant
1026
+ @recipient = recipient
1027
+ end
1028
+ end
1029
+
1030
+ class Defaults < ::Stripe::RequestParams
1031
+ class Profile < ::Stripe::RequestParams
1032
+ # The business's publicly-available website.
1033
+ attr_accessor :business_url
1034
+ # The name which is used by the business.
1035
+ attr_accessor :doing_business_as
1036
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1037
+ attr_accessor :product_description
1038
+
1039
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1040
+ @business_url = business_url
1041
+ @doing_business_as = doing_business_as
1042
+ @product_description = product_description
1043
+ end
1044
+ end
1045
+
1046
+ class Responsibilities < ::Stripe::RequestParams
1047
+ # A value indicating the party responsible for collecting fees from this account.
1048
+ attr_accessor :fees_collector
1049
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1050
+ attr_accessor :losses_collector
1051
+
1052
+ def initialize(fees_collector: nil, losses_collector: nil)
1053
+ @fees_collector = fees_collector
1054
+ @losses_collector = losses_collector
1055
+ end
1056
+ end
1057
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1058
+ attr_accessor :currency
1059
+ # The Account's preferred locales (languages), ordered by preference.
1060
+ attr_accessor :locales
1061
+ # Account profile information.
1062
+ attr_accessor :profile
1063
+ # Default responsibilities held by either Stripe or the platform.
1064
+ attr_accessor :responsibilities
1065
+
1066
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1067
+ @currency = currency
1068
+ @locales = locales
1069
+ @profile = profile
1070
+ @responsibilities = responsibilities
1071
+ end
1072
+ end
1073
+
1074
+ class Identity < ::Stripe::RequestParams
1075
+ class Attestations < ::Stripe::RequestParams
1076
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1077
+ # The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1078
+ attr_accessor :date
1079
+ # The IP address from which the director attestation was made.
1080
+ attr_accessor :ip
1081
+ # The user agent of the browser from which the director attestation was made.
1082
+ attr_accessor :user_agent
1083
+
1084
+ def initialize(date: nil, ip: nil, user_agent: nil)
1085
+ @date = date
1086
+ @ip = ip
1087
+ @user_agent = user_agent
1088
+ end
1089
+ end
1090
+
1091
+ class OwnershipDeclaration < ::Stripe::RequestParams
1092
+ # The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1093
+ attr_accessor :date
1094
+ # The IP address from which the beneficial owner attestation was made.
1095
+ attr_accessor :ip
1096
+ # The user agent of the browser from which the beneficial owner attestation was made.
1097
+ attr_accessor :user_agent
1098
+
1099
+ def initialize(date: nil, ip: nil, user_agent: nil)
1100
+ @date = date
1101
+ @ip = ip
1102
+ @user_agent = user_agent
1103
+ end
1104
+ end
1105
+
1106
+ class PersonsProvided < ::Stripe::RequestParams
1107
+ # 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).
1108
+ attr_accessor :directors
1109
+ # 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).
1110
+ attr_accessor :executives
1111
+ # 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).
1112
+ attr_accessor :owners
1113
+ # Reason for why the company is exempt from providing ownership information.
1114
+ attr_accessor :ownership_exemption_reason
1115
+
1116
+ def initialize(
1117
+ directors: nil,
1118
+ executives: nil,
1119
+ owners: nil,
1120
+ ownership_exemption_reason: nil
1121
+ )
1122
+ @directors = directors
1123
+ @executives = executives
1124
+ @owners = owners
1125
+ @ownership_exemption_reason = ownership_exemption_reason
1126
+ end
1127
+ end
1128
+
1129
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1130
+ # The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1131
+ attr_accessor :date
1132
+ # The IP address from which the representative attestation was made.
1133
+ attr_accessor :ip
1134
+ # The user agent of the browser from which the representative attestation was made.
1135
+ attr_accessor :user_agent
1136
+
1137
+ def initialize(date: nil, ip: nil, user_agent: nil)
1138
+ @date = date
1139
+ @ip = ip
1140
+ @user_agent = user_agent
1141
+ end
1142
+ end
1143
+
1144
+ class TermsOfService < ::Stripe::RequestParams
1145
+ class Account < ::Stripe::RequestParams
1146
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1147
+ attr_accessor :date
1148
+ # The IP address from which the Account's representative accepted the terms of service.
1149
+ attr_accessor :ip
1150
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1151
+ attr_accessor :user_agent
1152
+
1153
+ def initialize(date: nil, ip: nil, user_agent: nil)
1154
+ @date = date
1155
+ @ip = ip
1156
+ @user_agent = user_agent
1157
+ end
1158
+ end
1159
+
1160
+ class CryptoStorer < ::Stripe::RequestParams
1161
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1162
+ attr_accessor :date
1163
+ # The IP address from which the Account's representative accepted the terms of service.
1164
+ attr_accessor :ip
1165
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1166
+ attr_accessor :user_agent
1167
+
1168
+ def initialize(date: nil, ip: nil, user_agent: nil)
1169
+ @date = date
1170
+ @ip = ip
1171
+ @user_agent = user_agent
1172
+ end
1173
+ end
1174
+
1175
+ class Storer < ::Stripe::RequestParams
1176
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1177
+ attr_accessor :date
1178
+ # The IP address from which the Account's representative accepted the terms of service.
1179
+ attr_accessor :ip
1180
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1181
+ attr_accessor :user_agent
1182
+
1183
+ def initialize(date: nil, ip: nil, user_agent: nil)
1184
+ @date = date
1185
+ @ip = ip
1186
+ @user_agent = user_agent
1187
+ end
1188
+ end
1189
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1190
+ attr_accessor :account
1191
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service.
1192
+ attr_accessor :crypto_storer
1193
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1194
+ attr_accessor :storer
1195
+
1196
+ def initialize(account: nil, crypto_storer: nil, storer: nil)
1197
+ @account = account
1198
+ @crypto_storer = crypto_storer
1199
+ @storer = storer
1200
+ end
1201
+ end
1202
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1203
+ attr_accessor :directorship_declaration
1204
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1205
+ attr_accessor :ownership_declaration
1206
+ # Attestation that all Persons with a specific Relationship value have been provided.
1207
+ attr_accessor :persons_provided
1208
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1209
+ attr_accessor :representative_declaration
1210
+ # Attestations of accepted terms of service agreements.
1211
+ attr_accessor :terms_of_service
1212
+
1213
+ def initialize(
1214
+ directorship_declaration: nil,
1215
+ ownership_declaration: nil,
1216
+ persons_provided: nil,
1217
+ representative_declaration: nil,
1218
+ terms_of_service: nil
1219
+ )
1220
+ @directorship_declaration = directorship_declaration
1221
+ @ownership_declaration = ownership_declaration
1222
+ @persons_provided = persons_provided
1223
+ @representative_declaration = representative_declaration
1224
+ @terms_of_service = terms_of_service
1225
+ end
1226
+ end
1227
+
1228
+ class BusinessDetails < ::Stripe::RequestParams
1229
+ class Address < ::Stripe::RequestParams
1230
+ # City, district, suburb, town, or village.
1231
+ attr_accessor :city
1232
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1233
+ attr_accessor :country
1234
+ # Address line 1 (e.g., street, PO Box, or company name).
1235
+ attr_accessor :line1
1236
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1237
+ attr_accessor :line2
1238
+ # ZIP or postal code.
1239
+ attr_accessor :postal_code
1240
+ # State, county, province, or region.
1241
+ attr_accessor :state
1242
+ # Town or district.
1243
+ attr_accessor :town
1244
+
1245
+ def initialize(
1246
+ city: nil,
1247
+ country: nil,
1248
+ line1: nil,
1249
+ line2: nil,
1250
+ postal_code: nil,
1251
+ state: nil,
1252
+ town: nil
1253
+ )
1254
+ @city = city
1255
+ @country = country
1256
+ @line1 = line1
1257
+ @line2 = line2
1258
+ @postal_code = postal_code
1259
+ @state = state
1260
+ @town = town
1261
+ end
1262
+ end
1263
+
1264
+ class AnnualRevenue < ::Stripe::RequestParams
1265
+ # A non-negative integer representing the amount in the smallest currency unit.
1266
+ attr_accessor :amount
1267
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1268
+ attr_accessor :fiscal_year_end
1269
+
1270
+ def initialize(amount: nil, fiscal_year_end: nil)
1271
+ @amount = amount
1272
+ @fiscal_year_end = fiscal_year_end
1273
+ end
1274
+ end
1275
+
1276
+ class Documents < ::Stripe::RequestParams
1277
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1278
+ # 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`.
1279
+ attr_accessor :files
1280
+ # The format of the document. Currently supports `files` only.
1281
+ attr_accessor :type
1282
+
1283
+ def initialize(files: nil, type: nil)
1284
+ @files = files
1285
+ @type = type
1286
+ end
1287
+ end
1288
+
1289
+ class CompanyLicense < ::Stripe::RequestParams
1290
+ # 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`.
1291
+ attr_accessor :files
1292
+ # The format of the document. Currently supports `files` only.
1293
+ attr_accessor :type
1294
+
1295
+ def initialize(files: nil, type: nil)
1296
+ @files = files
1297
+ @type = type
1298
+ end
1299
+ end
1300
+
1301
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1302
+ # 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`.
1303
+ attr_accessor :files
1304
+ # The format of the document. Currently supports `files` only.
1305
+ attr_accessor :type
1306
+
1307
+ def initialize(files: nil, type: nil)
1308
+ @files = files
1309
+ @type = type
1310
+ end
1311
+ end
1312
+
1313
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1314
+ # 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`.
1315
+ attr_accessor :files
1316
+ # The format of the document. Currently supports `files` only.
1317
+ attr_accessor :type
1318
+
1319
+ def initialize(files: nil, type: nil)
1320
+ @files = files
1321
+ @type = type
1322
+ end
1323
+ end
1324
+
1325
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1326
+ # 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`.
1327
+ attr_accessor :files
1328
+ # The format of the document. Currently supports `files` only.
1329
+ attr_accessor :type
1330
+
1331
+ def initialize(files: nil, type: nil)
1332
+ @files = files
1333
+ @type = type
1334
+ end
1335
+ end
1336
+
1337
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1338
+ # 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`.
1339
+ attr_accessor :files
1340
+ # The format of the document. Currently supports `files` only.
1341
+ attr_accessor :type
1342
+
1343
+ def initialize(files: nil, type: nil)
1344
+ @files = files
1345
+ @type = type
1346
+ end
1347
+ end
1348
+
1349
+ class PrimaryVerification < ::Stripe::RequestParams
1350
+ class FrontBack < ::Stripe::RequestParams
1351
+ # 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.
1352
+ attr_accessor :back
1353
+ # 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.
1354
+ attr_accessor :front
1355
+
1356
+ def initialize(back: nil, front: nil)
1357
+ @back = back
1358
+ @front = front
1359
+ end
1360
+ end
1361
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1362
+ attr_accessor :front_back
1363
+ # The format of the verification document. Currently supports `front_back` only.
1364
+ attr_accessor :type
1365
+
1366
+ def initialize(front_back: nil, type: nil)
1367
+ @front_back = front_back
1368
+ @type = type
1369
+ end
1370
+ end
1371
+
1372
+ class ProofOfAddress < ::Stripe::RequestParams
1373
+ # 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`.
1374
+ attr_accessor :files
1375
+ # The format of the document. Currently supports `files` only.
1376
+ attr_accessor :type
1377
+
1378
+ def initialize(files: nil, type: nil)
1379
+ @files = files
1380
+ @type = type
1381
+ end
1382
+ end
1383
+
1384
+ class ProofOfRegistration < ::Stripe::RequestParams
1385
+ # 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`.
1386
+ attr_accessor :files
1387
+ # The format of the document. Currently supports `files` only.
1388
+ attr_accessor :type
1389
+
1390
+ def initialize(files: nil, type: nil)
1391
+ @files = files
1392
+ @type = type
1393
+ end
1394
+ end
1395
+
1396
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1397
+ # 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`.
1398
+ attr_accessor :files
1399
+ # The format of the document. Currently supports `files` only.
1400
+ attr_accessor :type
1401
+
1402
+ def initialize(files: nil, type: nil)
1403
+ @files = files
1404
+ @type = type
1405
+ end
1406
+ end
1407
+ # 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.
1408
+ attr_accessor :bank_account_ownership_verification
1409
+ # One or more documents that demonstrate proof of a company’s license to operate.
1410
+ attr_accessor :company_license
1411
+ # One or more documents showing the company’s Memorandum of Association.
1412
+ attr_accessor :company_memorandum_of_association
1413
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1414
+ attr_accessor :company_ministerial_decree
1415
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1416
+ attr_accessor :company_registration_verification
1417
+ # One or more documents that demonstrate proof of a company’s tax ID.
1418
+ attr_accessor :company_tax_id_verification
1419
+ # A document verifying the business.
1420
+ attr_accessor :primary_verification
1421
+ # One or more documents that demonstrate proof of address.
1422
+ attr_accessor :proof_of_address
1423
+ # One or more documents showing the company’s proof of registration with the national business registry.
1424
+ attr_accessor :proof_of_registration
1425
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1426
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1427
+
1428
+ def initialize(
1429
+ bank_account_ownership_verification: nil,
1430
+ company_license: nil,
1431
+ company_memorandum_of_association: nil,
1432
+ company_ministerial_decree: nil,
1433
+ company_registration_verification: nil,
1434
+ company_tax_id_verification: nil,
1435
+ primary_verification: nil,
1436
+ proof_of_address: nil,
1437
+ proof_of_registration: nil,
1438
+ proof_of_ultimate_beneficial_ownership: nil
1439
+ )
1440
+ @bank_account_ownership_verification = bank_account_ownership_verification
1441
+ @company_license = company_license
1442
+ @company_memorandum_of_association = company_memorandum_of_association
1443
+ @company_ministerial_decree = company_ministerial_decree
1444
+ @company_registration_verification = company_registration_verification
1445
+ @company_tax_id_verification = company_tax_id_verification
1446
+ @primary_verification = primary_verification
1447
+ @proof_of_address = proof_of_address
1448
+ @proof_of_registration = proof_of_registration
1449
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1450
+ end
1451
+ end
1452
+
1453
+ class IdNumber < ::Stripe::RequestParams
1454
+ # The registrar of the ID number (Only valid for DE ID number types).
1455
+ attr_accessor :registrar
1456
+ # Open Enum. The ID number type of a business entity.
1457
+ attr_accessor :type
1458
+ # The value of the ID number.
1459
+ attr_accessor :value
1460
+
1461
+ def initialize(registrar: nil, type: nil, value: nil)
1462
+ @registrar = registrar
1463
+ @type = type
1464
+ @value = value
1465
+ end
1466
+ end
1467
+
1468
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
1469
+ # A non-negative integer representing the amount in the smallest currency unit.
1470
+ attr_accessor :amount
1471
+
1472
+ def initialize(amount: nil)
1473
+ @amount = amount
1474
+ end
1475
+ end
1476
+
1477
+ class RegistrationDate < ::Stripe::RequestParams
1478
+ # The day of registration, between 1 and 31.
1479
+ attr_accessor :day
1480
+ # The month of registration, between 1 and 12.
1481
+ attr_accessor :month
1482
+ # The four-digit year of registration.
1483
+ attr_accessor :year
1484
+
1485
+ def initialize(day: nil, month: nil, year: nil)
1486
+ @day = day
1487
+ @month = month
1488
+ @year = year
1489
+ end
1490
+ end
1491
+
1492
+ class ScriptAddresses < ::Stripe::RequestParams
1493
+ class Kana < ::Stripe::RequestParams
1494
+ # City, district, suburb, town, or village.
1495
+ attr_accessor :city
1496
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1497
+ attr_accessor :country
1498
+ # Address line 1 (e.g., street, PO Box, or company name).
1499
+ attr_accessor :line1
1500
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1501
+ attr_accessor :line2
1502
+ # ZIP or postal code.
1503
+ attr_accessor :postal_code
1504
+ # State, county, province, or region.
1505
+ attr_accessor :state
1506
+ # Town or district.
1507
+ attr_accessor :town
1508
+
1509
+ def initialize(
1510
+ city: nil,
1511
+ country: nil,
1512
+ line1: nil,
1513
+ line2: nil,
1514
+ postal_code: nil,
1515
+ state: nil,
1516
+ town: nil
1517
+ )
1518
+ @city = city
1519
+ @country = country
1520
+ @line1 = line1
1521
+ @line2 = line2
1522
+ @postal_code = postal_code
1523
+ @state = state
1524
+ @town = town
1525
+ end
1526
+ end
1527
+
1528
+ class Kanji < ::Stripe::RequestParams
1529
+ # City, district, suburb, town, or village.
1530
+ attr_accessor :city
1531
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1532
+ attr_accessor :country
1533
+ # Address line 1 (e.g., street, PO Box, or company name).
1534
+ attr_accessor :line1
1535
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1536
+ attr_accessor :line2
1537
+ # ZIP or postal code.
1538
+ attr_accessor :postal_code
1539
+ # State, county, province, or region.
1540
+ attr_accessor :state
1541
+ # Town or district.
1542
+ attr_accessor :town
1543
+
1544
+ def initialize(
1545
+ city: nil,
1546
+ country: nil,
1547
+ line1: nil,
1548
+ line2: nil,
1549
+ postal_code: nil,
1550
+ state: nil,
1551
+ town: nil
1552
+ )
1553
+ @city = city
1554
+ @country = country
1555
+ @line1 = line1
1556
+ @line2 = line2
1557
+ @postal_code = postal_code
1558
+ @state = state
1559
+ @town = town
1560
+ end
1561
+ end
1562
+ # Kana Address.
1563
+ attr_accessor :kana
1564
+ # Kanji Address.
1565
+ attr_accessor :kanji
1566
+
1567
+ def initialize(kana: nil, kanji: nil)
1568
+ @kana = kana
1569
+ @kanji = kanji
1570
+ end
1571
+ end
1572
+
1573
+ class ScriptNames < ::Stripe::RequestParams
1574
+ class Kana < ::Stripe::RequestParams
1575
+ # Registered name of the business.
1576
+ attr_accessor :registered_name
1577
+
1578
+ def initialize(registered_name: nil)
1579
+ @registered_name = registered_name
1580
+ end
1581
+ end
1582
+
1583
+ class Kanji < ::Stripe::RequestParams
1584
+ # Registered name of the business.
1585
+ attr_accessor :registered_name
1586
+
1587
+ def initialize(registered_name: nil)
1588
+ @registered_name = registered_name
1589
+ end
1590
+ end
1591
+ # Kana name.
1592
+ attr_accessor :kana
1593
+ # Kanji name.
1594
+ attr_accessor :kanji
1595
+
1596
+ def initialize(kana: nil, kanji: nil)
1597
+ @kana = kana
1598
+ @kanji = kanji
1599
+ end
1600
+ end
1601
+ # The business registration address of the business entity.
1602
+ attr_accessor :address
1603
+ # The business gross annual revenue for its preceding fiscal year.
1604
+ attr_accessor :annual_revenue
1605
+ # A document verifying the business.
1606
+ attr_accessor :documents
1607
+ # Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
1608
+ attr_accessor :estimated_worker_count
1609
+ # The ID numbers of a business entity.
1610
+ attr_accessor :id_numbers
1611
+ # An estimate of the monthly revenue of the business.
1612
+ attr_accessor :monthly_estimated_revenue
1613
+ # The phone number of the Business Entity.
1614
+ attr_accessor :phone
1615
+ # The business legal name.
1616
+ attr_accessor :registered_name
1617
+ # When the business was incorporated or registered.
1618
+ attr_accessor :registration_date
1619
+ # The business registration address of the business entity in non latin script.
1620
+ attr_accessor :script_addresses
1621
+ # The business legal name in non latin script.
1622
+ attr_accessor :script_names
1623
+ # The category identifying the legal structure of the business.
1624
+ attr_accessor :structure
1625
+
1626
+ def initialize(
1627
+ address: nil,
1628
+ annual_revenue: nil,
1629
+ documents: nil,
1630
+ estimated_worker_count: nil,
1631
+ id_numbers: nil,
1632
+ monthly_estimated_revenue: nil,
1633
+ phone: nil,
1634
+ registered_name: nil,
1635
+ registration_date: nil,
1636
+ script_addresses: nil,
1637
+ script_names: nil,
1638
+ structure: nil
1639
+ )
1640
+ @address = address
1641
+ @annual_revenue = annual_revenue
1642
+ @documents = documents
1643
+ @estimated_worker_count = estimated_worker_count
1644
+ @id_numbers = id_numbers
1645
+ @monthly_estimated_revenue = monthly_estimated_revenue
1646
+ @phone = phone
1647
+ @registered_name = registered_name
1648
+ @registration_date = registration_date
1649
+ @script_addresses = script_addresses
1650
+ @script_names = script_names
1651
+ @structure = structure
1652
+ end
1653
+ end
1654
+
1655
+ class Individual < ::Stripe::RequestParams
1656
+ class AdditionalAddress < ::Stripe::RequestParams
1657
+ # City, district, suburb, town, or village.
1658
+ attr_accessor :city
1659
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1660
+ attr_accessor :country
1661
+ # Address line 1 (e.g., street, PO Box, or company name).
1662
+ attr_accessor :line1
1663
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1664
+ attr_accessor :line2
1665
+ # ZIP or postal code.
1666
+ attr_accessor :postal_code
1667
+ # Purpose of additional address.
1668
+ attr_accessor :purpose
1669
+ # State, county, province, or region.
1670
+ attr_accessor :state
1671
+ # Town or district.
1672
+ attr_accessor :town
1673
+
1674
+ def initialize(
1675
+ city: nil,
1676
+ country: nil,
1677
+ line1: nil,
1678
+ line2: nil,
1679
+ postal_code: nil,
1680
+ purpose: nil,
1681
+ state: nil,
1682
+ town: nil
1683
+ )
1684
+ @city = city
1685
+ @country = country
1686
+ @line1 = line1
1687
+ @line2 = line2
1688
+ @postal_code = postal_code
1689
+ @purpose = purpose
1690
+ @state = state
1691
+ @town = town
1692
+ end
1693
+ end
1694
+
1695
+ class AdditionalName < ::Stripe::RequestParams
1696
+ # The person's full name.
1697
+ attr_accessor :full_name
1698
+ # The person's first or given name.
1699
+ attr_accessor :given_name
1700
+ # The purpose or type of the additional name.
1701
+ attr_accessor :purpose
1702
+ # The person's last or family name.
1703
+ attr_accessor :surname
1704
+
1705
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1706
+ @full_name = full_name
1707
+ @given_name = given_name
1708
+ @purpose = purpose
1709
+ @surname = surname
1710
+ end
1711
+ end
1712
+
1713
+ class Address < ::Stripe::RequestParams
1714
+ # City, district, suburb, town, or village.
1715
+ attr_accessor :city
1716
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1717
+ attr_accessor :country
1718
+ # Address line 1 (e.g., street, PO Box, or company name).
1719
+ attr_accessor :line1
1720
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1721
+ attr_accessor :line2
1722
+ # ZIP or postal code.
1723
+ attr_accessor :postal_code
1724
+ # State, county, province, or region.
1725
+ attr_accessor :state
1726
+ # Town or district.
1727
+ attr_accessor :town
1728
+
1729
+ def initialize(
1730
+ city: nil,
1731
+ country: nil,
1732
+ line1: nil,
1733
+ line2: nil,
1734
+ postal_code: nil,
1735
+ state: nil,
1736
+ town: nil
1737
+ )
1738
+ @city = city
1739
+ @country = country
1740
+ @line1 = line1
1741
+ @line2 = line2
1742
+ @postal_code = postal_code
1743
+ @state = state
1744
+ @town = town
1745
+ end
1746
+ end
1747
+
1748
+ class DateOfBirth < ::Stripe::RequestParams
1749
+ # The day of the birth.
1750
+ attr_accessor :day
1751
+ # The month of birth.
1752
+ attr_accessor :month
1753
+ # The year of birth.
1754
+ attr_accessor :year
1755
+
1756
+ def initialize(day: nil, month: nil, year: nil)
1757
+ @day = day
1758
+ @month = month
1759
+ @year = year
1760
+ end
1761
+ end
1762
+
1763
+ class Documents < ::Stripe::RequestParams
1764
+ class CompanyAuthorization < ::Stripe::RequestParams
1765
+ # 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`.
1766
+ attr_accessor :files
1767
+ # The format of the document. Currently supports `files` only.
1768
+ attr_accessor :type
1769
+
1770
+ def initialize(files: nil, type: nil)
1771
+ @files = files
1772
+ @type = type
1773
+ end
1774
+ end
1775
+
1776
+ class Passport < ::Stripe::RequestParams
1777
+ # 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`.
1778
+ attr_accessor :files
1779
+ # The format of the document. Currently supports `files` only.
1780
+ attr_accessor :type
1781
+
1782
+ def initialize(files: nil, type: nil)
1783
+ @files = files
1784
+ @type = type
1785
+ end
1786
+ end
1787
+
1788
+ class PrimaryVerification < ::Stripe::RequestParams
1789
+ class FrontBack < ::Stripe::RequestParams
1790
+ # 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.
1791
+ attr_accessor :back
1792
+ # 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.
1793
+ attr_accessor :front
1794
+
1795
+ def initialize(back: nil, front: nil)
1796
+ @back = back
1797
+ @front = front
1798
+ end
1799
+ end
1800
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1801
+ attr_accessor :front_back
1802
+ # The format of the verification document. Currently supports `front_back` only.
1803
+ attr_accessor :type
1804
+
1805
+ def initialize(front_back: nil, type: nil)
1806
+ @front_back = front_back
1807
+ @type = type
1808
+ end
1809
+ end
1810
+
1811
+ class SecondaryVerification < ::Stripe::RequestParams
1812
+ class FrontBack < ::Stripe::RequestParams
1813
+ # 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.
1814
+ attr_accessor :back
1815
+ # 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.
1816
+ attr_accessor :front
1817
+
1818
+ def initialize(back: nil, front: nil)
1819
+ @back = back
1820
+ @front = front
1821
+ end
1822
+ end
1823
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1824
+ attr_accessor :front_back
1825
+ # The format of the verification document. Currently supports `front_back` only.
1826
+ attr_accessor :type
1827
+
1828
+ def initialize(front_back: nil, type: nil)
1829
+ @front_back = front_back
1830
+ @type = type
1831
+ end
1832
+ end
1833
+
1834
+ class Visa < ::Stripe::RequestParams
1835
+ # 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`.
1836
+ attr_accessor :files
1837
+ # The format of the document. Currently supports `files` only.
1838
+ attr_accessor :type
1839
+
1840
+ def initialize(files: nil, type: nil)
1841
+ @files = files
1842
+ @type = type
1843
+ end
1844
+ end
1845
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1846
+ attr_accessor :company_authorization
1847
+ # One or more documents showing the person’s passport page with photo and personal data.
1848
+ attr_accessor :passport
1849
+ # An identifying document showing the person's name, either a passport or local ID card.
1850
+ attr_accessor :primary_verification
1851
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1852
+ attr_accessor :secondary_verification
1853
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1854
+ attr_accessor :visa
1855
+
1856
+ def initialize(
1857
+ company_authorization: nil,
1858
+ passport: nil,
1859
+ primary_verification: nil,
1860
+ secondary_verification: nil,
1861
+ visa: nil
1862
+ )
1863
+ @company_authorization = company_authorization
1864
+ @passport = passport
1865
+ @primary_verification = primary_verification
1866
+ @secondary_verification = secondary_verification
1867
+ @visa = visa
1868
+ end
1869
+ end
1870
+
1871
+ class IdNumber < ::Stripe::RequestParams
1872
+ # The ID number type of an individual.
1873
+ attr_accessor :type
1874
+ # The value of the ID number.
1875
+ attr_accessor :value
1876
+
1877
+ def initialize(type: nil, value: nil)
1878
+ @type = type
1879
+ @value = value
1880
+ end
1881
+ end
1882
+
1883
+ class Relationship < ::Stripe::RequestParams
1884
+ # 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.
1885
+ attr_accessor :director
1886
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1887
+ attr_accessor :executive
1888
+ # Whether the person is an owner of the account’s identity.
1889
+ attr_accessor :owner
1890
+ # The percent owned by the person of the account's legal entity.
1891
+ attr_accessor :percent_ownership
1892
+ # The person's title (e.g., CEO, Support Engineer).
1893
+ attr_accessor :title
1894
+
1895
+ def initialize(
1896
+ director: nil,
1897
+ executive: nil,
1898
+ owner: nil,
1899
+ percent_ownership: nil,
1900
+ title: nil
1901
+ )
1902
+ @director = director
1903
+ @executive = executive
1904
+ @owner = owner
1905
+ @percent_ownership = percent_ownership
1906
+ @title = title
1907
+ end
1908
+
1909
+ def self.field_encodings
1910
+ @field_encodings = { percent_ownership: :decimal_string }
1911
+ end
1912
+ end
1913
+
1914
+ class ScriptAddresses < ::Stripe::RequestParams
1915
+ class Kana < ::Stripe::RequestParams
1916
+ # City, district, suburb, town, or village.
1917
+ attr_accessor :city
1918
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1919
+ attr_accessor :country
1920
+ # Address line 1 (e.g., street, PO Box, or company name).
1921
+ attr_accessor :line1
1922
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1923
+ attr_accessor :line2
1924
+ # ZIP or postal code.
1925
+ attr_accessor :postal_code
1926
+ # State, county, province, or region.
1927
+ attr_accessor :state
1928
+ # Town or district.
1929
+ attr_accessor :town
1930
+
1931
+ def initialize(
1932
+ city: nil,
1933
+ country: nil,
1934
+ line1: nil,
1935
+ line2: nil,
1936
+ postal_code: nil,
1937
+ state: nil,
1938
+ town: nil
1939
+ )
1940
+ @city = city
1941
+ @country = country
1942
+ @line1 = line1
1943
+ @line2 = line2
1944
+ @postal_code = postal_code
1945
+ @state = state
1946
+ @town = town
1947
+ end
1948
+ end
1949
+
1950
+ class Kanji < ::Stripe::RequestParams
1951
+ # City, district, suburb, town, or village.
1952
+ attr_accessor :city
1953
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1954
+ attr_accessor :country
1955
+ # Address line 1 (e.g., street, PO Box, or company name).
1956
+ attr_accessor :line1
1957
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1958
+ attr_accessor :line2
1959
+ # ZIP or postal code.
1960
+ attr_accessor :postal_code
1961
+ # State, county, province, or region.
1962
+ attr_accessor :state
1963
+ # Town or district.
1964
+ attr_accessor :town
1965
+
1966
+ def initialize(
1967
+ city: nil,
1968
+ country: nil,
1969
+ line1: nil,
1970
+ line2: nil,
1971
+ postal_code: nil,
1972
+ state: nil,
1973
+ town: nil
1974
+ )
1975
+ @city = city
1976
+ @country = country
1977
+ @line1 = line1
1978
+ @line2 = line2
1979
+ @postal_code = postal_code
1980
+ @state = state
1981
+ @town = town
1982
+ end
1983
+ end
1984
+ # Kana Address.
1985
+ attr_accessor :kana
1986
+ # Kanji Address.
1987
+ attr_accessor :kanji
1988
+
1989
+ def initialize(kana: nil, kanji: nil)
1990
+ @kana = kana
1991
+ @kanji = kanji
1992
+ end
1993
+ end
1994
+
1995
+ class ScriptNames < ::Stripe::RequestParams
1996
+ class Kana < ::Stripe::RequestParams
1997
+ # The person's first or given name.
1998
+ attr_accessor :given_name
1999
+ # The person's last or family name.
2000
+ attr_accessor :surname
2001
+
2002
+ def initialize(given_name: nil, surname: nil)
2003
+ @given_name = given_name
2004
+ @surname = surname
2005
+ end
2006
+ end
2007
+
2008
+ class Kanji < ::Stripe::RequestParams
2009
+ # The person's first or given name.
2010
+ attr_accessor :given_name
2011
+ # The person's last or family name.
2012
+ attr_accessor :surname
2013
+
2014
+ def initialize(given_name: nil, surname: nil)
2015
+ @given_name = given_name
2016
+ @surname = surname
2017
+ end
2018
+ end
2019
+ # Persons name in kana script.
2020
+ attr_accessor :kana
2021
+ # Persons name in kanji script.
2022
+ attr_accessor :kanji
2023
+
2024
+ def initialize(kana: nil, kanji: nil)
2025
+ @kana = kana
2026
+ @kanji = kanji
2027
+ end
2028
+ end
2029
+ # Additional addresses associated with the individual.
2030
+ attr_accessor :additional_addresses
2031
+ # Additional names (e.g. aliases) associated with the individual.
2032
+ attr_accessor :additional_names
2033
+ # The individual's residential address.
2034
+ attr_accessor :address
2035
+ # The individual's date of birth.
2036
+ attr_accessor :date_of_birth
2037
+ # Documents that may be submitted to satisfy various informational requests.
2038
+ attr_accessor :documents
2039
+ # The individual's email address.
2040
+ attr_accessor :email
2041
+ # The individual's first name.
2042
+ attr_accessor :given_name
2043
+ # The identification numbers (e.g., SSN) associated with the individual.
2044
+ attr_accessor :id_numbers
2045
+ # The individual's gender (International regulations require either "male" or "female").
2046
+ attr_accessor :legal_gender
2047
+ # 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.
2048
+ attr_accessor :metadata
2049
+ # 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)).
2050
+ attr_accessor :nationalities
2051
+ # The individual's phone number.
2052
+ attr_accessor :phone
2053
+ # The individual's political exposure.
2054
+ attr_accessor :political_exposure
2055
+ # The relationship that this individual has with the account's identity.
2056
+ attr_accessor :relationship
2057
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2058
+ attr_accessor :script_addresses
2059
+ # The individuals primary name in non latin script.
2060
+ attr_accessor :script_names
2061
+ # The individual's last name.
2062
+ attr_accessor :surname
2063
+
2064
+ def initialize(
2065
+ additional_addresses: nil,
2066
+ additional_names: nil,
2067
+ address: nil,
2068
+ date_of_birth: nil,
2069
+ documents: nil,
2070
+ email: nil,
2071
+ given_name: nil,
2072
+ id_numbers: nil,
2073
+ legal_gender: nil,
2074
+ metadata: nil,
2075
+ nationalities: nil,
2076
+ phone: nil,
2077
+ political_exposure: nil,
2078
+ relationship: nil,
2079
+ script_addresses: nil,
2080
+ script_names: nil,
2081
+ surname: nil
2082
+ )
2083
+ @additional_addresses = additional_addresses
2084
+ @additional_names = additional_names
2085
+ @address = address
2086
+ @date_of_birth = date_of_birth
2087
+ @documents = documents
2088
+ @email = email
2089
+ @given_name = given_name
2090
+ @id_numbers = id_numbers
2091
+ @legal_gender = legal_gender
2092
+ @metadata = metadata
2093
+ @nationalities = nationalities
2094
+ @phone = phone
2095
+ @political_exposure = political_exposure
2096
+ @relationship = relationship
2097
+ @script_addresses = script_addresses
2098
+ @script_names = script_names
2099
+ @surname = surname
2100
+ end
2101
+
2102
+ def self.field_encodings
2103
+ @field_encodings = {
2104
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
2105
+ }
2106
+ end
2107
+ end
2108
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
2109
+ attr_accessor :attestations
2110
+ # Information about the company or business.
2111
+ attr_accessor :business_details
2112
+ # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
2113
+ attr_accessor :country
2114
+ # The entity type.
2115
+ attr_accessor :entity_type
2116
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
2117
+ attr_accessor :individual
2118
+
2119
+ def initialize(
2120
+ attestations: nil,
2121
+ business_details: nil,
2122
+ country: nil,
2123
+ entity_type: nil,
2124
+ individual: nil
2125
+ )
2126
+ @attestations = attestations
2127
+ @business_details = business_details
2128
+ @country = country
2129
+ @entity_type = entity_type
2130
+ @individual = individual
2131
+ end
2132
+
2133
+ def self.field_encodings
2134
+ @field_encodings = {
2135
+ individual: {
2136
+ kind: :object,
2137
+ fields: {
2138
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
2139
+ },
2140
+ },
2141
+ }
2142
+ end
2143
+ end
2144
+ # The account token generated by the account token api.
2145
+ attr_accessor :account_token
2146
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2147
+ attr_accessor :configuration
2148
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2149
+ attr_accessor :contact_email
2150
+ # The default contact phone for the Account.
2151
+ attr_accessor :contact_phone
2152
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2153
+ attr_accessor :dashboard
2154
+ # Default values to be used on Account Configurations.
2155
+ attr_accessor :defaults
2156
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2157
+ attr_accessor :display_name
2158
+ # Information about the company, individual, and business represented by the Account.
2159
+ attr_accessor :identity
2160
+ # Additional fields to include in the response.
2161
+ attr_accessor :include
2162
+ # 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.
2163
+ attr_accessor :metadata
2164
+
2165
+ def initialize(
2166
+ account_token: nil,
2167
+ configuration: nil,
2168
+ contact_email: nil,
2169
+ contact_phone: nil,
2170
+ dashboard: nil,
2171
+ defaults: nil,
2172
+ display_name: nil,
2173
+ identity: nil,
2174
+ include: nil,
2175
+ metadata: nil
2176
+ )
2177
+ @account_token = account_token
2178
+ @configuration = configuration
2179
+ @contact_email = contact_email
2180
+ @contact_phone = contact_phone
2181
+ @dashboard = dashboard
2182
+ @defaults = defaults
2183
+ @display_name = display_name
2184
+ @identity = identity
2185
+ @include = include
2186
+ @metadata = metadata
2187
+ end
2188
+
2189
+ def self.field_encodings
2190
+ @field_encodings = {
2191
+ identity: {
2192
+ kind: :object,
2193
+ fields: {
2194
+ individual: {
2195
+ kind: :object,
2196
+ fields: {
2197
+ relationship: { kind: :object, fields: { percent_ownership: :decimal_string } },
2198
+ },
2199
+ },
2200
+ },
2201
+ },
2202
+ }
2203
+ end
2204
+ end
2205
+ end
2206
+ end
2207
+ end