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