stripe 17.1.0 → 17.2.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -0
  3. data/lib/stripe/api_version.rb +1 -2
  4. data/lib/stripe/errors.rb +63 -0
  5. data/lib/stripe/event_types.rb +233 -0
  6. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  7. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  8. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  16. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  17. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  18. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  19. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  20. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  21. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  22. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  23. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  24. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  25. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  26. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  27. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  28. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  30. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  35. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  36. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  41. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  42. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  48. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  58. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
  60. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
  66. data/lib/stripe/object_types.rb +55 -0
  67. data/lib/stripe/params/account_create_params.rb +300 -1
  68. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  69. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  70. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  71. data/lib/stripe/params/account_session_create_params.rb +226 -1
  72. data/lib/stripe/params/account_update_params.rb +262 -0
  73. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  74. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
  75. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
  76. data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
  77. data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
  78. data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
  79. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  80. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  81. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  82. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  83. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  84. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  85. data/lib/stripe/params/charge_capture_params.rb +715 -0
  86. data/lib/stripe/params/charge_update_params.rb +715 -0
  87. data/lib/stripe/params/checkout/session_create_params.rb +193 -3
  88. data/lib/stripe/params/checkout/session_list_params.rb +4 -0
  89. data/lib/stripe/params/checkout/session_update_params.rb +288 -1
  90. data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
  91. data/lib/stripe/params/coupon_create_params.rb +17 -1
  92. data/lib/stripe/params/credit_note_list_params.rb +4 -0
  93. data/lib/stripe/params/customer_session_create_params.rb +36 -2
  94. data/lib/stripe/params/dispute_update_params.rb +10 -1
  95. data/lib/stripe/params/external_account_create_params.rb +134 -0
  96. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  97. data/lib/stripe/params/external_account_list_params.rb +25 -0
  98. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  99. data/lib/stripe/params/external_account_update_params.rb +91 -0
  100. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  101. data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
  102. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  103. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  104. data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
  105. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  106. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  107. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
  109. data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
  110. data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
  111. data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
  112. data/lib/stripe/params/invoice_create_params.rb +112 -2
  113. data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
  114. data/lib/stripe/params/invoice_item_create_params.rb +37 -1
  115. data/lib/stripe/params/invoice_item_list_params.rb +4 -0
  116. data/lib/stripe/params/invoice_item_update_params.rb +33 -1
  117. data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
  118. data/lib/stripe/params/invoice_list_params.rb +4 -0
  119. data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
  120. data/lib/stripe/params/invoice_update_params.rb +108 -2
  121. data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
  122. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  123. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  124. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  125. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  126. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  127. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  128. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  129. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  130. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  131. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  132. data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
  133. data/lib/stripe/params/mandate_list_params.rb +39 -0
  134. data/lib/stripe/params/margin_create_params.rb +25 -0
  135. data/lib/stripe/params/margin_list_params.rb +25 -0
  136. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  137. data/lib/stripe/params/margin_update_params.rb +22 -0
  138. data/lib/stripe/params/order_cancel_params.rb +13 -0
  139. data/lib/stripe/params/order_create_params.rb +1124 -0
  140. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  141. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  142. data/lib/stripe/params/order_list_params.rb +25 -0
  143. data/lib/stripe/params/order_reopen_params.rb +13 -0
  144. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  145. data/lib/stripe/params/order_submit_params.rb +16 -0
  146. data/lib/stripe/params/order_update_params.rb +1128 -0
  147. data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
  148. data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
  149. data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
  150. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  151. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
  152. data/lib/stripe/params/payment_intent_list_params.rb +4 -0
  153. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  154. data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
  155. data/lib/stripe/params/payment_method_attach_params.rb +4 -1
  156. data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
  157. data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
  158. data/lib/stripe/params/payment_method_create_params.rb +97 -0
  159. data/lib/stripe/params/payment_method_update_params.rb +19 -0
  160. data/lib/stripe/params/price_update_params.rb +19 -0
  161. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  162. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  163. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  164. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  166. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  167. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  168. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  169. data/lib/stripe/params/promotion_code_create_params.rb +4 -0
  170. data/lib/stripe/params/promotion_code_list_params.rb +4 -0
  171. data/lib/stripe/params/quote_create_params.rb +805 -3
  172. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  173. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  174. data/lib/stripe/params/quote_list_params.rb +8 -0
  175. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  176. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  177. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  178. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  179. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  180. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  181. data/lib/stripe/params/quote_update_params.rb +813 -4
  182. data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
  183. data/lib/stripe/params/setup_intent_create_params.rb +231 -3
  184. data/lib/stripe/params/setup_intent_list_params.rb +4 -0
  185. data/lib/stripe/params/setup_intent_update_params.rb +231 -3
  186. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  187. data/lib/stripe/params/subscription_create_params.rb +259 -5
  188. data/lib/stripe/params/subscription_item_create_params.rb +46 -2
  189. data/lib/stripe/params/subscription_item_update_params.rb +29 -1
  190. data/lib/stripe/params/subscription_list_params.rb +4 -0
  191. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  192. data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
  193. data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
  194. data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
  195. data/lib/stripe/params/subscription_update_params.rb +238 -4
  196. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  197. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  198. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  199. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  200. data/lib/stripe/params/tax_id_create_params.rb +4 -1
  201. data/lib/stripe/params/tax_id_list_params.rb +4 -1
  202. data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
  203. data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
  204. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  205. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  206. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
  207. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
  208. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
  209. data/lib/stripe/params/transfer_create_params.rb +4 -0
  210. data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
  211. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
  212. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
  213. data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
  214. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
  215. data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
  216. data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
  217. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  218. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  219. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  220. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  221. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  222. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  223. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
  224. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  225. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  226. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  227. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  228. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  229. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  230. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  231. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  232. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  233. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  234. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  235. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  236. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  237. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  238. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  239. data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
  240. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  241. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  242. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  243. data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
  244. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
  245. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  246. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  247. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  248. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
  249. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  250. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  251. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  252. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  253. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  254. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  255. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  256. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  257. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  258. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  259. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  260. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  261. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  262. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  263. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  264. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  265. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  266. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  267. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  268. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  269. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  270. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  271. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  272. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
  273. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  274. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  275. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  276. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
  277. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  278. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
  279. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  280. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  281. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  282. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  283. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  284. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  285. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  286. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  287. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
  288. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  289. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  290. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  291. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  292. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  293. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  294. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  295. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  296. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  297. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  298. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  299. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  300. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  301. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  302. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  303. data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
  304. data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
  305. data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
  306. data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
  307. data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
  308. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
  309. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  310. data/lib/stripe/params.rb +164 -0
  311. data/lib/stripe/resources/account.rb +166 -1
  312. data/lib/stripe/resources/account_notice.rb +94 -0
  313. data/lib/stripe/resources/account_session.rb +81 -0
  314. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  315. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  316. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  317. data/lib/stripe/resources/billing/credit_grant.rb +2 -0
  318. data/lib/stripe/resources/billing_portal/session.rb +2 -0
  319. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  320. data/lib/stripe/resources/capital/financing_summary.rb +79 -0
  321. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  322. data/lib/stripe/resources/card.rb +2 -0
  323. data/lib/stripe/resources/cash_balance.rb +2 -0
  324. data/lib/stripe/resources/charge.rb +237 -1
  325. data/lib/stripe/resources/checkout/session.rb +154 -4
  326. data/lib/stripe/resources/confirmation_token.rb +155 -0
  327. data/lib/stripe/resources/coupon.rb +26 -1
  328. data/lib/stripe/resources/credit_note.rb +2 -0
  329. data/lib/stripe/resources/credit_note_line_item.rb +18 -0
  330. data/lib/stripe/resources/customer.rb +2 -0
  331. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  332. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  333. data/lib/stripe/resources/customer_session.rb +38 -0
  334. data/lib/stripe/resources/discount.rb +2 -0
  335. data/lib/stripe/resources/dispute.rb +22 -0
  336. data/lib/stripe/resources/event.rb +64 -1
  337. data/lib/stripe/resources/financial_connections/account.rb +27 -0
  338. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  339. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  340. data/lib/stripe/resources/financial_connections/session.rb +67 -1
  341. data/lib/stripe/resources/fx_quote.rb +147 -0
  342. data/lib/stripe/resources/identity/verification_session.rb +2 -0
  343. data/lib/stripe/resources/invoice.rb +152 -1
  344. data/lib/stripe/resources/invoice_item.rb +4 -0
  345. data/lib/stripe/resources/invoice_line_item.rb +40 -0
  346. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  347. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  348. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  349. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  350. data/lib/stripe/resources/issuing/transaction.rb +2 -0
  351. data/lib/stripe/resources/line_item.rb +68 -1
  352. data/lib/stripe/resources/mandate.rb +71 -0
  353. data/lib/stripe/resources/margin.rb +64 -0
  354. data/lib/stripe/resources/order.rb +987 -0
  355. data/lib/stripe/resources/payment_attempt_record.rb +203 -1
  356. data/lib/stripe/resources/payment_intent.rb +789 -4
  357. data/lib/stripe/resources/payment_method.rb +157 -0
  358. data/lib/stripe/resources/payment_method_configuration.rb +204 -0
  359. data/lib/stripe/resources/payment_record.rb +203 -1
  360. data/lib/stripe/resources/price.rb +20 -0
  361. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  362. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  363. data/lib/stripe/resources/promotion_code.rb +2 -0
  364. data/lib/stripe/resources/quote.rb +571 -2
  365. data/lib/stripe/resources/quote_line.rb +521 -0
  366. data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
  367. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  368. data/lib/stripe/resources/refund.rb +18 -0
  369. data/lib/stripe/resources/setup_attempt.rb +63 -0
  370. data/lib/stripe/resources/setup_intent.rb +132 -1
  371. data/lib/stripe/resources/source.rb +38 -0
  372. data/lib/stripe/resources/subscription.rb +232 -0
  373. data/lib/stripe/resources/subscription_item.rb +20 -1
  374. data/lib/stripe/resources/subscription_schedule.rb +198 -3
  375. data/lib/stripe/resources/tax/association.rb +86 -0
  376. data/lib/stripe/resources/tax/form.rb +264 -0
  377. data/lib/stripe/resources/tax_id.rb +4 -0
  378. data/lib/stripe/resources/terminal/configuration.rb +16 -0
  379. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  380. data/lib/stripe/resources/terminal/reader.rb +8 -0
  381. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  382. data/lib/stripe/resources/transfer.rb +2 -0
  383. data/lib/stripe/resources/treasury/financial_account.rb +2 -0
  384. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  385. data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
  386. data/lib/stripe/resources/treasury/received_credit.rb +30 -0
  387. data/lib/stripe/resources/treasury/received_debit.rb +32 -0
  388. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  389. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  390. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  391. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  392. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  393. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  394. data/lib/stripe/resources/v2/core/account.rb +3906 -0
  395. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  396. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  397. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  398. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
  399. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  400. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
  401. data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
  402. data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
  403. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  404. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
  405. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
  406. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
  407. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  408. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
  409. data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
  410. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  411. data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
  412. data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
  413. data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
  414. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
  415. data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
  416. data/lib/stripe/resources.rb +112 -0
  417. data/lib/stripe/services/account_notice_service.rb +39 -0
  418. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  419. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  420. data/lib/stripe/services/billing_service.rb +2 -1
  421. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  422. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  423. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  424. data/lib/stripe/services/capital_service.rb +15 -0
  425. data/lib/stripe/services/external_account_service.rb +68 -0
  426. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  427. data/lib/stripe/services/financial_connections/account_service.rb +3 -1
  428. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  429. data/lib/stripe/services/financial_connections_service.rb +2 -1
  430. data/lib/stripe/services/fx_quote_service.rb +27 -0
  431. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  432. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  433. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  434. data/lib/stripe/services/issuing_service.rb +5 -1
  435. data/lib/stripe/services/mandate_service.rb +5 -0
  436. data/lib/stripe/services/margin_service.rb +50 -0
  437. data/lib/stripe/services/order_line_item_service.rb +17 -0
  438. data/lib/stripe/services/order_service.rb +78 -0
  439. data/lib/stripe/services/payment_intent_service.rb +37 -0
  440. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  441. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  442. data/lib/stripe/services/privacy_service.rb +13 -0
  443. data/lib/stripe/services/quote_line_service.rb +17 -0
  444. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  445. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  446. data/lib/stripe/services/quote_service.rb +49 -1
  447. data/lib/stripe/services/subscription_schedule_service.rb +11 -0
  448. data/lib/stripe/services/subscription_service.rb +11 -0
  449. data/lib/stripe/services/tax/association_service.rb +19 -0
  450. data/lib/stripe/services/tax/form_service.rb +37 -0
  451. data/lib/stripe/services/tax_service.rb +3 -1
  452. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  453. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  454. data/lib/stripe/services/terminal_service.rb +3 -1
  455. data/lib/stripe/services/v1_services.rb +8 -1
  456. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  457. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  458. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  459. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  460. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  461. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  462. data/lib/stripe/services/v2/billing_service.rb +5 -1
  463. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  464. data/lib/stripe/services/v2/core/account_service.rb +76 -0
  465. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  466. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  467. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  468. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  469. data/lib/stripe/services/v2/core_service.rb +4 -1
  470. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  471. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  472. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  473. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  474. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  475. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  476. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
  477. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  478. data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
  479. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  480. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  481. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  482. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  483. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  484. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  485. data/lib/stripe/services/v2/payment_service.rb +15 -0
  486. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +65 -0
  487. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  488. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  489. data/lib/stripe/services/v2_services.rb +4 -1
  490. data/lib/stripe/services.rb +58 -0
  491. data/lib/stripe/stripe_configuration.rb +3 -1
  492. data/lib/stripe/stripe_object.rb +1 -1
  493. data/lib/stripe/util.rb +7 -1
  494. data/lib/stripe/version.rb +1 -1
  495. data/lib/stripe.rb +53 -0
  496. data/rbi/stripe.rbi +145086 -86712
  497. metadata +337 -3
@@ -0,0 +1,2294 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountUpdateParams < ::Stripe::RequestParams
8
+ class Configuration < ::Stripe::RequestParams
9
+ class Customer < ::Stripe::RequestParams
10
+ class AutomaticIndirectTax < ::Stripe::RequestParams
11
+ # 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
+ # The data source used to identify the customer's tax location - defaults to 'identity_address'. Will only be used for automatic tax calculation on the customer's Invoices and Subscriptions.
16
+ attr_accessor :location_source
17
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
18
+ attr_accessor :validate_location
19
+
20
+ def initialize(
21
+ exempt: nil,
22
+ ip_address: nil,
23
+ location_source: nil,
24
+ validate_location: nil
25
+ )
26
+ @exempt = exempt
27
+ @ip_address = ip_address
28
+ @location_source = location_source
29
+ @validate_location = validate_location
30
+ end
31
+ end
32
+
33
+ class Billing < ::Stripe::RequestParams
34
+ class Invoice < ::Stripe::RequestParams
35
+ class CustomField < ::Stripe::RequestParams
36
+ # The name of the custom field. This may be up to 40 characters.
37
+ attr_accessor :name
38
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
39
+ attr_accessor :value
40
+
41
+ def initialize(name: nil, value: nil)
42
+ @name = name
43
+ @value = value
44
+ end
45
+ end
46
+
47
+ class Rendering < ::Stripe::RequestParams
48
+ # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of exclude_tax or include_inclusive_tax. include_inclusive_tax will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. exclude_tax will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
49
+ attr_accessor :amount_tax_display
50
+ # ID of the invoice rendering template to use for future invoices.
51
+ attr_accessor :template
52
+
53
+ def initialize(amount_tax_display: nil, template: nil)
54
+ @amount_tax_display = amount_tax_display
55
+ @template = template
56
+ end
57
+ end
58
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
59
+ attr_accessor :custom_fields
60
+ # Default footer to be displayed on invoices for this customer.
61
+ attr_accessor :footer
62
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
63
+ attr_accessor :next_sequence
64
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
65
+ attr_accessor :prefix
66
+ # Default options for invoice PDF rendering for this customer.
67
+ attr_accessor :rendering
68
+
69
+ def initialize(
70
+ custom_fields: nil,
71
+ footer: nil,
72
+ next_sequence: nil,
73
+ prefix: nil,
74
+ rendering: nil
75
+ )
76
+ @custom_fields = custom_fields
77
+ @footer = footer
78
+ @next_sequence = next_sequence
79
+ @prefix = prefix
80
+ @rendering = rendering
81
+ end
82
+ end
83
+ # ID of a payment method that’s attached to the customer, to be used as the customer’s default payment method for invoices and subscriptions.
84
+ attr_accessor :default_payment_method
85
+ # Default settings used on invoices for this customer.
86
+ attr_accessor :invoice
87
+
88
+ def initialize(default_payment_method: nil, invoice: nil)
89
+ @default_payment_method = default_payment_method
90
+ @invoice = invoice
91
+ end
92
+ end
93
+
94
+ class Capabilities < ::Stripe::RequestParams
95
+ class AutomaticIndirectTax < ::Stripe::RequestParams
96
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
97
+ attr_accessor :requested
98
+
99
+ def initialize(requested: nil)
100
+ @requested = requested
101
+ end
102
+ end
103
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. Uses the `location_source` field.
104
+ attr_accessor :automatic_indirect_tax
105
+
106
+ def initialize(automatic_indirect_tax: nil)
107
+ @automatic_indirect_tax = automatic_indirect_tax
108
+ end
109
+ end
110
+
111
+ class Shipping < ::Stripe::RequestParams
112
+ class Address < ::Stripe::RequestParams
113
+ # City, district, suburb, town, or village.
114
+ attr_accessor :city
115
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
116
+ attr_accessor :country
117
+ # Address line 1 (e.g., street, PO Box, or company name).
118
+ attr_accessor :line1
119
+ # Address line 2 (e.g., apartment, suite, unit, or building).
120
+ attr_accessor :line2
121
+ # ZIP or postal code.
122
+ attr_accessor :postal_code
123
+ # State, county, province, or region.
124
+ attr_accessor :state
125
+
126
+ def initialize(
127
+ city: nil,
128
+ country: nil,
129
+ line1: nil,
130
+ line2: nil,
131
+ postal_code: nil,
132
+ state: nil
133
+ )
134
+ @city = city
135
+ @country = country
136
+ @line1 = line1
137
+ @line2 = line2
138
+ @postal_code = postal_code
139
+ @state = state
140
+ end
141
+ end
142
+ # Customer shipping address.
143
+ attr_accessor :address
144
+ # Customer name.
145
+ attr_accessor :name
146
+ # Customer phone (including extension).
147
+ attr_accessor :phone
148
+
149
+ def initialize(address: nil, name: nil, phone: nil)
150
+ @address = address
151
+ @name = name
152
+ @phone = phone
153
+ end
154
+ end
155
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
156
+ attr_accessor :applied
157
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
158
+ attr_accessor :automatic_indirect_tax
159
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
160
+ attr_accessor :billing
161
+ # Capabilities that have been requested on the Customer Configuration.
162
+ attr_accessor :capabilities
163
+ # The customer's shipping information. Appears on invoices emailed to this customer.
164
+ attr_accessor :shipping
165
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
166
+ attr_accessor :test_clock
167
+
168
+ def initialize(
169
+ applied: nil,
170
+ automatic_indirect_tax: nil,
171
+ billing: nil,
172
+ capabilities: nil,
173
+ shipping: nil,
174
+ test_clock: nil
175
+ )
176
+ @applied = applied
177
+ @automatic_indirect_tax = automatic_indirect_tax
178
+ @billing = billing
179
+ @capabilities = capabilities
180
+ @shipping = shipping
181
+ @test_clock = test_clock
182
+ end
183
+ end
184
+
185
+ class Merchant < ::Stripe::RequestParams
186
+ class BacsDebitPayments < ::Stripe::RequestParams
187
+ # Display name for Bacs debit payments.
188
+ attr_accessor :display_name
189
+
190
+ def initialize(display_name: nil)
191
+ @display_name = display_name
192
+ end
193
+ end
194
+
195
+ class Branding < ::Stripe::RequestParams
196
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
197
+ attr_accessor :icon
198
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
199
+ attr_accessor :logo
200
+ # A CSS hex color value representing the primary branding color for the merchant.
201
+ attr_accessor :primary_color
202
+ # A CSS hex color value representing the secondary branding color for the merchant.
203
+ attr_accessor :secondary_color
204
+
205
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
206
+ @icon = icon
207
+ @logo = logo
208
+ @primary_color = primary_color
209
+ @secondary_color = secondary_color
210
+ end
211
+ end
212
+
213
+ class Capabilities < ::Stripe::RequestParams
214
+ class AchDebitPayments < ::Stripe::RequestParams
215
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
216
+ attr_accessor :requested
217
+
218
+ def initialize(requested: nil)
219
+ @requested = requested
220
+ end
221
+ end
222
+
223
+ class AcssDebitPayments < ::Stripe::RequestParams
224
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
225
+ attr_accessor :requested
226
+
227
+ def initialize(requested: nil)
228
+ @requested = requested
229
+ end
230
+ end
231
+
232
+ class AffirmPayments < ::Stripe::RequestParams
233
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
234
+ attr_accessor :requested
235
+
236
+ def initialize(requested: nil)
237
+ @requested = requested
238
+ end
239
+ end
240
+
241
+ class AfterpayClearpayPayments < ::Stripe::RequestParams
242
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
243
+ attr_accessor :requested
244
+
245
+ def initialize(requested: nil)
246
+ @requested = requested
247
+ end
248
+ end
249
+
250
+ class AlmaPayments < ::Stripe::RequestParams
251
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
252
+ attr_accessor :requested
253
+
254
+ def initialize(requested: nil)
255
+ @requested = requested
256
+ end
257
+ end
258
+
259
+ class AmazonPayPayments < ::Stripe::RequestParams
260
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
261
+ attr_accessor :requested
262
+
263
+ def initialize(requested: nil)
264
+ @requested = requested
265
+ end
266
+ end
267
+
268
+ class AuBecsDebitPayments < ::Stripe::RequestParams
269
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
270
+ attr_accessor :requested
271
+
272
+ def initialize(requested: nil)
273
+ @requested = requested
274
+ end
275
+ end
276
+
277
+ class BacsDebitPayments < ::Stripe::RequestParams
278
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
279
+ attr_accessor :requested
280
+
281
+ def initialize(requested: nil)
282
+ @requested = requested
283
+ end
284
+ end
285
+
286
+ class BancontactPayments < ::Stripe::RequestParams
287
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
288
+ attr_accessor :requested
289
+
290
+ def initialize(requested: nil)
291
+ @requested = requested
292
+ end
293
+ end
294
+
295
+ class BlikPayments < ::Stripe::RequestParams
296
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
297
+ attr_accessor :requested
298
+
299
+ def initialize(requested: nil)
300
+ @requested = requested
301
+ end
302
+ end
303
+
304
+ class BoletoPayments < ::Stripe::RequestParams
305
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
306
+ attr_accessor :requested
307
+
308
+ def initialize(requested: nil)
309
+ @requested = requested
310
+ end
311
+ end
312
+
313
+ class CardPayments < ::Stripe::RequestParams
314
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
315
+ attr_accessor :requested
316
+
317
+ def initialize(requested: nil)
318
+ @requested = requested
319
+ end
320
+ end
321
+
322
+ class CartesBancairesPayments < ::Stripe::RequestParams
323
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
324
+ attr_accessor :requested
325
+
326
+ def initialize(requested: nil)
327
+ @requested = requested
328
+ end
329
+ end
330
+
331
+ class CashappPayments < ::Stripe::RequestParams
332
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
333
+ attr_accessor :requested
334
+
335
+ def initialize(requested: nil)
336
+ @requested = requested
337
+ end
338
+ end
339
+
340
+ class EpsPayments < ::Stripe::RequestParams
341
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
342
+ attr_accessor :requested
343
+
344
+ def initialize(requested: nil)
345
+ @requested = requested
346
+ end
347
+ end
348
+
349
+ class FpxPayments < ::Stripe::RequestParams
350
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
351
+ attr_accessor :requested
352
+
353
+ def initialize(requested: nil)
354
+ @requested = requested
355
+ end
356
+ end
357
+
358
+ class GbBankTransferPayments < ::Stripe::RequestParams
359
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
360
+ attr_accessor :requested
361
+
362
+ def initialize(requested: nil)
363
+ @requested = requested
364
+ end
365
+ end
366
+
367
+ class GrabpayPayments < ::Stripe::RequestParams
368
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
369
+ attr_accessor :requested
370
+
371
+ def initialize(requested: nil)
372
+ @requested = requested
373
+ end
374
+ end
375
+
376
+ class IdealPayments < ::Stripe::RequestParams
377
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
378
+ attr_accessor :requested
379
+
380
+ def initialize(requested: nil)
381
+ @requested = requested
382
+ end
383
+ end
384
+
385
+ class JcbPayments < ::Stripe::RequestParams
386
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
387
+ attr_accessor :requested
388
+
389
+ def initialize(requested: nil)
390
+ @requested = requested
391
+ end
392
+ end
393
+
394
+ class JpBankTransferPayments < ::Stripe::RequestParams
395
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
396
+ attr_accessor :requested
397
+
398
+ def initialize(requested: nil)
399
+ @requested = requested
400
+ end
401
+ end
402
+
403
+ class KakaoPayPayments < ::Stripe::RequestParams
404
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
405
+ attr_accessor :requested
406
+
407
+ def initialize(requested: nil)
408
+ @requested = requested
409
+ end
410
+ end
411
+
412
+ class KlarnaPayments < ::Stripe::RequestParams
413
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
414
+ attr_accessor :requested
415
+
416
+ def initialize(requested: nil)
417
+ @requested = requested
418
+ end
419
+ end
420
+
421
+ class KonbiniPayments < ::Stripe::RequestParams
422
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
423
+ attr_accessor :requested
424
+
425
+ def initialize(requested: nil)
426
+ @requested = requested
427
+ end
428
+ end
429
+
430
+ class KrCardPayments < ::Stripe::RequestParams
431
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
432
+ attr_accessor :requested
433
+
434
+ def initialize(requested: nil)
435
+ @requested = requested
436
+ end
437
+ end
438
+
439
+ class LinkPayments < ::Stripe::RequestParams
440
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
441
+ attr_accessor :requested
442
+
443
+ def initialize(requested: nil)
444
+ @requested = requested
445
+ end
446
+ end
447
+
448
+ class MobilepayPayments < ::Stripe::RequestParams
449
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
450
+ attr_accessor :requested
451
+
452
+ def initialize(requested: nil)
453
+ @requested = requested
454
+ end
455
+ end
456
+
457
+ class MultibancoPayments < ::Stripe::RequestParams
458
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
459
+ attr_accessor :requested
460
+
461
+ def initialize(requested: nil)
462
+ @requested = requested
463
+ end
464
+ end
465
+
466
+ class MxBankTransferPayments < ::Stripe::RequestParams
467
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
468
+ attr_accessor :requested
469
+
470
+ def initialize(requested: nil)
471
+ @requested = requested
472
+ end
473
+ end
474
+
475
+ class NaverPayPayments < ::Stripe::RequestParams
476
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
477
+ attr_accessor :requested
478
+
479
+ def initialize(requested: nil)
480
+ @requested = requested
481
+ end
482
+ end
483
+
484
+ class OxxoPayments < ::Stripe::RequestParams
485
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
486
+ attr_accessor :requested
487
+
488
+ def initialize(requested: nil)
489
+ @requested = requested
490
+ end
491
+ end
492
+
493
+ class P24Payments < ::Stripe::RequestParams
494
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
495
+ attr_accessor :requested
496
+
497
+ def initialize(requested: nil)
498
+ @requested = requested
499
+ end
500
+ end
501
+
502
+ class PayByBankPayments < ::Stripe::RequestParams
503
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
504
+ attr_accessor :requested
505
+
506
+ def initialize(requested: nil)
507
+ @requested = requested
508
+ end
509
+ end
510
+
511
+ class PaycoPayments < ::Stripe::RequestParams
512
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
513
+ attr_accessor :requested
514
+
515
+ def initialize(requested: nil)
516
+ @requested = requested
517
+ end
518
+ end
519
+
520
+ class PaynowPayments < ::Stripe::RequestParams
521
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
522
+ attr_accessor :requested
523
+
524
+ def initialize(requested: nil)
525
+ @requested = requested
526
+ end
527
+ end
528
+
529
+ class PromptpayPayments < ::Stripe::RequestParams
530
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
531
+ attr_accessor :requested
532
+
533
+ def initialize(requested: nil)
534
+ @requested = requested
535
+ end
536
+ end
537
+
538
+ class RevolutPayPayments < ::Stripe::RequestParams
539
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
540
+ attr_accessor :requested
541
+
542
+ def initialize(requested: nil)
543
+ @requested = requested
544
+ end
545
+ end
546
+
547
+ class SamsungPayPayments < ::Stripe::RequestParams
548
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
549
+ attr_accessor :requested
550
+
551
+ def initialize(requested: nil)
552
+ @requested = requested
553
+ end
554
+ end
555
+
556
+ class SepaBankTransferPayments < ::Stripe::RequestParams
557
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
558
+ attr_accessor :requested
559
+
560
+ def initialize(requested: nil)
561
+ @requested = requested
562
+ end
563
+ end
564
+
565
+ class SepaDebitPayments < ::Stripe::RequestParams
566
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
567
+ attr_accessor :requested
568
+
569
+ def initialize(requested: nil)
570
+ @requested = requested
571
+ end
572
+ end
573
+
574
+ class SwishPayments < ::Stripe::RequestParams
575
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
576
+ attr_accessor :requested
577
+
578
+ def initialize(requested: nil)
579
+ @requested = requested
580
+ end
581
+ end
582
+
583
+ class TwintPayments < ::Stripe::RequestParams
584
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
585
+ attr_accessor :requested
586
+
587
+ def initialize(requested: nil)
588
+ @requested = requested
589
+ end
590
+ end
591
+
592
+ class UsBankTransferPayments < ::Stripe::RequestParams
593
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
594
+ attr_accessor :requested
595
+
596
+ def initialize(requested: nil)
597
+ @requested = requested
598
+ end
599
+ end
600
+
601
+ class ZipPayments < ::Stripe::RequestParams
602
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
603
+ attr_accessor :requested
604
+
605
+ def initialize(requested: nil)
606
+ @requested = requested
607
+ end
608
+ end
609
+ # Allow the merchant to process ACH debit payments.
610
+ attr_accessor :ach_debit_payments
611
+ # Allow the merchant to process ACSS debit payments.
612
+ attr_accessor :acss_debit_payments
613
+ # Allow the merchant to process Affirm payments.
614
+ attr_accessor :affirm_payments
615
+ # Allow the merchant to process Afterpay/Clearpay payments.
616
+ attr_accessor :afterpay_clearpay_payments
617
+ # Allow the merchant to process Alma payments.
618
+ attr_accessor :alma_payments
619
+ # Allow the merchant to process Amazon Pay payments.
620
+ attr_accessor :amazon_pay_payments
621
+ # Allow the merchant to process Australian BECS Direct Debit payments.
622
+ attr_accessor :au_becs_debit_payments
623
+ # Allow the merchant to process BACS Direct Debit payments.
624
+ attr_accessor :bacs_debit_payments
625
+ # Allow the merchant to process Bancontact payments.
626
+ attr_accessor :bancontact_payments
627
+ # Allow the merchant to process BLIK payments.
628
+ attr_accessor :blik_payments
629
+ # Allow the merchant to process Boleto payments.
630
+ attr_accessor :boleto_payments
631
+ # Allow the merchant to collect card payments.
632
+ attr_accessor :card_payments
633
+ # Allow the merchant to process Cartes Bancaires payments.
634
+ attr_accessor :cartes_bancaires_payments
635
+ # Allow the merchant to process Cash App payments.
636
+ attr_accessor :cashapp_payments
637
+ # Allow the merchant to process EPS payments.
638
+ attr_accessor :eps_payments
639
+ # Allow the merchant to process FPX payments.
640
+ attr_accessor :fpx_payments
641
+ # Allow the merchant to process UK bank transfer payments.
642
+ attr_accessor :gb_bank_transfer_payments
643
+ # Allow the merchant to process GrabPay payments.
644
+ attr_accessor :grabpay_payments
645
+ # Allow the merchant to process iDEAL payments.
646
+ attr_accessor :ideal_payments
647
+ # Allow the merchant to process JCB card payments.
648
+ attr_accessor :jcb_payments
649
+ # Allow the merchant to process Japanese bank transfer payments.
650
+ attr_accessor :jp_bank_transfer_payments
651
+ # Allow the merchant to process Kakao Pay payments.
652
+ attr_accessor :kakao_pay_payments
653
+ # Allow the merchant to process Klarna payments.
654
+ attr_accessor :klarna_payments
655
+ # Allow the merchant to process Konbini convenience store payments.
656
+ attr_accessor :konbini_payments
657
+ # Allow the merchant to process Korean card payments.
658
+ attr_accessor :kr_card_payments
659
+ # Allow the merchant to process Link payments.
660
+ attr_accessor :link_payments
661
+ # Allow the merchant to process MobilePay payments.
662
+ attr_accessor :mobilepay_payments
663
+ # Allow the merchant to process Multibanco payments.
664
+ attr_accessor :multibanco_payments
665
+ # Allow the merchant to process Mexican bank transfer payments.
666
+ attr_accessor :mx_bank_transfer_payments
667
+ # Allow the merchant to process Naver Pay payments.
668
+ attr_accessor :naver_pay_payments
669
+ # Allow the merchant to process OXXO payments.
670
+ attr_accessor :oxxo_payments
671
+ # Allow the merchant to process Przelewy24 (P24) payments.
672
+ attr_accessor :p24_payments
673
+ # Allow the merchant to process Pay by Bank payments.
674
+ attr_accessor :pay_by_bank_payments
675
+ # Allow the merchant to process PAYCO payments.
676
+ attr_accessor :payco_payments
677
+ # Allow the merchant to process PayNow payments.
678
+ attr_accessor :paynow_payments
679
+ # Allow the merchant to process PromptPay payments.
680
+ attr_accessor :promptpay_payments
681
+ # Allow the merchant to process Revolut Pay payments.
682
+ attr_accessor :revolut_pay_payments
683
+ # Allow the merchant to process Samsung Pay payments.
684
+ attr_accessor :samsung_pay_payments
685
+ # Allow the merchant to process SEPA bank transfer payments.
686
+ attr_accessor :sepa_bank_transfer_payments
687
+ # Allow the merchant to process SEPA Direct Debit payments.
688
+ attr_accessor :sepa_debit_payments
689
+ # Allow the merchant to process Swish payments.
690
+ attr_accessor :swish_payments
691
+ # Allow the merchant to process TWINT payments.
692
+ attr_accessor :twint_payments
693
+ # Allow the merchant to process US bank transfer payments.
694
+ attr_accessor :us_bank_transfer_payments
695
+ # Allow the merchant to process Zip payments.
696
+ attr_accessor :zip_payments
697
+
698
+ def initialize(
699
+ ach_debit_payments: nil,
700
+ acss_debit_payments: nil,
701
+ affirm_payments: nil,
702
+ afterpay_clearpay_payments: nil,
703
+ alma_payments: nil,
704
+ amazon_pay_payments: nil,
705
+ au_becs_debit_payments: nil,
706
+ bacs_debit_payments: nil,
707
+ bancontact_payments: nil,
708
+ blik_payments: nil,
709
+ boleto_payments: nil,
710
+ card_payments: nil,
711
+ cartes_bancaires_payments: nil,
712
+ cashapp_payments: nil,
713
+ eps_payments: nil,
714
+ fpx_payments: nil,
715
+ gb_bank_transfer_payments: nil,
716
+ grabpay_payments: nil,
717
+ ideal_payments: nil,
718
+ jcb_payments: nil,
719
+ jp_bank_transfer_payments: nil,
720
+ kakao_pay_payments: nil,
721
+ klarna_payments: nil,
722
+ konbini_payments: nil,
723
+ kr_card_payments: nil,
724
+ link_payments: nil,
725
+ mobilepay_payments: nil,
726
+ multibanco_payments: nil,
727
+ mx_bank_transfer_payments: nil,
728
+ naver_pay_payments: nil,
729
+ oxxo_payments: nil,
730
+ p24_payments: nil,
731
+ pay_by_bank_payments: nil,
732
+ payco_payments: nil,
733
+ paynow_payments: nil,
734
+ promptpay_payments: nil,
735
+ revolut_pay_payments: nil,
736
+ samsung_pay_payments: nil,
737
+ sepa_bank_transfer_payments: nil,
738
+ sepa_debit_payments: nil,
739
+ swish_payments: nil,
740
+ twint_payments: nil,
741
+ us_bank_transfer_payments: nil,
742
+ zip_payments: nil
743
+ )
744
+ @ach_debit_payments = ach_debit_payments
745
+ @acss_debit_payments = acss_debit_payments
746
+ @affirm_payments = affirm_payments
747
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
748
+ @alma_payments = alma_payments
749
+ @amazon_pay_payments = amazon_pay_payments
750
+ @au_becs_debit_payments = au_becs_debit_payments
751
+ @bacs_debit_payments = bacs_debit_payments
752
+ @bancontact_payments = bancontact_payments
753
+ @blik_payments = blik_payments
754
+ @boleto_payments = boleto_payments
755
+ @card_payments = card_payments
756
+ @cartes_bancaires_payments = cartes_bancaires_payments
757
+ @cashapp_payments = cashapp_payments
758
+ @eps_payments = eps_payments
759
+ @fpx_payments = fpx_payments
760
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
761
+ @grabpay_payments = grabpay_payments
762
+ @ideal_payments = ideal_payments
763
+ @jcb_payments = jcb_payments
764
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
765
+ @kakao_pay_payments = kakao_pay_payments
766
+ @klarna_payments = klarna_payments
767
+ @konbini_payments = konbini_payments
768
+ @kr_card_payments = kr_card_payments
769
+ @link_payments = link_payments
770
+ @mobilepay_payments = mobilepay_payments
771
+ @multibanco_payments = multibanco_payments
772
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
773
+ @naver_pay_payments = naver_pay_payments
774
+ @oxxo_payments = oxxo_payments
775
+ @p24_payments = p24_payments
776
+ @pay_by_bank_payments = pay_by_bank_payments
777
+ @payco_payments = payco_payments
778
+ @paynow_payments = paynow_payments
779
+ @promptpay_payments = promptpay_payments
780
+ @revolut_pay_payments = revolut_pay_payments
781
+ @samsung_pay_payments = samsung_pay_payments
782
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
783
+ @sepa_debit_payments = sepa_debit_payments
784
+ @swish_payments = swish_payments
785
+ @twint_payments = twint_payments
786
+ @us_bank_transfer_payments = us_bank_transfer_payments
787
+ @zip_payments = zip_payments
788
+ end
789
+ end
790
+
791
+ class CardPayments < ::Stripe::RequestParams
792
+ class DeclineOn < ::Stripe::RequestParams
793
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
794
+ attr_accessor :avs_failure
795
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
796
+ attr_accessor :cvc_failure
797
+
798
+ def initialize(avs_failure: nil, cvc_failure: nil)
799
+ @avs_failure = avs_failure
800
+ @cvc_failure = cvc_failure
801
+ end
802
+ end
803
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
804
+ attr_accessor :decline_on
805
+
806
+ def initialize(decline_on: nil)
807
+ @decline_on = decline_on
808
+ end
809
+ end
810
+
811
+ class StatementDescriptor < ::Stripe::RequestParams
812
+ # 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.
813
+ attr_accessor :descriptor
814
+ # 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.
815
+ attr_accessor :prefix
816
+
817
+ def initialize(descriptor: nil, prefix: nil)
818
+ @descriptor = descriptor
819
+ @prefix = prefix
820
+ end
821
+ end
822
+
823
+ class Support < ::Stripe::RequestParams
824
+ class Address < ::Stripe::RequestParams
825
+ # City, district, suburb, town, or village.
826
+ attr_accessor :city
827
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
828
+ attr_accessor :country
829
+ # Address line 1 (e.g., street, PO Box, or company name).
830
+ attr_accessor :line1
831
+ # Address line 2 (e.g., apartment, suite, unit, or building).
832
+ attr_accessor :line2
833
+ # ZIP or postal code.
834
+ attr_accessor :postal_code
835
+ # State, county, province, or region.
836
+ attr_accessor :state
837
+ # Town or cho-me.
838
+ attr_accessor :town
839
+
840
+ def initialize(
841
+ city: nil,
842
+ country: nil,
843
+ line1: nil,
844
+ line2: nil,
845
+ postal_code: nil,
846
+ state: nil,
847
+ town: nil
848
+ )
849
+ @city = city
850
+ @country = country
851
+ @line1 = line1
852
+ @line2 = line2
853
+ @postal_code = postal_code
854
+ @state = state
855
+ @town = town
856
+ end
857
+ end
858
+ # A publicly available mailing address for sending support issues to.
859
+ attr_accessor :address
860
+ # A publicly available email address for sending support issues to.
861
+ attr_accessor :email
862
+ # A publicly available phone number to call with support issues.
863
+ attr_accessor :phone
864
+ # A publicly available website for handling support issues.
865
+ attr_accessor :url
866
+
867
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
868
+ @address = address
869
+ @email = email
870
+ @phone = phone
871
+ @url = url
872
+ end
873
+ end
874
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
875
+ attr_accessor :applied
876
+ # Settings used for Bacs debit payments.
877
+ attr_accessor :bacs_debit_payments
878
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
879
+ attr_accessor :branding
880
+ # Capabilities to request on the Merchant Configuration.
881
+ attr_accessor :capabilities
882
+ # Card payments settings.
883
+ attr_accessor :card_payments
884
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
885
+ attr_accessor :mcc
886
+ # Statement descriptor.
887
+ attr_accessor :statement_descriptor
888
+ # Publicly available contact information for sending support issues to.
889
+ attr_accessor :support
890
+
891
+ def initialize(
892
+ applied: nil,
893
+ bacs_debit_payments: nil,
894
+ branding: nil,
895
+ capabilities: nil,
896
+ card_payments: nil,
897
+ mcc: nil,
898
+ statement_descriptor: nil,
899
+ support: nil
900
+ )
901
+ @applied = applied
902
+ @bacs_debit_payments = bacs_debit_payments
903
+ @branding = branding
904
+ @capabilities = capabilities
905
+ @card_payments = card_payments
906
+ @mcc = mcc
907
+ @statement_descriptor = statement_descriptor
908
+ @support = support
909
+ end
910
+ end
911
+
912
+ class Recipient < ::Stripe::RequestParams
913
+ class Capabilities < ::Stripe::RequestParams
914
+ class BankAccounts < ::Stripe::RequestParams
915
+ class Local < ::Stripe::RequestParams
916
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
917
+ attr_accessor :requested
918
+
919
+ def initialize(requested: nil)
920
+ @requested = requested
921
+ end
922
+ end
923
+
924
+ class Wire < ::Stripe::RequestParams
925
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
926
+ attr_accessor :requested
927
+
928
+ def initialize(requested: nil)
929
+ @requested = requested
930
+ end
931
+ end
932
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
933
+ attr_accessor :local
934
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
935
+ attr_accessor :wire
936
+
937
+ def initialize(local: nil, wire: nil)
938
+ @local = local
939
+ @wire = wire
940
+ end
941
+ end
942
+
943
+ class Cards < ::Stripe::RequestParams
944
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
945
+ attr_accessor :requested
946
+
947
+ def initialize(requested: nil)
948
+ @requested = requested
949
+ end
950
+ end
951
+
952
+ class StripeBalance < ::Stripe::RequestParams
953
+ class StripeTransfers < ::Stripe::RequestParams
954
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
955
+ attr_accessor :requested
956
+
957
+ def initialize(requested: nil)
958
+ @requested = requested
959
+ end
960
+ end
961
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
962
+ attr_accessor :stripe_transfers
963
+
964
+ def initialize(stripe_transfers: nil)
965
+ @stripe_transfers = stripe_transfers
966
+ end
967
+ end
968
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
969
+ attr_accessor :bank_accounts
970
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
971
+ attr_accessor :cards
972
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
973
+ attr_accessor :stripe_balance
974
+
975
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
976
+ @bank_accounts = bank_accounts
977
+ @cards = cards
978
+ @stripe_balance = stripe_balance
979
+ end
980
+ end
981
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
982
+ attr_accessor :applied
983
+ # Capabilities to request on the Recipient Configuration.
984
+ attr_accessor :capabilities
985
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.corp.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
986
+ attr_accessor :default_outbound_destination
987
+
988
+ def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
989
+ @applied = applied
990
+ @capabilities = capabilities
991
+ @default_outbound_destination = default_outbound_destination
992
+ end
993
+ end
994
+
995
+ class Storer < ::Stripe::RequestParams
996
+ class Capabilities < ::Stripe::RequestParams
997
+ class FinancialAddresses < ::Stripe::RequestParams
998
+ class BankAccounts < ::Stripe::RequestParams
999
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1000
+ attr_accessor :requested
1001
+
1002
+ def initialize(requested: nil)
1003
+ @requested = requested
1004
+ end
1005
+ end
1006
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1007
+ attr_accessor :bank_accounts
1008
+
1009
+ def initialize(bank_accounts: nil)
1010
+ @bank_accounts = bank_accounts
1011
+ end
1012
+ end
1013
+
1014
+ class HoldsCurrencies < ::Stripe::RequestParams
1015
+ class Gbp < ::Stripe::RequestParams
1016
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1017
+ attr_accessor :requested
1018
+
1019
+ def initialize(requested: nil)
1020
+ @requested = requested
1021
+ end
1022
+ end
1023
+
1024
+ class Usd < ::Stripe::RequestParams
1025
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1026
+ attr_accessor :requested
1027
+
1028
+ def initialize(requested: nil)
1029
+ @requested = requested
1030
+ end
1031
+ end
1032
+ # Can hold storage-type funds on Stripe in GBP.
1033
+ attr_accessor :gbp
1034
+ # Can hold storage-type funds on Stripe in USD.
1035
+ attr_accessor :usd
1036
+
1037
+ def initialize(gbp: nil, usd: nil)
1038
+ @gbp = gbp
1039
+ @usd = usd
1040
+ end
1041
+ end
1042
+
1043
+ class InboundTransfers < ::Stripe::RequestParams
1044
+ class BankAccounts < ::Stripe::RequestParams
1045
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1046
+ attr_accessor :requested
1047
+
1048
+ def initialize(requested: nil)
1049
+ @requested = requested
1050
+ end
1051
+ end
1052
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1053
+ attr_accessor :bank_accounts
1054
+
1055
+ def initialize(bank_accounts: nil)
1056
+ @bank_accounts = bank_accounts
1057
+ end
1058
+ end
1059
+
1060
+ class OutboundPayments < ::Stripe::RequestParams
1061
+ class BankAccounts < ::Stripe::RequestParams
1062
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1063
+ attr_accessor :requested
1064
+
1065
+ def initialize(requested: nil)
1066
+ @requested = requested
1067
+ end
1068
+ end
1069
+
1070
+ class Cards < ::Stripe::RequestParams
1071
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1072
+ attr_accessor :requested
1073
+
1074
+ def initialize(requested: nil)
1075
+ @requested = requested
1076
+ end
1077
+ end
1078
+
1079
+ class FinancialAccounts < ::Stripe::RequestParams
1080
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1081
+ attr_accessor :requested
1082
+
1083
+ def initialize(requested: nil)
1084
+ @requested = requested
1085
+ end
1086
+ end
1087
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1088
+ attr_accessor :bank_accounts
1089
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1090
+ attr_accessor :cards
1091
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1092
+ attr_accessor :financial_accounts
1093
+
1094
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1095
+ @bank_accounts = bank_accounts
1096
+ @cards = cards
1097
+ @financial_accounts = financial_accounts
1098
+ end
1099
+ end
1100
+
1101
+ class OutboundTransfers < ::Stripe::RequestParams
1102
+ class BankAccounts < ::Stripe::RequestParams
1103
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1104
+ attr_accessor :requested
1105
+
1106
+ def initialize(requested: nil)
1107
+ @requested = requested
1108
+ end
1109
+ end
1110
+
1111
+ class FinancialAccounts < ::Stripe::RequestParams
1112
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1113
+ attr_accessor :requested
1114
+
1115
+ def initialize(requested: nil)
1116
+ @requested = requested
1117
+ end
1118
+ end
1119
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1120
+ attr_accessor :bank_accounts
1121
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1122
+ attr_accessor :financial_accounts
1123
+
1124
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1125
+ @bank_accounts = bank_accounts
1126
+ @financial_accounts = financial_accounts
1127
+ end
1128
+ end
1129
+ # Can provision a financial address to credit/debit a FinancialAccount.
1130
+ attr_accessor :financial_addresses
1131
+ # Can hold storage-type funds on Stripe.
1132
+ attr_accessor :holds_currencies
1133
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1134
+ attr_accessor :inbound_transfers
1135
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1136
+ attr_accessor :outbound_payments
1137
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1138
+ attr_accessor :outbound_transfers
1139
+
1140
+ def initialize(
1141
+ financial_addresses: nil,
1142
+ holds_currencies: nil,
1143
+ inbound_transfers: nil,
1144
+ outbound_payments: nil,
1145
+ outbound_transfers: nil
1146
+ )
1147
+ @financial_addresses = financial_addresses
1148
+ @holds_currencies = holds_currencies
1149
+ @inbound_transfers = inbound_transfers
1150
+ @outbound_payments = outbound_payments
1151
+ @outbound_transfers = outbound_transfers
1152
+ end
1153
+ end
1154
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1155
+ attr_accessor :applied
1156
+ # Capabilities to request on the Storer Configuration.
1157
+ attr_accessor :capabilities
1158
+
1159
+ def initialize(applied: nil, capabilities: nil)
1160
+ @applied = applied
1161
+ @capabilities = capabilities
1162
+ end
1163
+ end
1164
+ # The Customer Configuration allows the Account to be charged.
1165
+ attr_accessor :customer
1166
+ # The Merchant configuration allows the Account to act as a connected account and collect payments facilitated by a Connect platform. You can add this configuration to your connected accounts only if you’ve completed onboarding as a Connect platform.
1167
+ attr_accessor :merchant
1168
+ # The Recipient Configuration allows the Account to receive funds.
1169
+ attr_accessor :recipient
1170
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1171
+ attr_accessor :storer
1172
+
1173
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1174
+ @customer = customer
1175
+ @merchant = merchant
1176
+ @recipient = recipient
1177
+ @storer = storer
1178
+ end
1179
+ end
1180
+
1181
+ class Defaults < ::Stripe::RequestParams
1182
+ class Profile < ::Stripe::RequestParams
1183
+ # The business's publicly-available website.
1184
+ attr_accessor :business_url
1185
+ # The name which is used by the business.
1186
+ attr_accessor :doing_business_as
1187
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1188
+ attr_accessor :product_description
1189
+
1190
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1191
+ @business_url = business_url
1192
+ @doing_business_as = doing_business_as
1193
+ @product_description = product_description
1194
+ end
1195
+ end
1196
+
1197
+ class Responsibilities < ::Stripe::RequestParams
1198
+ # A value indicating the party responsible for collecting fees from this account.
1199
+ attr_accessor :fees_collector
1200
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1201
+ attr_accessor :losses_collector
1202
+
1203
+ def initialize(fees_collector: nil, losses_collector: nil)
1204
+ @fees_collector = fees_collector
1205
+ @losses_collector = losses_collector
1206
+ end
1207
+ end
1208
+ # 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).
1209
+ attr_accessor :currency
1210
+ # The Account's preferred locales (languages), ordered by preference.
1211
+ attr_accessor :locales
1212
+ # Account profile information.
1213
+ attr_accessor :profile
1214
+ # Default responsibilities held by either Stripe or the platform.
1215
+ attr_accessor :responsibilities
1216
+
1217
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1218
+ @currency = currency
1219
+ @locales = locales
1220
+ @profile = profile
1221
+ @responsibilities = responsibilities
1222
+ end
1223
+ end
1224
+
1225
+ class Identity < ::Stripe::RequestParams
1226
+ class Attestations < ::Stripe::RequestParams
1227
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1228
+ # 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.
1229
+ attr_accessor :date
1230
+ # The IP address from which the director attestation was made.
1231
+ attr_accessor :ip
1232
+ # The user agent of the browser from which the director attestation was made.
1233
+ attr_accessor :user_agent
1234
+
1235
+ def initialize(date: nil, ip: nil, user_agent: nil)
1236
+ @date = date
1237
+ @ip = ip
1238
+ @user_agent = user_agent
1239
+ end
1240
+ end
1241
+
1242
+ class OwnershipDeclaration < ::Stripe::RequestParams
1243
+ # 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.
1244
+ attr_accessor :date
1245
+ # The IP address from which the beneficial owner attestation was made.
1246
+ attr_accessor :ip
1247
+ # The user agent of the browser from which the beneficial owner attestation was made.
1248
+ attr_accessor :user_agent
1249
+
1250
+ def initialize(date: nil, ip: nil, user_agent: nil)
1251
+ @date = date
1252
+ @ip = ip
1253
+ @user_agent = user_agent
1254
+ end
1255
+ end
1256
+
1257
+ class PersonsProvided < ::Stripe::RequestParams
1258
+ # 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).
1259
+ attr_accessor :directors
1260
+ # 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).
1261
+ attr_accessor :executives
1262
+ # 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).
1263
+ attr_accessor :owners
1264
+ # Reason for why the company is exempt from providing ownership information.
1265
+ attr_accessor :ownership_exemption_reason
1266
+
1267
+ def initialize(
1268
+ directors: nil,
1269
+ executives: nil,
1270
+ owners: nil,
1271
+ ownership_exemption_reason: nil
1272
+ )
1273
+ @directors = directors
1274
+ @executives = executives
1275
+ @owners = owners
1276
+ @ownership_exemption_reason = ownership_exemption_reason
1277
+ end
1278
+ end
1279
+
1280
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1281
+ # 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.
1282
+ attr_accessor :date
1283
+ # The IP address from which the representative attestation was made.
1284
+ attr_accessor :ip
1285
+ # The user agent of the browser from which the representative attestation was made.
1286
+ attr_accessor :user_agent
1287
+
1288
+ def initialize(date: nil, ip: nil, user_agent: nil)
1289
+ @date = date
1290
+ @ip = ip
1291
+ @user_agent = user_agent
1292
+ end
1293
+ end
1294
+
1295
+ class TermsOfService < ::Stripe::RequestParams
1296
+ class Account < ::Stripe::RequestParams
1297
+ # 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.
1298
+ attr_accessor :date
1299
+ # The IP address from which the Account's representative accepted the terms of service.
1300
+ attr_accessor :ip
1301
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1302
+ attr_accessor :user_agent
1303
+
1304
+ def initialize(date: nil, ip: nil, user_agent: nil)
1305
+ @date = date
1306
+ @ip = ip
1307
+ @user_agent = user_agent
1308
+ end
1309
+ end
1310
+
1311
+ class CryptoStorer < ::Stripe::RequestParams
1312
+ # 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.
1313
+ attr_accessor :date
1314
+ # The IP address from which the Account's representative accepted the terms of service.
1315
+ attr_accessor :ip
1316
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1317
+ attr_accessor :user_agent
1318
+
1319
+ def initialize(date: nil, ip: nil, user_agent: nil)
1320
+ @date = date
1321
+ @ip = ip
1322
+ @user_agent = user_agent
1323
+ end
1324
+ end
1325
+
1326
+ class Storer < ::Stripe::RequestParams
1327
+ # 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.
1328
+ attr_accessor :date
1329
+ # The IP address from which the Account's representative accepted the terms of service.
1330
+ attr_accessor :ip
1331
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1332
+ attr_accessor :user_agent
1333
+
1334
+ def initialize(date: nil, ip: nil, user_agent: nil)
1335
+ @date = date
1336
+ @ip = ip
1337
+ @user_agent = user_agent
1338
+ end
1339
+ end
1340
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1341
+ attr_accessor :account
1342
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service.
1343
+ attr_accessor :crypto_storer
1344
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1345
+ attr_accessor :storer
1346
+
1347
+ def initialize(account: nil, crypto_storer: nil, storer: nil)
1348
+ @account = account
1349
+ @crypto_storer = crypto_storer
1350
+ @storer = storer
1351
+ end
1352
+ end
1353
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1354
+ attr_accessor :directorship_declaration
1355
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1356
+ attr_accessor :ownership_declaration
1357
+ # Attestation that all Persons with a specific Relationship value have been provided.
1358
+ attr_accessor :persons_provided
1359
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1360
+ attr_accessor :representative_declaration
1361
+ # Attestations of accepted terms of service agreements.
1362
+ attr_accessor :terms_of_service
1363
+
1364
+ def initialize(
1365
+ directorship_declaration: nil,
1366
+ ownership_declaration: nil,
1367
+ persons_provided: nil,
1368
+ representative_declaration: nil,
1369
+ terms_of_service: nil
1370
+ )
1371
+ @directorship_declaration = directorship_declaration
1372
+ @ownership_declaration = ownership_declaration
1373
+ @persons_provided = persons_provided
1374
+ @representative_declaration = representative_declaration
1375
+ @terms_of_service = terms_of_service
1376
+ end
1377
+ end
1378
+
1379
+ class BusinessDetails < ::Stripe::RequestParams
1380
+ class Address < ::Stripe::RequestParams
1381
+ # City, district, suburb, town, or village.
1382
+ attr_accessor :city
1383
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1384
+ attr_accessor :country
1385
+ # Address line 1 (e.g., street, PO Box, or company name).
1386
+ attr_accessor :line1
1387
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1388
+ attr_accessor :line2
1389
+ # ZIP or postal code.
1390
+ attr_accessor :postal_code
1391
+ # State, county, province, or region.
1392
+ attr_accessor :state
1393
+ # Town or cho-me.
1394
+ attr_accessor :town
1395
+
1396
+ def initialize(
1397
+ city: nil,
1398
+ country: nil,
1399
+ line1: nil,
1400
+ line2: nil,
1401
+ postal_code: nil,
1402
+ state: nil,
1403
+ town: nil
1404
+ )
1405
+ @city = city
1406
+ @country = country
1407
+ @line1 = line1
1408
+ @line2 = line2
1409
+ @postal_code = postal_code
1410
+ @state = state
1411
+ @town = town
1412
+ end
1413
+ end
1414
+
1415
+ class AnnualRevenue < ::Stripe::RequestParams
1416
+ # A non-negative integer representing the amount in the smallest currency unit.
1417
+ attr_accessor :amount
1418
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1419
+ attr_accessor :fiscal_year_end
1420
+
1421
+ def initialize(amount: nil, fiscal_year_end: nil)
1422
+ @amount = amount
1423
+ @fiscal_year_end = fiscal_year_end
1424
+ end
1425
+ end
1426
+
1427
+ class Documents < ::Stripe::RequestParams
1428
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1429
+ # 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`.
1430
+ attr_accessor :files
1431
+ # The format of the document. Currently supports `files` only.
1432
+ attr_accessor :type
1433
+
1434
+ def initialize(files: nil, type: nil)
1435
+ @files = files
1436
+ @type = type
1437
+ end
1438
+ end
1439
+
1440
+ class CompanyLicense < ::Stripe::RequestParams
1441
+ # 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`.
1442
+ attr_accessor :files
1443
+ # The format of the document. Currently supports `files` only.
1444
+ attr_accessor :type
1445
+
1446
+ def initialize(files: nil, type: nil)
1447
+ @files = files
1448
+ @type = type
1449
+ end
1450
+ end
1451
+
1452
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1453
+ # 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`.
1454
+ attr_accessor :files
1455
+ # The format of the document. Currently supports `files` only.
1456
+ attr_accessor :type
1457
+
1458
+ def initialize(files: nil, type: nil)
1459
+ @files = files
1460
+ @type = type
1461
+ end
1462
+ end
1463
+
1464
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1465
+ # 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`.
1466
+ attr_accessor :files
1467
+ # The format of the document. Currently supports `files` only.
1468
+ attr_accessor :type
1469
+
1470
+ def initialize(files: nil, type: nil)
1471
+ @files = files
1472
+ @type = type
1473
+ end
1474
+ end
1475
+
1476
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1477
+ # 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`.
1478
+ attr_accessor :files
1479
+ # The format of the document. Currently supports `files` only.
1480
+ attr_accessor :type
1481
+
1482
+ def initialize(files: nil, type: nil)
1483
+ @files = files
1484
+ @type = type
1485
+ end
1486
+ end
1487
+
1488
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1489
+ # 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`.
1490
+ attr_accessor :files
1491
+ # The format of the document. Currently supports `files` only.
1492
+ attr_accessor :type
1493
+
1494
+ def initialize(files: nil, type: nil)
1495
+ @files = files
1496
+ @type = type
1497
+ end
1498
+ end
1499
+
1500
+ class PrimaryVerification < ::Stripe::RequestParams
1501
+ class FrontBack < ::Stripe::RequestParams
1502
+ # 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.
1503
+ attr_accessor :back
1504
+ # 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.
1505
+ attr_accessor :front
1506
+
1507
+ def initialize(back: nil, front: nil)
1508
+ @back = back
1509
+ @front = front
1510
+ end
1511
+ end
1512
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1513
+ attr_accessor :front_back
1514
+ # The format of the verification document. Currently supports `front_back` only.
1515
+ attr_accessor :type
1516
+
1517
+ def initialize(front_back: nil, type: nil)
1518
+ @front_back = front_back
1519
+ @type = type
1520
+ end
1521
+ end
1522
+
1523
+ class ProofOfAddress < ::Stripe::RequestParams
1524
+ # 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`.
1525
+ attr_accessor :files
1526
+ # The format of the document. Currently supports `files` only.
1527
+ attr_accessor :type
1528
+
1529
+ def initialize(files: nil, type: nil)
1530
+ @files = files
1531
+ @type = type
1532
+ end
1533
+ end
1534
+
1535
+ class ProofOfRegistration < ::Stripe::RequestParams
1536
+ # 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`.
1537
+ attr_accessor :files
1538
+ # The format of the document. Currently supports `files` only.
1539
+ attr_accessor :type
1540
+
1541
+ def initialize(files: nil, type: nil)
1542
+ @files = files
1543
+ @type = type
1544
+ end
1545
+ end
1546
+
1547
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1548
+ # 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`.
1549
+ attr_accessor :files
1550
+ # The format of the document. Currently supports `files` only.
1551
+ attr_accessor :type
1552
+
1553
+ def initialize(files: nil, type: nil)
1554
+ @files = files
1555
+ @type = type
1556
+ end
1557
+ end
1558
+ # 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.
1559
+ attr_accessor :bank_account_ownership_verification
1560
+ # One or more documents that demonstrate proof of a company’s license to operate.
1561
+ attr_accessor :company_license
1562
+ # One or more documents showing the company’s Memorandum of Association.
1563
+ attr_accessor :company_memorandum_of_association
1564
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1565
+ attr_accessor :company_ministerial_decree
1566
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1567
+ attr_accessor :company_registration_verification
1568
+ # One or more documents that demonstrate proof of a company’s tax ID.
1569
+ attr_accessor :company_tax_id_verification
1570
+ # A document verifying the business.
1571
+ attr_accessor :primary_verification
1572
+ # One or more documents that demonstrate proof of address.
1573
+ attr_accessor :proof_of_address
1574
+ # One or more documents showing the company’s proof of registration with the national business registry.
1575
+ attr_accessor :proof_of_registration
1576
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1577
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1578
+
1579
+ def initialize(
1580
+ bank_account_ownership_verification: nil,
1581
+ company_license: nil,
1582
+ company_memorandum_of_association: nil,
1583
+ company_ministerial_decree: nil,
1584
+ company_registration_verification: nil,
1585
+ company_tax_id_verification: nil,
1586
+ primary_verification: nil,
1587
+ proof_of_address: nil,
1588
+ proof_of_registration: nil,
1589
+ proof_of_ultimate_beneficial_ownership: nil
1590
+ )
1591
+ @bank_account_ownership_verification = bank_account_ownership_verification
1592
+ @company_license = company_license
1593
+ @company_memorandum_of_association = company_memorandum_of_association
1594
+ @company_ministerial_decree = company_ministerial_decree
1595
+ @company_registration_verification = company_registration_verification
1596
+ @company_tax_id_verification = company_tax_id_verification
1597
+ @primary_verification = primary_verification
1598
+ @proof_of_address = proof_of_address
1599
+ @proof_of_registration = proof_of_registration
1600
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1601
+ end
1602
+ end
1603
+
1604
+ class IdNumber < ::Stripe::RequestParams
1605
+ # The registrar of the ID number (Only valid for DE ID number types).
1606
+ attr_accessor :registrar
1607
+ # Open Enum. The ID number type of a business entity.
1608
+ attr_accessor :type
1609
+ # The value of the ID number.
1610
+ attr_accessor :value
1611
+
1612
+ def initialize(registrar: nil, type: nil, value: nil)
1613
+ @registrar = registrar
1614
+ @type = type
1615
+ @value = value
1616
+ end
1617
+ end
1618
+
1619
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
1620
+ # A non-negative integer representing the amount in the smallest currency unit.
1621
+ attr_accessor :amount
1622
+
1623
+ def initialize(amount: nil)
1624
+ @amount = amount
1625
+ end
1626
+ end
1627
+
1628
+ class ScriptAddresses < ::Stripe::RequestParams
1629
+ class Kana < ::Stripe::RequestParams
1630
+ # City, district, suburb, town, or village.
1631
+ attr_accessor :city
1632
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1633
+ attr_accessor :country
1634
+ # Address line 1 (e.g., street, PO Box, or company name).
1635
+ attr_accessor :line1
1636
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1637
+ attr_accessor :line2
1638
+ # ZIP or postal code.
1639
+ attr_accessor :postal_code
1640
+ # State, county, province, or region.
1641
+ attr_accessor :state
1642
+ # Town or cho-me.
1643
+ attr_accessor :town
1644
+
1645
+ def initialize(
1646
+ city: nil,
1647
+ country: nil,
1648
+ line1: nil,
1649
+ line2: nil,
1650
+ postal_code: nil,
1651
+ state: nil,
1652
+ town: nil
1653
+ )
1654
+ @city = city
1655
+ @country = country
1656
+ @line1 = line1
1657
+ @line2 = line2
1658
+ @postal_code = postal_code
1659
+ @state = state
1660
+ @town = town
1661
+ end
1662
+ end
1663
+
1664
+ class Kanji < ::Stripe::RequestParams
1665
+ # City, district, suburb, town, or village.
1666
+ attr_accessor :city
1667
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1668
+ attr_accessor :country
1669
+ # Address line 1 (e.g., street, PO Box, or company name).
1670
+ attr_accessor :line1
1671
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1672
+ attr_accessor :line2
1673
+ # ZIP or postal code.
1674
+ attr_accessor :postal_code
1675
+ # State, county, province, or region.
1676
+ attr_accessor :state
1677
+ # Town or cho-me.
1678
+ attr_accessor :town
1679
+
1680
+ def initialize(
1681
+ city: nil,
1682
+ country: nil,
1683
+ line1: nil,
1684
+ line2: nil,
1685
+ postal_code: nil,
1686
+ state: nil,
1687
+ town: nil
1688
+ )
1689
+ @city = city
1690
+ @country = country
1691
+ @line1 = line1
1692
+ @line2 = line2
1693
+ @postal_code = postal_code
1694
+ @state = state
1695
+ @town = town
1696
+ end
1697
+ end
1698
+ # Kana Address.
1699
+ attr_accessor :kana
1700
+ # Kanji Address.
1701
+ attr_accessor :kanji
1702
+
1703
+ def initialize(kana: nil, kanji: nil)
1704
+ @kana = kana
1705
+ @kanji = kanji
1706
+ end
1707
+ end
1708
+
1709
+ class ScriptNames < ::Stripe::RequestParams
1710
+ class Kana < ::Stripe::RequestParams
1711
+ # Registered name of the business.
1712
+ attr_accessor :registered_name
1713
+
1714
+ def initialize(registered_name: nil)
1715
+ @registered_name = registered_name
1716
+ end
1717
+ end
1718
+
1719
+ class Kanji < ::Stripe::RequestParams
1720
+ # Registered name of the business.
1721
+ attr_accessor :registered_name
1722
+
1723
+ def initialize(registered_name: nil)
1724
+ @registered_name = registered_name
1725
+ end
1726
+ end
1727
+ # Kana name.
1728
+ attr_accessor :kana
1729
+ # Kanji name.
1730
+ attr_accessor :kanji
1731
+
1732
+ def initialize(kana: nil, kanji: nil)
1733
+ @kana = kana
1734
+ @kanji = kanji
1735
+ end
1736
+ end
1737
+ # The business registration address of the business entity.
1738
+ attr_accessor :address
1739
+ # The business gross annual revenue for its preceding fiscal year.
1740
+ attr_accessor :annual_revenue
1741
+ # A document verifying the business.
1742
+ attr_accessor :documents
1743
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1744
+ attr_accessor :estimated_worker_count
1745
+ # The ID numbers of a business entity.
1746
+ attr_accessor :id_numbers
1747
+ # An estimate of the monthly revenue of the business.
1748
+ attr_accessor :monthly_estimated_revenue
1749
+ # The phone number of the Business Entity.
1750
+ attr_accessor :phone
1751
+ # The business legal name.
1752
+ attr_accessor :registered_name
1753
+ # The business registration address of the business entity in non latin script.
1754
+ attr_accessor :script_addresses
1755
+ # The business legal name in non latin script.
1756
+ attr_accessor :script_names
1757
+ # The category identifying the legal structure of the business.
1758
+ attr_accessor :structure
1759
+
1760
+ def initialize(
1761
+ address: nil,
1762
+ annual_revenue: nil,
1763
+ documents: nil,
1764
+ estimated_worker_count: nil,
1765
+ id_numbers: nil,
1766
+ monthly_estimated_revenue: nil,
1767
+ phone: nil,
1768
+ registered_name: nil,
1769
+ script_addresses: nil,
1770
+ script_names: nil,
1771
+ structure: nil
1772
+ )
1773
+ @address = address
1774
+ @annual_revenue = annual_revenue
1775
+ @documents = documents
1776
+ @estimated_worker_count = estimated_worker_count
1777
+ @id_numbers = id_numbers
1778
+ @monthly_estimated_revenue = monthly_estimated_revenue
1779
+ @phone = phone
1780
+ @registered_name = registered_name
1781
+ @script_addresses = script_addresses
1782
+ @script_names = script_names
1783
+ @structure = structure
1784
+ end
1785
+ end
1786
+
1787
+ class Individual < ::Stripe::RequestParams
1788
+ class AdditionalAddress < ::Stripe::RequestParams
1789
+ # City, district, suburb, town, or village.
1790
+ attr_accessor :city
1791
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1792
+ attr_accessor :country
1793
+ # Address line 1 (e.g., street, PO Box, or company name).
1794
+ attr_accessor :line1
1795
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1796
+ attr_accessor :line2
1797
+ # ZIP or postal code.
1798
+ attr_accessor :postal_code
1799
+ # Purpose of additional address.
1800
+ attr_accessor :purpose
1801
+ # State, county, province, or region.
1802
+ attr_accessor :state
1803
+ # Town or cho-me.
1804
+ attr_accessor :town
1805
+
1806
+ def initialize(
1807
+ city: nil,
1808
+ country: nil,
1809
+ line1: nil,
1810
+ line2: nil,
1811
+ postal_code: nil,
1812
+ purpose: nil,
1813
+ state: nil,
1814
+ town: nil
1815
+ )
1816
+ @city = city
1817
+ @country = country
1818
+ @line1 = line1
1819
+ @line2 = line2
1820
+ @postal_code = postal_code
1821
+ @purpose = purpose
1822
+ @state = state
1823
+ @town = town
1824
+ end
1825
+ end
1826
+
1827
+ class AdditionalName < ::Stripe::RequestParams
1828
+ # The person's full name.
1829
+ attr_accessor :full_name
1830
+ # The person's first or given name.
1831
+ attr_accessor :given_name
1832
+ # The purpose or type of the additional name.
1833
+ attr_accessor :purpose
1834
+ # The person's last or family name.
1835
+ attr_accessor :surname
1836
+
1837
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1838
+ @full_name = full_name
1839
+ @given_name = given_name
1840
+ @purpose = purpose
1841
+ @surname = surname
1842
+ end
1843
+ end
1844
+
1845
+ class Address < ::Stripe::RequestParams
1846
+ # City, district, suburb, town, or village.
1847
+ attr_accessor :city
1848
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1849
+ attr_accessor :country
1850
+ # Address line 1 (e.g., street, PO Box, or company name).
1851
+ attr_accessor :line1
1852
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1853
+ attr_accessor :line2
1854
+ # ZIP or postal code.
1855
+ attr_accessor :postal_code
1856
+ # State, county, province, or region.
1857
+ attr_accessor :state
1858
+ # Town or cho-me.
1859
+ attr_accessor :town
1860
+
1861
+ def initialize(
1862
+ city: nil,
1863
+ country: nil,
1864
+ line1: nil,
1865
+ line2: nil,
1866
+ postal_code: nil,
1867
+ state: nil,
1868
+ town: nil
1869
+ )
1870
+ @city = city
1871
+ @country = country
1872
+ @line1 = line1
1873
+ @line2 = line2
1874
+ @postal_code = postal_code
1875
+ @state = state
1876
+ @town = town
1877
+ end
1878
+ end
1879
+
1880
+ class DateOfBirth < ::Stripe::RequestParams
1881
+ # The day of the birth.
1882
+ attr_accessor :day
1883
+ # The month of birth.
1884
+ attr_accessor :month
1885
+ # The year of birth.
1886
+ attr_accessor :year
1887
+
1888
+ def initialize(day: nil, month: nil, year: nil)
1889
+ @day = day
1890
+ @month = month
1891
+ @year = year
1892
+ end
1893
+ end
1894
+
1895
+ class Documents < ::Stripe::RequestParams
1896
+ class CompanyAuthorization < ::Stripe::RequestParams
1897
+ # 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`.
1898
+ attr_accessor :files
1899
+ # The format of the document. Currently supports `files` only.
1900
+ attr_accessor :type
1901
+
1902
+ def initialize(files: nil, type: nil)
1903
+ @files = files
1904
+ @type = type
1905
+ end
1906
+ end
1907
+
1908
+ class Passport < ::Stripe::RequestParams
1909
+ # 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`.
1910
+ attr_accessor :files
1911
+ # The format of the document. Currently supports `files` only.
1912
+ attr_accessor :type
1913
+
1914
+ def initialize(files: nil, type: nil)
1915
+ @files = files
1916
+ @type = type
1917
+ end
1918
+ end
1919
+
1920
+ class PrimaryVerification < ::Stripe::RequestParams
1921
+ class FrontBack < ::Stripe::RequestParams
1922
+ # 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.
1923
+ attr_accessor :back
1924
+ # 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.
1925
+ attr_accessor :front
1926
+
1927
+ def initialize(back: nil, front: nil)
1928
+ @back = back
1929
+ @front = front
1930
+ end
1931
+ end
1932
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1933
+ attr_accessor :front_back
1934
+ # The format of the verification document. Currently supports `front_back` only.
1935
+ attr_accessor :type
1936
+
1937
+ def initialize(front_back: nil, type: nil)
1938
+ @front_back = front_back
1939
+ @type = type
1940
+ end
1941
+ end
1942
+
1943
+ class SecondaryVerification < ::Stripe::RequestParams
1944
+ class FrontBack < ::Stripe::RequestParams
1945
+ # 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.
1946
+ attr_accessor :back
1947
+ # 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.
1948
+ attr_accessor :front
1949
+
1950
+ def initialize(back: nil, front: nil)
1951
+ @back = back
1952
+ @front = front
1953
+ end
1954
+ end
1955
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1956
+ attr_accessor :front_back
1957
+ # The format of the verification document. Currently supports `front_back` only.
1958
+ attr_accessor :type
1959
+
1960
+ def initialize(front_back: nil, type: nil)
1961
+ @front_back = front_back
1962
+ @type = type
1963
+ end
1964
+ end
1965
+
1966
+ class Visa < ::Stripe::RequestParams
1967
+ # 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`.
1968
+ attr_accessor :files
1969
+ # The format of the document. Currently supports `files` only.
1970
+ attr_accessor :type
1971
+
1972
+ def initialize(files: nil, type: nil)
1973
+ @files = files
1974
+ @type = type
1975
+ end
1976
+ end
1977
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1978
+ attr_accessor :company_authorization
1979
+ # One or more documents showing the person’s passport page with photo and personal data.
1980
+ attr_accessor :passport
1981
+ # An identifying document showing the person's name, either a passport or local ID card.
1982
+ attr_accessor :primary_verification
1983
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1984
+ attr_accessor :secondary_verification
1985
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1986
+ attr_accessor :visa
1987
+
1988
+ def initialize(
1989
+ company_authorization: nil,
1990
+ passport: nil,
1991
+ primary_verification: nil,
1992
+ secondary_verification: nil,
1993
+ visa: nil
1994
+ )
1995
+ @company_authorization = company_authorization
1996
+ @passport = passport
1997
+ @primary_verification = primary_verification
1998
+ @secondary_verification = secondary_verification
1999
+ @visa = visa
2000
+ end
2001
+ end
2002
+
2003
+ class IdNumber < ::Stripe::RequestParams
2004
+ # The ID number type of an individual.
2005
+ attr_accessor :type
2006
+ # The value of the ID number.
2007
+ attr_accessor :value
2008
+
2009
+ def initialize(type: nil, value: nil)
2010
+ @type = type
2011
+ @value = value
2012
+ end
2013
+ end
2014
+
2015
+ class Relationship < ::Stripe::RequestParams
2016
+ # 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.
2017
+ attr_accessor :director
2018
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
2019
+ attr_accessor :executive
2020
+ # Whether the person is an owner of the account’s identity.
2021
+ attr_accessor :owner
2022
+ # The percent owned by the person of the account's legal entity.
2023
+ attr_accessor :percent_ownership
2024
+ # The person's title (e.g., CEO, Support Engineer).
2025
+ attr_accessor :title
2026
+
2027
+ def initialize(
2028
+ director: nil,
2029
+ executive: nil,
2030
+ owner: nil,
2031
+ percent_ownership: nil,
2032
+ title: nil
2033
+ )
2034
+ @director = director
2035
+ @executive = executive
2036
+ @owner = owner
2037
+ @percent_ownership = percent_ownership
2038
+ @title = title
2039
+ end
2040
+ end
2041
+
2042
+ class ScriptAddresses < ::Stripe::RequestParams
2043
+ class Kana < ::Stripe::RequestParams
2044
+ # City, district, suburb, town, or village.
2045
+ attr_accessor :city
2046
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2047
+ attr_accessor :country
2048
+ # Address line 1 (e.g., street, PO Box, or company name).
2049
+ attr_accessor :line1
2050
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2051
+ attr_accessor :line2
2052
+ # ZIP or postal code.
2053
+ attr_accessor :postal_code
2054
+ # State, county, province, or region.
2055
+ attr_accessor :state
2056
+ # Town or cho-me.
2057
+ attr_accessor :town
2058
+
2059
+ def initialize(
2060
+ city: nil,
2061
+ country: nil,
2062
+ line1: nil,
2063
+ line2: nil,
2064
+ postal_code: nil,
2065
+ state: nil,
2066
+ town: nil
2067
+ )
2068
+ @city = city
2069
+ @country = country
2070
+ @line1 = line1
2071
+ @line2 = line2
2072
+ @postal_code = postal_code
2073
+ @state = state
2074
+ @town = town
2075
+ end
2076
+ end
2077
+
2078
+ class Kanji < ::Stripe::RequestParams
2079
+ # City, district, suburb, town, or village.
2080
+ attr_accessor :city
2081
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2082
+ attr_accessor :country
2083
+ # Address line 1 (e.g., street, PO Box, or company name).
2084
+ attr_accessor :line1
2085
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2086
+ attr_accessor :line2
2087
+ # ZIP or postal code.
2088
+ attr_accessor :postal_code
2089
+ # State, county, province, or region.
2090
+ attr_accessor :state
2091
+ # Town or cho-me.
2092
+ attr_accessor :town
2093
+
2094
+ def initialize(
2095
+ city: nil,
2096
+ country: nil,
2097
+ line1: nil,
2098
+ line2: nil,
2099
+ postal_code: nil,
2100
+ state: nil,
2101
+ town: nil
2102
+ )
2103
+ @city = city
2104
+ @country = country
2105
+ @line1 = line1
2106
+ @line2 = line2
2107
+ @postal_code = postal_code
2108
+ @state = state
2109
+ @town = town
2110
+ end
2111
+ end
2112
+ # Kana Address.
2113
+ attr_accessor :kana
2114
+ # Kanji Address.
2115
+ attr_accessor :kanji
2116
+
2117
+ def initialize(kana: nil, kanji: nil)
2118
+ @kana = kana
2119
+ @kanji = kanji
2120
+ end
2121
+ end
2122
+
2123
+ class ScriptNames < ::Stripe::RequestParams
2124
+ class Kana < ::Stripe::RequestParams
2125
+ # The person's first or given name.
2126
+ attr_accessor :given_name
2127
+ # The person's last or family name.
2128
+ attr_accessor :surname
2129
+
2130
+ def initialize(given_name: nil, surname: nil)
2131
+ @given_name = given_name
2132
+ @surname = surname
2133
+ end
2134
+ end
2135
+
2136
+ class Kanji < ::Stripe::RequestParams
2137
+ # The person's first or given name.
2138
+ attr_accessor :given_name
2139
+ # The person's last or family name.
2140
+ attr_accessor :surname
2141
+
2142
+ def initialize(given_name: nil, surname: nil)
2143
+ @given_name = given_name
2144
+ @surname = surname
2145
+ end
2146
+ end
2147
+ # Persons name in kana script.
2148
+ attr_accessor :kana
2149
+ # Persons name in kanji script.
2150
+ attr_accessor :kanji
2151
+
2152
+ def initialize(kana: nil, kanji: nil)
2153
+ @kana = kana
2154
+ @kanji = kanji
2155
+ end
2156
+ end
2157
+ # Additional addresses associated with the individual.
2158
+ attr_accessor :additional_addresses
2159
+ # Additional names (e.g. aliases) associated with the individual.
2160
+ attr_accessor :additional_names
2161
+ # The individual's residential address.
2162
+ attr_accessor :address
2163
+ # The individual's date of birth.
2164
+ attr_accessor :date_of_birth
2165
+ # Documents that may be submitted to satisfy various informational requests.
2166
+ attr_accessor :documents
2167
+ # The individual's email address.
2168
+ attr_accessor :email
2169
+ # The individual's first name.
2170
+ attr_accessor :given_name
2171
+ # The identification numbers (e.g., SSN) associated with the individual.
2172
+ attr_accessor :id_numbers
2173
+ # The individual's gender (International regulations require either "male" or "female").
2174
+ attr_accessor :legal_gender
2175
+ # 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.
2176
+ attr_accessor :metadata
2177
+ # 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)).
2178
+ attr_accessor :nationalities
2179
+ # The individual's phone number.
2180
+ attr_accessor :phone
2181
+ # The individual's political exposure.
2182
+ attr_accessor :political_exposure
2183
+ # The relationship that this individual has with the account's identity.
2184
+ attr_accessor :relationship
2185
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2186
+ attr_accessor :script_addresses
2187
+ # The individuals primary name in non latin script.
2188
+ attr_accessor :script_names
2189
+ # The individual's last name.
2190
+ attr_accessor :surname
2191
+
2192
+ def initialize(
2193
+ additional_addresses: nil,
2194
+ additional_names: nil,
2195
+ address: nil,
2196
+ date_of_birth: nil,
2197
+ documents: nil,
2198
+ email: nil,
2199
+ given_name: nil,
2200
+ id_numbers: nil,
2201
+ legal_gender: nil,
2202
+ metadata: nil,
2203
+ nationalities: nil,
2204
+ phone: nil,
2205
+ political_exposure: nil,
2206
+ relationship: nil,
2207
+ script_addresses: nil,
2208
+ script_names: nil,
2209
+ surname: nil
2210
+ )
2211
+ @additional_addresses = additional_addresses
2212
+ @additional_names = additional_names
2213
+ @address = address
2214
+ @date_of_birth = date_of_birth
2215
+ @documents = documents
2216
+ @email = email
2217
+ @given_name = given_name
2218
+ @id_numbers = id_numbers
2219
+ @legal_gender = legal_gender
2220
+ @metadata = metadata
2221
+ @nationalities = nationalities
2222
+ @phone = phone
2223
+ @political_exposure = political_exposure
2224
+ @relationship = relationship
2225
+ @script_addresses = script_addresses
2226
+ @script_names = script_names
2227
+ @surname = surname
2228
+ end
2229
+ end
2230
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
2231
+ attr_accessor :attestations
2232
+ # Information about the company or business.
2233
+ attr_accessor :business_details
2234
+ # 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.
2235
+ attr_accessor :country
2236
+ # The entity type.
2237
+ attr_accessor :entity_type
2238
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
2239
+ attr_accessor :individual
2240
+
2241
+ def initialize(
2242
+ attestations: nil,
2243
+ business_details: nil,
2244
+ country: nil,
2245
+ entity_type: nil,
2246
+ individual: nil
2247
+ )
2248
+ @attestations = attestations
2249
+ @business_details = business_details
2250
+ @country = country
2251
+ @entity_type = entity_type
2252
+ @individual = individual
2253
+ end
2254
+ end
2255
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2256
+ attr_accessor :configuration
2257
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2258
+ attr_accessor :contact_email
2259
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2260
+ attr_accessor :dashboard
2261
+ # Default values to be used on Account Configurations.
2262
+ attr_accessor :defaults
2263
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2264
+ attr_accessor :display_name
2265
+ # Information about the company, individual, and business represented by the Account.
2266
+ attr_accessor :identity
2267
+ # Additional fields to include in the response.
2268
+ attr_accessor :include
2269
+ # 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.
2270
+ attr_accessor :metadata
2271
+
2272
+ def initialize(
2273
+ configuration: nil,
2274
+ contact_email: nil,
2275
+ dashboard: nil,
2276
+ defaults: nil,
2277
+ display_name: nil,
2278
+ identity: nil,
2279
+ include: nil,
2280
+ metadata: nil
2281
+ )
2282
+ @configuration = configuration
2283
+ @contact_email = contact_email
2284
+ @dashboard = dashboard
2285
+ @defaults = defaults
2286
+ @display_name = display_name
2287
+ @identity = identity
2288
+ @include = include
2289
+ @metadata = metadata
2290
+ end
2291
+ end
2292
+ end
2293
+ end
2294
+ end