stripe 15.3.0 → 15.4.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 (589) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1594 -667
  4. data/README.md +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +28 -0
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/errors.rb +54 -0
  9. data/lib/stripe/event_types.rb +98 -0
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  21. data/lib/stripe/events/v2_core_account_link_completed_event.rb +13 -0
  22. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  23. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  24. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  25. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  32. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  50. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  53. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  54. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  55. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  58. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  59. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  60. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  61. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  62. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  66. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  67. data/lib/stripe/object_types.rb +50 -0
  68. data/lib/stripe/resources/account.rb +653 -1
  69. data/lib/stripe/resources/account_notice.rb +123 -0
  70. data/lib/stripe/resources/account_session.rb +256 -1
  71. data/lib/stripe/resources/balance_settings.rb +105 -0
  72. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  73. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  74. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  75. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  76. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  77. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  78. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  79. data/lib/stripe/resources/card.rb +2 -0
  80. data/lib/stripe/resources/cash_balance.rb +2 -0
  81. data/lib/stripe/resources/charge.rb +1538 -0
  82. data/lib/stripe/resources/checkout/session.rb +326 -2
  83. data/lib/stripe/resources/confirmation_token.rb +170 -0
  84. data/lib/stripe/resources/coupon.rb +30 -1
  85. data/lib/stripe/resources/credit_note.rb +6 -0
  86. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  87. data/lib/stripe/resources/customer.rb +2 -0
  88. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  89. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  90. data/lib/stripe/resources/customer_session.rb +6 -1
  91. data/lib/stripe/resources/discount.rb +2 -0
  92. data/lib/stripe/resources/dispute.rb +2 -0
  93. data/lib/stripe/resources/event.rb +31 -0
  94. data/lib/stripe/resources/financial_connections/account.rb +22 -1
  95. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  96. data/lib/stripe/resources/financial_connections/institution.rb +92 -0
  97. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  98. data/lib/stripe/resources/fx_quote.rb +184 -0
  99. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  100. data/lib/stripe/resources/invoice.rb +1063 -16
  101. data/lib/stripe/resources/invoice_item.rb +78 -2
  102. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  103. data/lib/stripe/resources/invoice_payment.rb +2 -53
  104. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  105. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  106. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  107. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  108. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  109. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  110. data/lib/stripe/resources/line_item.rb +37 -0
  111. data/lib/stripe/resources/mandate.rb +24 -0
  112. data/lib/stripe/resources/margin.rb +115 -0
  113. data/lib/stripe/resources/order.rb +2958 -0
  114. data/lib/stripe/resources/payment_attempt_record.rb +1099 -0
  115. data/lib/stripe/resources/payment_intent.rb +8540 -3584
  116. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
  117. data/lib/stripe/resources/payment_method.rb +192 -1
  118. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  119. data/lib/stripe/resources/payment_record.rb +1628 -0
  120. data/lib/stripe/resources/payout.rb +6 -0
  121. data/lib/stripe/resources/price.rb +30 -0
  122. data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
  123. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
  124. data/lib/stripe/resources/promotion_code.rb +10 -0
  125. data/lib/stripe/resources/quote.rb +2038 -7
  126. data/lib/stripe/resources/quote_line.rb +274 -0
  127. data/lib/stripe/resources/quote_preview_invoice.rb +663 -0
  128. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +371 -0
  129. data/lib/stripe/resources/refund.rb +9 -0
  130. data/lib/stripe/resources/setup_attempt.rb +21 -0
  131. data/lib/stripe/resources/setup_intent.rb +578 -9
  132. data/lib/stripe/resources/source.rb +29 -0
  133. data/lib/stripe/resources/subscription.rb +288 -9
  134. data/lib/stripe/resources/subscription_item.rb +84 -3
  135. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  136. data/lib/stripe/resources/tax/association.rb +66 -0
  137. data/lib/stripe/resources/tax/form.rb +211 -0
  138. data/lib/stripe/resources/tax_id.rb +12 -2
  139. data/lib/stripe/resources/terminal/reader.rb +8 -0
  140. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  141. data/lib/stripe/resources/transfer.rb +6 -0
  142. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  143. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  144. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  145. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  146. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  147. data/lib/stripe/resources/v2/core/account.rb +1755 -0
  148. data/lib/stripe/resources/v2/core/account_link.rb +56 -0
  149. data/lib/stripe/resources/v2/core/person.rb +276 -0
  150. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
  151. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
  152. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
  153. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
  154. data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
  155. data/lib/stripe/resources/v2/money_management/financial_account.rb +58 -0
  156. data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
  157. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
  158. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
  159. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
  160. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
  161. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
  162. data/lib/stripe/resources/v2/money_management/payout_method.rb +75 -0
  163. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
  164. data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
  165. data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
  166. data/lib/stripe/resources/v2/money_management/transaction.rb +78 -0
  167. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +68 -0
  168. data/lib/stripe/resources/v2/payments/off_session_payment.rb +72 -0
  169. data/lib/stripe/resources.rb +104 -0
  170. data/lib/stripe/services/account_notice_service.rb +101 -0
  171. data/lib/stripe/services/account_service.rb +562 -1
  172. data/lib/stripe/services/account_session_service.rb +226 -1
  173. data/lib/stripe/services/balance_settings_service.rb +96 -0
  174. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  175. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  176. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  177. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  178. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  179. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  180. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  181. data/lib/stripe/services/capital_service.rb +15 -0
  182. data/lib/stripe/services/charge_service.rb +1418 -0
  183. data/lib/stripe/services/checkout/session_service.rb +243 -2
  184. data/lib/stripe/services/coupon_service.rb +17 -1
  185. data/lib/stripe/services/credit_note_service.rb +4 -0
  186. data/lib/stripe/services/customer_session_service.rb +4 -1
  187. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  188. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  189. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  190. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  191. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  192. data/lib/stripe/services/financial_connections_service.rb +2 -1
  193. data/lib/stripe/services/fx_quote_service.rb +123 -0
  194. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  195. data/lib/stripe/services/invoice_item_service.rb +74 -2
  196. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  197. data/lib/stripe/services/invoice_service.rb +1014 -16
  198. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  199. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  200. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  201. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  202. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  203. data/lib/stripe/services/issuing_service.rb +5 -1
  204. data/lib/stripe/services/margin_service.rb +119 -0
  205. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  206. data/lib/stripe/services/order_service.rb +2388 -0
  207. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  208. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  209. data/lib/stripe/services/payment_intent_service.rb +4879 -391
  210. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  211. data/lib/stripe/services/payment_method_service.rb +120 -1
  212. data/lib/stripe/services/payment_record_service.rb +542 -0
  213. data/lib/stripe/services/payout_service.rb +4 -0
  214. data/lib/stripe/services/price_service.rb +19 -0
  215. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  216. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  217. data/lib/stripe/services/privacy_service.rb +13 -0
  218. data/lib/stripe/services/promotion_code_service.rb +8 -0
  219. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  220. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  221. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  222. data/lib/stripe/services/quote_service.rb +1723 -8
  223. data/lib/stripe/services/setup_intent_service.rb +538 -9
  224. data/lib/stripe/services/subscription_item_service.rb +75 -3
  225. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  226. data/lib/stripe/services/subscription_service.rb +249 -9
  227. data/lib/stripe/services/tax/association_service.rb +31 -0
  228. data/lib/stripe/services/tax/form_service.rb +100 -0
  229. data/lib/stripe/services/tax_id_service.rb +8 -2
  230. data/lib/stripe/services/tax_service.rb +3 -1
  231. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  232. data/lib/stripe/services/terminal_service.rb +2 -1
  233. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  234. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  235. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  236. data/lib/stripe/services/transfer_service.rb +4 -0
  237. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  238. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  239. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  240. data/lib/stripe/services/v1_services.rb +11 -2
  241. data/lib/stripe/services/v2/core/account_link_service.rb +76 -0
  242. data/lib/stripe/services/v2/core/account_service.rb +4170 -0
  243. data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
  244. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
  245. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  246. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  247. data/lib/stripe/services/v2/core_service.rb +4 -1
  248. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  249. data/lib/stripe/services/v2/money_management/financial_account_service.rb +43 -0
  250. data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
  251. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  252. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  253. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
  254. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  255. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  256. data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
  257. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  258. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  259. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  260. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  261. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  262. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  263. data/lib/stripe/services/v2/payment_service.rb +15 -0
  264. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +137 -0
  265. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  266. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +49 -0
  267. data/lib/stripe/services/v2_services.rb +4 -1
  268. data/lib/stripe/services.rb +53 -1
  269. data/lib/stripe/stripe_configuration.rb +3 -1
  270. data/lib/stripe/stripe_object.rb +1 -1
  271. data/lib/stripe/util.rb +7 -1
  272. data/lib/stripe/version.rb +1 -1
  273. data/lib/stripe.rb +53 -0
  274. data/rbi/stripe.rbi +193855 -0
  275. data/stripe.gemspec +4 -1
  276. metadata +161 -324
  277. data/lib/stripe/services/invoice_payment_service.rb +0 -83
  278. data/rbi/stripe/resources/account.rbi +0 -4995
  279. data/rbi/stripe/resources/account_link.rbi +0 -74
  280. data/rbi/stripe/resources/account_session.rbi +0 -1013
  281. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  282. data/rbi/stripe/resources/application.rbi +0 -20
  283. data/rbi/stripe/resources/application_fee.rbi +0 -118
  284. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  285. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  286. data/rbi/stripe/resources/balance.rbi +0 -235
  287. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  288. data/rbi/stripe/resources/bank_account.rbi +0 -127
  289. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  290. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  291. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  292. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  293. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  294. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  295. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  296. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  297. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  298. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -645
  299. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  300. data/rbi/stripe/resources/capability.rbi +0 -125
  301. data/rbi/stripe/resources/card.rbi +0 -125
  302. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  303. data/rbi/stripe/resources/charge.rbi +0 -2086
  304. data/rbi/stripe/resources/checkout/session.rbi +0 -4060
  305. data/rbi/stripe/resources/climate/order.rbi +0 -245
  306. data/rbi/stripe/resources/climate/product.rbi +0 -75
  307. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  308. data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
  309. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  310. data/rbi/stripe/resources/country_spec.rbi +0 -85
  311. data/rbi/stripe/resources/coupon.rbi +0 -250
  312. data/rbi/stripe/resources/credit_note.rbi +0 -752
  313. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  314. data/rbi/stripe/resources/customer.rbi +0 -1005
  315. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  316. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  317. data/rbi/stripe/resources/customer_session.rbi +0 -200
  318. data/rbi/stripe/resources/discount.rbi +0 -53
  319. data/rbi/stripe/resources/dispute.rbi +0 -761
  320. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  321. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  322. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  323. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  324. data/rbi/stripe/resources/event.rbi +0 -149
  325. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  326. data/rbi/stripe/resources/file.rbi +0 -143
  327. data/rbi/stripe/resources/file_link.rbi +0 -141
  328. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  329. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  330. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  331. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  332. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  333. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  334. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  335. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  336. data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
  337. data/rbi/stripe/resources/invoice.rbi +0 -3842
  338. data/rbi/stripe/resources/invoice_item.rbi +0 -470
  339. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  340. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  341. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  342. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  343. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  344. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  345. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  346. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  347. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  348. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  349. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  350. data/rbi/stripe/resources/line_item.rbi +0 -72
  351. data/rbi/stripe/resources/login_link.rbi +0 -19
  352. data/rbi/stripe/resources/mandate.rbi +0 -191
  353. data/rbi/stripe/resources/payment_intent.rbi +0 -9987
  354. data/rbi/stripe/resources/payment_link.rbi +0 -1801
  355. data/rbi/stripe/resources/payment_method.rbi +0 -1770
  356. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  357. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  358. data/rbi/stripe/resources/payout.rbi +0 -300
  359. data/rbi/stripe/resources/person.rbi +0 -401
  360. data/rbi/stripe/resources/plan.rbi +0 -371
  361. data/rbi/stripe/resources/price.rbi +0 -694
  362. data/rbi/stripe/resources/product.rbi +0 -555
  363. data/rbi/stripe/resources/product_feature.rbi +0 -26
  364. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  365. data/rbi/stripe/resources/quote.rbi +0 -1145
  366. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  367. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  368. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  369. data/rbi/stripe/resources/refund.rbi +0 -523
  370. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  371. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  372. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  373. data/rbi/stripe/resources/reversal.rbi +0 -51
  374. data/rbi/stripe/resources/review.rbi +0 -154
  375. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  376. data/rbi/stripe/resources/setup_intent.rbi +0 -3978
  377. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  378. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  379. data/rbi/stripe/resources/source.rbi +0 -1496
  380. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  381. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  382. data/rbi/stripe/resources/subscription.rbi +0 -2080
  383. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  384. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1645
  385. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  386. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  387. data/rbi/stripe/resources/tax/registration.rbi +0 -2732
  388. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  389. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  390. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  391. data/rbi/stripe/resources/tax_code.rbi +0 -44
  392. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  393. data/rbi/stripe/resources/tax_id.rbi +0 -165
  394. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  395. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1387
  396. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  397. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  398. data/rbi/stripe/resources/terminal/reader.rbi +0 -994
  399. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  400. data/rbi/stripe/resources/token.rbi +0 -1283
  401. data/rbi/stripe/resources/topup.rbi +0 -222
  402. data/rbi/stripe/resources/transfer.rbi +0 -199
  403. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  404. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  405. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
  406. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  407. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  408. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  409. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  410. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  411. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  412. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  413. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  414. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  415. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  416. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  417. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  418. data/rbi/stripe/resources/v2/event.rbi +0 -48
  419. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  420. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  421. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  422. data/rbi/stripe/services/account_link_service.rbi +0 -58
  423. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  424. data/rbi/stripe/services/account_person_service.rbi +0 -1011
  425. data/rbi/stripe/services/account_service.rbi +0 -4281
  426. data/rbi/stripe/services/account_session_service.rbi +0 -646
  427. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  428. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  429. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  430. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  431. data/rbi/stripe/services/apps_service.rbi +0 -9
  432. data/rbi/stripe/services/balance_service.rbi +0 -21
  433. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  434. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  435. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  436. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  437. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  438. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  439. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  440. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  441. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  442. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -511
  443. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  444. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  445. data/rbi/stripe/services/billing_service.rbi +0 -15
  446. data/rbi/stripe/services/charge_service.rbi +0 -448
  447. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  448. data/rbi/stripe/services/checkout/session_service.rbi +0 -2670
  449. data/rbi/stripe/services/checkout_service.rbi +0 -9
  450. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  451. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  452. data/rbi/stripe/services/climate_service.rbi +0 -11
  453. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  454. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  455. data/rbi/stripe/services/coupon_service.rbi +0 -194
  456. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  457. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  458. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  459. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  460. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  461. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  462. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  463. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  464. data/rbi/stripe/services/customer_service.rbi +0 -647
  465. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  466. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  467. data/rbi/stripe/services/dispute_service.rbi +0 -424
  468. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  469. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  470. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  471. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  472. data/rbi/stripe/services/event_service.rbi +0 -83
  473. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  474. data/rbi/stripe/services/file_link_service.rbi +0 -124
  475. data/rbi/stripe/services/file_service.rbi +0 -116
  476. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  477. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  478. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  479. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  480. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  481. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  482. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  483. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  484. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
  485. data/rbi/stripe/services/identity_service.rbi +0 -10
  486. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  487. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  488. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  489. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  490. data/rbi/stripe/services/invoice_service.rbi +0 -3011
  491. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  492. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  493. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  494. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  495. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  496. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  497. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  498. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  499. data/rbi/stripe/services/issuing_service.rbi +0 -16
  500. data/rbi/stripe/services/mandate_service.rbi +0 -20
  501. data/rbi/stripe/services/payment_intent_service.rbi +0 -7989
  502. data/rbi/stripe/services/payment_link_service.rbi +0 -1352
  503. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  504. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  505. data/rbi/stripe/services/payment_method_service.rbi +0 -781
  506. data/rbi/stripe/services/payout_service.rbi +0 -205
  507. data/rbi/stripe/services/plan_service.rbi +0 -282
  508. data/rbi/stripe/services/price_service.rbi +0 -546
  509. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  510. data/rbi/stripe/services/product_service.rbi +0 -477
  511. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  512. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  513. data/rbi/stripe/services/quote_service.rbi +0 -699
  514. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  515. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  516. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  517. data/rbi/stripe/services/radar_service.rbi +0 -11
  518. data/rbi/stripe/services/refund_service.rbi +0 -185
  519. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  520. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  521. data/rbi/stripe/services/reporting_service.rbi +0 -10
  522. data/rbi/stripe/services/review_service.rbi +0 -84
  523. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  524. data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
  525. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  526. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  527. data/rbi/stripe/services/sigma_service.rbi +0 -9
  528. data/rbi/stripe/services/source_service.rbi +0 -663
  529. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  530. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1301
  531. data/rbi/stripe/services/subscription_service.rbi +0 -1684
  532. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  533. data/rbi/stripe/services/tax/registration_service.rbi +0 -1858
  534. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  535. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  536. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  537. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  538. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  539. data/rbi/stripe/services/tax_service.rbi +0 -12
  540. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1118
  541. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  542. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  543. data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
  544. data/rbi/stripe/services/terminal_service.rbi +0 -12
  545. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  546. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  547. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  548. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  549. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  550. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  551. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  552. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  553. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -93
  554. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  555. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  556. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  557. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  558. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  559. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  560. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  561. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  562. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  563. data/rbi/stripe/services/token_service.rbi +0 -1257
  564. data/rbi/stripe/services/topup_service.rbi +0 -176
  565. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  566. data/rbi/stripe/services/transfer_service.rbi +0 -152
  567. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  568. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  569. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  570. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
  571. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  572. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  573. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  574. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  575. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  576. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  577. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  578. data/rbi/stripe/services/treasury_service.rbi +0 -18
  579. data/rbi/stripe/services/v1_services.rbi +0 -77
  580. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  581. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  582. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  583. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  584. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  585. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  586. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  587. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  588. data/rbi/stripe/services/v2_services.rbi +0 -10
  589. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -0,0 +1,4170 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountService < StripeService
8
+ attr_reader :persons
9
+
10
+ def initialize(requestor)
11
+ super
12
+ @persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
13
+ end
14
+
15
+ class ListParams < Stripe::RequestParams
16
+ # Filter only accounts that have all of the configurations specified. If omitted, returns all accounts regardless of which configurations they have.
17
+ attr_accessor :applied_configurations
18
+ # The upper limit on the number of accounts returned by the List Account request.
19
+ attr_accessor :limit
20
+
21
+ def initialize(applied_configurations: nil, limit: nil)
22
+ @applied_configurations = applied_configurations
23
+ @limit = limit
24
+ end
25
+ end
26
+
27
+ class CreateParams < Stripe::RequestParams
28
+ class Configuration < Stripe::RequestParams
29
+ class Customer < Stripe::RequestParams
30
+ class AutomaticIndirectTax < Stripe::RequestParams
31
+ # 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”.
32
+ attr_accessor :exempt
33
+ # A recent IP address of the customer used for tax reporting and tax location inference.
34
+ attr_accessor :ip_address
35
+ # 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.
36
+ attr_accessor :location_source
37
+
38
+ def initialize(exempt: nil, ip_address: nil, location_source: nil)
39
+ @exempt = exempt
40
+ @ip_address = ip_address
41
+ @location_source = location_source
42
+ end
43
+ end
44
+
45
+ class Billing < Stripe::RequestParams
46
+ class Invoice < Stripe::RequestParams
47
+ class CustomField < Stripe::RequestParams
48
+ # The name of the custom field. This may be up to 40 characters.
49
+ attr_accessor :name
50
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
51
+ attr_accessor :value
52
+
53
+ def initialize(name: nil, value: nil)
54
+ @name = name
55
+ @value = value
56
+ end
57
+ end
58
+
59
+ class Rendering < Stripe::RequestParams
60
+ # 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.
61
+ attr_accessor :amount_tax_display
62
+ # ID of the invoice rendering template to use for future invoices.
63
+ attr_accessor :template
64
+
65
+ def initialize(amount_tax_display: nil, template: nil)
66
+ @amount_tax_display = amount_tax_display
67
+ @template = template
68
+ end
69
+ end
70
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
71
+ attr_accessor :custom_fields
72
+ # Default footer to be displayed on invoices for this customer.
73
+ attr_accessor :footer
74
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
75
+ attr_accessor :next_sequence
76
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
77
+ attr_accessor :prefix
78
+ # Default options for invoice PDF rendering for this customer.
79
+ attr_accessor :rendering
80
+
81
+ def initialize(
82
+ custom_fields: nil,
83
+ footer: nil,
84
+ next_sequence: nil,
85
+ prefix: nil,
86
+ rendering: nil
87
+ )
88
+ @custom_fields = custom_fields
89
+ @footer = footer
90
+ @next_sequence = next_sequence
91
+ @prefix = prefix
92
+ @rendering = rendering
93
+ end
94
+ end
95
+ # Default settings used on invoices for this customer.
96
+ attr_accessor :invoice
97
+
98
+ def initialize(invoice: nil)
99
+ @invoice = invoice
100
+ end
101
+ end
102
+
103
+ class Capabilities < Stripe::RequestParams
104
+ class AutomaticIndirectTax < Stripe::RequestParams
105
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
106
+ attr_accessor :requested
107
+
108
+ def initialize(requested: nil)
109
+ @requested = requested
110
+ end
111
+ end
112
+ # 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.
113
+ attr_accessor :automatic_indirect_tax
114
+
115
+ def initialize(automatic_indirect_tax: nil)
116
+ @automatic_indirect_tax = automatic_indirect_tax
117
+ end
118
+ end
119
+
120
+ class Shipping < Stripe::RequestParams
121
+ class Address < Stripe::RequestParams
122
+ # City, district, suburb, town, or village.
123
+ attr_accessor :city
124
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
125
+ attr_accessor :country
126
+ # Address line 1 (e.g., street, PO Box, or company name).
127
+ attr_accessor :line1
128
+ # Address line 2 (e.g., apartment, suite, unit, or building).
129
+ attr_accessor :line2
130
+ # ZIP or postal code.
131
+ attr_accessor :postal_code
132
+ # State, county, province, or region.
133
+ attr_accessor :state
134
+
135
+ def initialize(
136
+ city: nil,
137
+ country: nil,
138
+ line1: nil,
139
+ line2: nil,
140
+ postal_code: nil,
141
+ state: nil
142
+ )
143
+ @city = city
144
+ @country = country
145
+ @line1 = line1
146
+ @line2 = line2
147
+ @postal_code = postal_code
148
+ @state = state
149
+ end
150
+ end
151
+ # Customer shipping address.
152
+ attr_accessor :address
153
+ # Customer name.
154
+ attr_accessor :name
155
+ # Customer phone (including extension).
156
+ attr_accessor :phone
157
+
158
+ def initialize(address: nil, name: nil, phone: nil)
159
+ @address = address
160
+ @name = name
161
+ @phone = phone
162
+ end
163
+ end
164
+ # 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.
165
+ attr_accessor :automatic_indirect_tax
166
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
167
+ attr_accessor :billing
168
+ # Capabilities that have been requested on the Customer Configuration.
169
+ attr_accessor :capabilities
170
+ # The customer's shipping information. Appears on invoices emailed to this customer.
171
+ attr_accessor :shipping
172
+ # 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.
173
+ attr_accessor :test_clock
174
+
175
+ def initialize(
176
+ automatic_indirect_tax: nil,
177
+ billing: nil,
178
+ capabilities: nil,
179
+ shipping: nil,
180
+ test_clock: nil
181
+ )
182
+ @automatic_indirect_tax = automatic_indirect_tax
183
+ @billing = billing
184
+ @capabilities = capabilities
185
+ @shipping = shipping
186
+ @test_clock = test_clock
187
+ end
188
+ end
189
+
190
+ class Merchant < Stripe::RequestParams
191
+ class BacsDebitPayments < Stripe::RequestParams
192
+ # Display name for Bacs debit payments.
193
+ attr_accessor :display_name
194
+
195
+ def initialize(display_name: nil)
196
+ @display_name = display_name
197
+ end
198
+ end
199
+
200
+ class Branding < Stripe::RequestParams
201
+ # 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.
202
+ attr_accessor :icon
203
+ # 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.
204
+ attr_accessor :logo
205
+ # A CSS hex color value representing the primary branding color for the merchant.
206
+ attr_accessor :primary_color
207
+ # A CSS hex color value representing the secondary branding color for the merchant.
208
+ attr_accessor :secondary_color
209
+
210
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
211
+ @icon = icon
212
+ @logo = logo
213
+ @primary_color = primary_color
214
+ @secondary_color = secondary_color
215
+ end
216
+ end
217
+
218
+ class Capabilities < Stripe::RequestParams
219
+ class AchDebitPayments < Stripe::RequestParams
220
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
221
+ attr_accessor :requested
222
+
223
+ def initialize(requested: nil)
224
+ @requested = requested
225
+ end
226
+ end
227
+
228
+ class AcssDebitPayments < Stripe::RequestParams
229
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
230
+ attr_accessor :requested
231
+
232
+ def initialize(requested: nil)
233
+ @requested = requested
234
+ end
235
+ end
236
+
237
+ class AffirmPayments < Stripe::RequestParams
238
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
239
+ attr_accessor :requested
240
+
241
+ def initialize(requested: nil)
242
+ @requested = requested
243
+ end
244
+ end
245
+
246
+ class AfterpayClearpayPayments < Stripe::RequestParams
247
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
248
+ attr_accessor :requested
249
+
250
+ def initialize(requested: nil)
251
+ @requested = requested
252
+ end
253
+ end
254
+
255
+ class AlmaPayments < Stripe::RequestParams
256
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
257
+ attr_accessor :requested
258
+
259
+ def initialize(requested: nil)
260
+ @requested = requested
261
+ end
262
+ end
263
+
264
+ class AmazonPayPayments < Stripe::RequestParams
265
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
266
+ attr_accessor :requested
267
+
268
+ def initialize(requested: nil)
269
+ @requested = requested
270
+ end
271
+ end
272
+
273
+ class AuBecsDebitPayments < Stripe::RequestParams
274
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
275
+ attr_accessor :requested
276
+
277
+ def initialize(requested: nil)
278
+ @requested = requested
279
+ end
280
+ end
281
+
282
+ class BacsDebitPayments < Stripe::RequestParams
283
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
284
+ attr_accessor :requested
285
+
286
+ def initialize(requested: nil)
287
+ @requested = requested
288
+ end
289
+ end
290
+
291
+ class BancontactPayments < Stripe::RequestParams
292
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
293
+ attr_accessor :requested
294
+
295
+ def initialize(requested: nil)
296
+ @requested = requested
297
+ end
298
+ end
299
+
300
+ class BlikPayments < Stripe::RequestParams
301
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
302
+ attr_accessor :requested
303
+
304
+ def initialize(requested: nil)
305
+ @requested = requested
306
+ end
307
+ end
308
+
309
+ class BoletoPayments < Stripe::RequestParams
310
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
311
+ attr_accessor :requested
312
+
313
+ def initialize(requested: nil)
314
+ @requested = requested
315
+ end
316
+ end
317
+
318
+ class CardPayments < Stripe::RequestParams
319
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
320
+ attr_accessor :requested
321
+
322
+ def initialize(requested: nil)
323
+ @requested = requested
324
+ end
325
+ end
326
+
327
+ class CartesBancairesPayments < Stripe::RequestParams
328
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
329
+ attr_accessor :requested
330
+
331
+ def initialize(requested: nil)
332
+ @requested = requested
333
+ end
334
+ end
335
+
336
+ class CashappPayments < Stripe::RequestParams
337
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
338
+ attr_accessor :requested
339
+
340
+ def initialize(requested: nil)
341
+ @requested = requested
342
+ end
343
+ end
344
+
345
+ class EpsPayments < Stripe::RequestParams
346
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
347
+ attr_accessor :requested
348
+
349
+ def initialize(requested: nil)
350
+ @requested = requested
351
+ end
352
+ end
353
+
354
+ class FpxPayments < Stripe::RequestParams
355
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
356
+ attr_accessor :requested
357
+
358
+ def initialize(requested: nil)
359
+ @requested = requested
360
+ end
361
+ end
362
+
363
+ class GbBankTransferPayments < Stripe::RequestParams
364
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
365
+ attr_accessor :requested
366
+
367
+ def initialize(requested: nil)
368
+ @requested = requested
369
+ end
370
+ end
371
+
372
+ class GrabpayPayments < Stripe::RequestParams
373
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
374
+ attr_accessor :requested
375
+
376
+ def initialize(requested: nil)
377
+ @requested = requested
378
+ end
379
+ end
380
+
381
+ class IdealPayments < Stripe::RequestParams
382
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
383
+ attr_accessor :requested
384
+
385
+ def initialize(requested: nil)
386
+ @requested = requested
387
+ end
388
+ end
389
+
390
+ class JcbPayments < Stripe::RequestParams
391
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
392
+ attr_accessor :requested
393
+
394
+ def initialize(requested: nil)
395
+ @requested = requested
396
+ end
397
+ end
398
+
399
+ class JpBankTransferPayments < Stripe::RequestParams
400
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
401
+ attr_accessor :requested
402
+
403
+ def initialize(requested: nil)
404
+ @requested = requested
405
+ end
406
+ end
407
+
408
+ class KakaoPayPayments < Stripe::RequestParams
409
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
410
+ attr_accessor :requested
411
+
412
+ def initialize(requested: nil)
413
+ @requested = requested
414
+ end
415
+ end
416
+
417
+ class KlarnaPayments < Stripe::RequestParams
418
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
419
+ attr_accessor :requested
420
+
421
+ def initialize(requested: nil)
422
+ @requested = requested
423
+ end
424
+ end
425
+
426
+ class KonbiniPayments < Stripe::RequestParams
427
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
428
+ attr_accessor :requested
429
+
430
+ def initialize(requested: nil)
431
+ @requested = requested
432
+ end
433
+ end
434
+
435
+ class KrCardPayments < Stripe::RequestParams
436
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
437
+ attr_accessor :requested
438
+
439
+ def initialize(requested: nil)
440
+ @requested = requested
441
+ end
442
+ end
443
+
444
+ class LinkPayments < Stripe::RequestParams
445
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
446
+ attr_accessor :requested
447
+
448
+ def initialize(requested: nil)
449
+ @requested = requested
450
+ end
451
+ end
452
+
453
+ class MobilepayPayments < Stripe::RequestParams
454
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
455
+ attr_accessor :requested
456
+
457
+ def initialize(requested: nil)
458
+ @requested = requested
459
+ end
460
+ end
461
+
462
+ class MultibancoPayments < Stripe::RequestParams
463
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
464
+ attr_accessor :requested
465
+
466
+ def initialize(requested: nil)
467
+ @requested = requested
468
+ end
469
+ end
470
+
471
+ class MxBankTransferPayments < Stripe::RequestParams
472
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
473
+ attr_accessor :requested
474
+
475
+ def initialize(requested: nil)
476
+ @requested = requested
477
+ end
478
+ end
479
+
480
+ class NaverPayPayments < Stripe::RequestParams
481
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
482
+ attr_accessor :requested
483
+
484
+ def initialize(requested: nil)
485
+ @requested = requested
486
+ end
487
+ end
488
+
489
+ class OxxoPayments < Stripe::RequestParams
490
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
491
+ attr_accessor :requested
492
+
493
+ def initialize(requested: nil)
494
+ @requested = requested
495
+ end
496
+ end
497
+
498
+ class P24Payments < Stripe::RequestParams
499
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
500
+ attr_accessor :requested
501
+
502
+ def initialize(requested: nil)
503
+ @requested = requested
504
+ end
505
+ end
506
+
507
+ class PayByBankPayments < Stripe::RequestParams
508
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
509
+ attr_accessor :requested
510
+
511
+ def initialize(requested: nil)
512
+ @requested = requested
513
+ end
514
+ end
515
+
516
+ class PaycoPayments < Stripe::RequestParams
517
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
518
+ attr_accessor :requested
519
+
520
+ def initialize(requested: nil)
521
+ @requested = requested
522
+ end
523
+ end
524
+
525
+ class PaynowPayments < Stripe::RequestParams
526
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
527
+ attr_accessor :requested
528
+
529
+ def initialize(requested: nil)
530
+ @requested = requested
531
+ end
532
+ end
533
+
534
+ class PromptpayPayments < Stripe::RequestParams
535
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
536
+ attr_accessor :requested
537
+
538
+ def initialize(requested: nil)
539
+ @requested = requested
540
+ end
541
+ end
542
+
543
+ class RevolutPayPayments < Stripe::RequestParams
544
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
545
+ attr_accessor :requested
546
+
547
+ def initialize(requested: nil)
548
+ @requested = requested
549
+ end
550
+ end
551
+
552
+ class SamsungPayPayments < Stripe::RequestParams
553
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
554
+ attr_accessor :requested
555
+
556
+ def initialize(requested: nil)
557
+ @requested = requested
558
+ end
559
+ end
560
+
561
+ class SepaBankTransferPayments < Stripe::RequestParams
562
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
563
+ attr_accessor :requested
564
+
565
+ def initialize(requested: nil)
566
+ @requested = requested
567
+ end
568
+ end
569
+
570
+ class SepaDebitPayments < Stripe::RequestParams
571
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
572
+ attr_accessor :requested
573
+
574
+ def initialize(requested: nil)
575
+ @requested = requested
576
+ end
577
+ end
578
+
579
+ class SwishPayments < Stripe::RequestParams
580
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
581
+ attr_accessor :requested
582
+
583
+ def initialize(requested: nil)
584
+ @requested = requested
585
+ end
586
+ end
587
+
588
+ class TwintPayments < Stripe::RequestParams
589
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
590
+ attr_accessor :requested
591
+
592
+ def initialize(requested: nil)
593
+ @requested = requested
594
+ end
595
+ end
596
+
597
+ class UsBankTransferPayments < Stripe::RequestParams
598
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
599
+ attr_accessor :requested
600
+
601
+ def initialize(requested: nil)
602
+ @requested = requested
603
+ end
604
+ end
605
+
606
+ class ZipPayments < Stripe::RequestParams
607
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
608
+ attr_accessor :requested
609
+
610
+ def initialize(requested: nil)
611
+ @requested = requested
612
+ end
613
+ end
614
+ # Allow the merchant to process ACH debit payments.
615
+ attr_accessor :ach_debit_payments
616
+ # Allow the merchant to process ACSS debit payments.
617
+ attr_accessor :acss_debit_payments
618
+ # Allow the merchant to process Affirm payments.
619
+ attr_accessor :affirm_payments
620
+ # Allow the merchant to process Afterpay/Clearpay payments.
621
+ attr_accessor :afterpay_clearpay_payments
622
+ # Allow the merchant to process Alma payments.
623
+ attr_accessor :alma_payments
624
+ # Allow the merchant to process Amazon Pay payments.
625
+ attr_accessor :amazon_pay_payments
626
+ # Allow the merchant to process Australian BECS Direct Debit payments.
627
+ attr_accessor :au_becs_debit_payments
628
+ # Allow the merchant to process BACS Direct Debit payments.
629
+ attr_accessor :bacs_debit_payments
630
+ # Allow the merchant to process Bancontact payments.
631
+ attr_accessor :bancontact_payments
632
+ # Allow the merchant to process BLIK payments.
633
+ attr_accessor :blik_payments
634
+ # Allow the merchant to process Boleto payments.
635
+ attr_accessor :boleto_payments
636
+ # Allow the merchant to collect card payments.
637
+ attr_accessor :card_payments
638
+ # Allow the merchant to process Cartes Bancaires payments.
639
+ attr_accessor :cartes_bancaires_payments
640
+ # Allow the merchant to process Cash App payments.
641
+ attr_accessor :cashapp_payments
642
+ # Allow the merchant to process EPS payments.
643
+ attr_accessor :eps_payments
644
+ # Allow the merchant to process FPX payments.
645
+ attr_accessor :fpx_payments
646
+ # Allow the merchant to process UK bank transfer payments.
647
+ attr_accessor :gb_bank_transfer_payments
648
+ # Allow the merchant to process GrabPay payments.
649
+ attr_accessor :grabpay_payments
650
+ # Allow the merchant to process iDEAL payments.
651
+ attr_accessor :ideal_payments
652
+ # Allow the merchant to process JCB card payments.
653
+ attr_accessor :jcb_payments
654
+ # Allow the merchant to process Japanese bank transfer payments.
655
+ attr_accessor :jp_bank_transfer_payments
656
+ # Allow the merchant to process Kakao Pay payments.
657
+ attr_accessor :kakao_pay_payments
658
+ # Allow the merchant to process Klarna payments.
659
+ attr_accessor :klarna_payments
660
+ # Allow the merchant to process Konbini convenience store payments.
661
+ attr_accessor :konbini_payments
662
+ # Allow the merchant to process Korean card payments.
663
+ attr_accessor :kr_card_payments
664
+ # Allow the merchant to process Link payments.
665
+ attr_accessor :link_payments
666
+ # Allow the merchant to process MobilePay payments.
667
+ attr_accessor :mobilepay_payments
668
+ # Allow the merchant to process Multibanco payments.
669
+ attr_accessor :multibanco_payments
670
+ # Allow the merchant to process Mexican bank transfer payments.
671
+ attr_accessor :mx_bank_transfer_payments
672
+ # Allow the merchant to process Naver Pay payments.
673
+ attr_accessor :naver_pay_payments
674
+ # Allow the merchant to process OXXO payments.
675
+ attr_accessor :oxxo_payments
676
+ # Allow the merchant to process Przelewy24 (P24) payments.
677
+ attr_accessor :p24_payments
678
+ # Allow the merchant to process Pay by Bank payments.
679
+ attr_accessor :pay_by_bank_payments
680
+ # Allow the merchant to process PAYCO payments.
681
+ attr_accessor :payco_payments
682
+ # Allow the merchant to process PayNow payments.
683
+ attr_accessor :paynow_payments
684
+ # Allow the merchant to process PromptPay payments.
685
+ attr_accessor :promptpay_payments
686
+ # Allow the merchant to process Revolut Pay payments.
687
+ attr_accessor :revolut_pay_payments
688
+ # Allow the merchant to process Samsung Pay payments.
689
+ attr_accessor :samsung_pay_payments
690
+ # Allow the merchant to process SEPA bank transfer payments.
691
+ attr_accessor :sepa_bank_transfer_payments
692
+ # Allow the merchant to process SEPA Direct Debit payments.
693
+ attr_accessor :sepa_debit_payments
694
+ # Allow the merchant to process Swish payments.
695
+ attr_accessor :swish_payments
696
+ # Allow the merchant to process TWINT payments.
697
+ attr_accessor :twint_payments
698
+ # Allow the merchant to process US bank transfer payments.
699
+ attr_accessor :us_bank_transfer_payments
700
+ # Allow the merchant to process Zip payments.
701
+ attr_accessor :zip_payments
702
+
703
+ def initialize(
704
+ ach_debit_payments: nil,
705
+ acss_debit_payments: nil,
706
+ affirm_payments: nil,
707
+ afterpay_clearpay_payments: nil,
708
+ alma_payments: nil,
709
+ amazon_pay_payments: nil,
710
+ au_becs_debit_payments: nil,
711
+ bacs_debit_payments: nil,
712
+ bancontact_payments: nil,
713
+ blik_payments: nil,
714
+ boleto_payments: nil,
715
+ card_payments: nil,
716
+ cartes_bancaires_payments: nil,
717
+ cashapp_payments: nil,
718
+ eps_payments: nil,
719
+ fpx_payments: nil,
720
+ gb_bank_transfer_payments: nil,
721
+ grabpay_payments: nil,
722
+ ideal_payments: nil,
723
+ jcb_payments: nil,
724
+ jp_bank_transfer_payments: nil,
725
+ kakao_pay_payments: nil,
726
+ klarna_payments: nil,
727
+ konbini_payments: nil,
728
+ kr_card_payments: nil,
729
+ link_payments: nil,
730
+ mobilepay_payments: nil,
731
+ multibanco_payments: nil,
732
+ mx_bank_transfer_payments: nil,
733
+ naver_pay_payments: nil,
734
+ oxxo_payments: nil,
735
+ p24_payments: nil,
736
+ pay_by_bank_payments: nil,
737
+ payco_payments: nil,
738
+ paynow_payments: nil,
739
+ promptpay_payments: nil,
740
+ revolut_pay_payments: nil,
741
+ samsung_pay_payments: nil,
742
+ sepa_bank_transfer_payments: nil,
743
+ sepa_debit_payments: nil,
744
+ swish_payments: nil,
745
+ twint_payments: nil,
746
+ us_bank_transfer_payments: nil,
747
+ zip_payments: nil
748
+ )
749
+ @ach_debit_payments = ach_debit_payments
750
+ @acss_debit_payments = acss_debit_payments
751
+ @affirm_payments = affirm_payments
752
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
753
+ @alma_payments = alma_payments
754
+ @amazon_pay_payments = amazon_pay_payments
755
+ @au_becs_debit_payments = au_becs_debit_payments
756
+ @bacs_debit_payments = bacs_debit_payments
757
+ @bancontact_payments = bancontact_payments
758
+ @blik_payments = blik_payments
759
+ @boleto_payments = boleto_payments
760
+ @card_payments = card_payments
761
+ @cartes_bancaires_payments = cartes_bancaires_payments
762
+ @cashapp_payments = cashapp_payments
763
+ @eps_payments = eps_payments
764
+ @fpx_payments = fpx_payments
765
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
766
+ @grabpay_payments = grabpay_payments
767
+ @ideal_payments = ideal_payments
768
+ @jcb_payments = jcb_payments
769
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
770
+ @kakao_pay_payments = kakao_pay_payments
771
+ @klarna_payments = klarna_payments
772
+ @konbini_payments = konbini_payments
773
+ @kr_card_payments = kr_card_payments
774
+ @link_payments = link_payments
775
+ @mobilepay_payments = mobilepay_payments
776
+ @multibanco_payments = multibanco_payments
777
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
778
+ @naver_pay_payments = naver_pay_payments
779
+ @oxxo_payments = oxxo_payments
780
+ @p24_payments = p24_payments
781
+ @pay_by_bank_payments = pay_by_bank_payments
782
+ @payco_payments = payco_payments
783
+ @paynow_payments = paynow_payments
784
+ @promptpay_payments = promptpay_payments
785
+ @revolut_pay_payments = revolut_pay_payments
786
+ @samsung_pay_payments = samsung_pay_payments
787
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
788
+ @sepa_debit_payments = sepa_debit_payments
789
+ @swish_payments = swish_payments
790
+ @twint_payments = twint_payments
791
+ @us_bank_transfer_payments = us_bank_transfer_payments
792
+ @zip_payments = zip_payments
793
+ end
794
+ end
795
+
796
+ class CardPayments < Stripe::RequestParams
797
+ class DeclineOn < Stripe::RequestParams
798
+ # 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.
799
+ attr_accessor :avs_failure
800
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
801
+ attr_accessor :cvc_failure
802
+
803
+ def initialize(avs_failure: nil, cvc_failure: nil)
804
+ @avs_failure = avs_failure
805
+ @cvc_failure = cvc_failure
806
+ end
807
+ end
808
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
809
+ attr_accessor :decline_on
810
+
811
+ def initialize(decline_on: nil)
812
+ @decline_on = decline_on
813
+ end
814
+ end
815
+
816
+ class StatementDescriptor < Stripe::RequestParams
817
+ # 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.
818
+ attr_accessor :descriptor
819
+ # 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.
820
+ attr_accessor :prefix
821
+
822
+ def initialize(descriptor: nil, prefix: nil)
823
+ @descriptor = descriptor
824
+ @prefix = prefix
825
+ end
826
+ end
827
+
828
+ class Support < Stripe::RequestParams
829
+ class Address < Stripe::RequestParams
830
+ # City, district, suburb, town, or village.
831
+ attr_accessor :city
832
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
833
+ attr_accessor :country
834
+ # Address line 1 (e.g., street, PO Box, or company name).
835
+ attr_accessor :line1
836
+ # Address line 2 (e.g., apartment, suite, unit, or building).
837
+ attr_accessor :line2
838
+ # ZIP or postal code.
839
+ attr_accessor :postal_code
840
+ # State, county, province, or region.
841
+ attr_accessor :state
842
+ # Town or cho-me.
843
+ attr_accessor :town
844
+
845
+ def initialize(
846
+ city: nil,
847
+ country: nil,
848
+ line1: nil,
849
+ line2: nil,
850
+ postal_code: nil,
851
+ state: nil,
852
+ town: nil
853
+ )
854
+ @city = city
855
+ @country = country
856
+ @line1 = line1
857
+ @line2 = line2
858
+ @postal_code = postal_code
859
+ @state = state
860
+ @town = town
861
+ end
862
+ end
863
+ # A publicly available mailing address for sending support issues to.
864
+ attr_accessor :address
865
+ # A publicly available email address for sending support issues to.
866
+ attr_accessor :email
867
+ # A publicly available phone number to call with support issues.
868
+ attr_accessor :phone
869
+ # A publicly available website for handling support issues.
870
+ attr_accessor :url
871
+
872
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
873
+ @address = address
874
+ @email = email
875
+ @phone = phone
876
+ @url = url
877
+ end
878
+ end
879
+ # Settings used for Bacs debit payments.
880
+ attr_accessor :bacs_debit_payments
881
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
882
+ attr_accessor :branding
883
+ # Capabilities to request on the Merchant Configuration.
884
+ attr_accessor :capabilities
885
+ # Card payments settings.
886
+ attr_accessor :card_payments
887
+ # The merchant category code for the Merchant Configuration. MCCs are used to classify businesses based on the goods or services they provide.
888
+ attr_accessor :mcc
889
+ # Statement descriptor.
890
+ attr_accessor :statement_descriptor
891
+ # Publicly available contact information for sending support issues to.
892
+ attr_accessor :support
893
+
894
+ def initialize(
895
+ bacs_debit_payments: nil,
896
+ branding: nil,
897
+ capabilities: nil,
898
+ card_payments: nil,
899
+ mcc: nil,
900
+ statement_descriptor: nil,
901
+ support: nil
902
+ )
903
+ @bacs_debit_payments = bacs_debit_payments
904
+ @branding = branding
905
+ @capabilities = capabilities
906
+ @card_payments = card_payments
907
+ @mcc = mcc
908
+ @statement_descriptor = statement_descriptor
909
+ @support = support
910
+ end
911
+ end
912
+
913
+ class Recipient < Stripe::RequestParams
914
+ class Capabilities < Stripe::RequestParams
915
+ class BankAccounts < Stripe::RequestParams
916
+ class Local < Stripe::RequestParams
917
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
918
+ attr_accessor :requested
919
+
920
+ def initialize(requested: nil)
921
+ @requested = requested
922
+ end
923
+ end
924
+
925
+ class Wire < Stripe::RequestParams
926
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
927
+ attr_accessor :requested
928
+
929
+ def initialize(requested: nil)
930
+ @requested = requested
931
+ end
932
+ end
933
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
934
+ attr_accessor :local
935
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
936
+ attr_accessor :wire
937
+
938
+ def initialize(local: nil, wire: nil)
939
+ @local = local
940
+ @wire = wire
941
+ end
942
+ end
943
+
944
+ class Cards < Stripe::RequestParams
945
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
946
+ attr_accessor :requested
947
+
948
+ def initialize(requested: nil)
949
+ @requested = requested
950
+ end
951
+ end
952
+
953
+ class StripeBalance < Stripe::RequestParams
954
+ class StripeTransfers < Stripe::RequestParams
955
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
956
+ attr_accessor :requested
957
+
958
+ def initialize(requested: nil)
959
+ @requested = requested
960
+ end
961
+ end
962
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
963
+ attr_accessor :stripe_transfers
964
+
965
+ def initialize(stripe_transfers: nil)
966
+ @stripe_transfers = stripe_transfers
967
+ end
968
+ end
969
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
970
+ attr_accessor :bank_accounts
971
+ # Capabilities that enable OutboundPayments to a card linked to this Account.
972
+ attr_accessor :cards
973
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
974
+ attr_accessor :stripe_balance
975
+
976
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
977
+ @bank_accounts = bank_accounts
978
+ @cards = cards
979
+ @stripe_balance = stripe_balance
980
+ end
981
+ end
982
+ # Capabilities to be requested on the Recipient Configuration.
983
+ attr_accessor :capabilities
984
+
985
+ def initialize(capabilities: nil)
986
+ @capabilities = capabilities
987
+ end
988
+ end
989
+ # The Customer Configuration allows the Account to be used in inbound payment flows.
990
+ attr_accessor :customer
991
+ # 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.
992
+ attr_accessor :merchant
993
+ # The Recipient Configuration allows the Account to receive funds.
994
+ attr_accessor :recipient
995
+
996
+ def initialize(customer: nil, merchant: nil, recipient: nil)
997
+ @customer = customer
998
+ @merchant = merchant
999
+ @recipient = recipient
1000
+ end
1001
+ end
1002
+
1003
+ class Defaults < Stripe::RequestParams
1004
+ class Responsibilities < Stripe::RequestParams
1005
+ # A value indicating the party responsible for collecting fees from this account.
1006
+ attr_accessor :fees_collector
1007
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1008
+ attr_accessor :losses_collector
1009
+
1010
+ def initialize(fees_collector: nil, losses_collector: nil)
1011
+ @fees_collector = fees_collector
1012
+ @losses_collector = losses_collector
1013
+ end
1014
+ end
1015
+ # 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).
1016
+ attr_accessor :currency
1017
+ # The Account's preferred locales (languages), ordered by preference.
1018
+ attr_accessor :locales
1019
+ # Default responsibilities held by either Stripe or the platform.
1020
+ attr_accessor :responsibilities
1021
+
1022
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
1023
+ @currency = currency
1024
+ @locales = locales
1025
+ @responsibilities = responsibilities
1026
+ end
1027
+ end
1028
+
1029
+ class Identity < Stripe::RequestParams
1030
+ class Attestations < Stripe::RequestParams
1031
+ class DirectorshipDeclaration < Stripe::RequestParams
1032
+ # 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.
1033
+ attr_accessor :date
1034
+ # The IP address from which the director attestation was made.
1035
+ attr_accessor :ip
1036
+ # The user agent of the browser from which the director attestation was made.
1037
+ attr_accessor :user_agent
1038
+
1039
+ def initialize(date: nil, ip: nil, user_agent: nil)
1040
+ @date = date
1041
+ @ip = ip
1042
+ @user_agent = user_agent
1043
+ end
1044
+ end
1045
+
1046
+ class OwnershipDeclaration < Stripe::RequestParams
1047
+ # 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.
1048
+ attr_accessor :date
1049
+ # The IP address from which the beneficial owner attestation was made.
1050
+ attr_accessor :ip
1051
+ # The user agent of the browser from which the beneficial owner attestation was made.
1052
+ attr_accessor :user_agent
1053
+
1054
+ def initialize(date: nil, ip: nil, user_agent: nil)
1055
+ @date = date
1056
+ @ip = ip
1057
+ @user_agent = user_agent
1058
+ end
1059
+ end
1060
+
1061
+ class PersonsProvided < Stripe::RequestParams
1062
+ # 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).
1063
+ attr_accessor :directors
1064
+ # 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).
1065
+ attr_accessor :executives
1066
+ # 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).
1067
+ attr_accessor :owners
1068
+ # Reason for why the company is exempt from providing ownership information.
1069
+ attr_accessor :ownership_exemption_reason
1070
+
1071
+ def initialize(
1072
+ directors: nil,
1073
+ executives: nil,
1074
+ owners: nil,
1075
+ ownership_exemption_reason: nil
1076
+ )
1077
+ @directors = directors
1078
+ @executives = executives
1079
+ @owners = owners
1080
+ @ownership_exemption_reason = ownership_exemption_reason
1081
+ end
1082
+ end
1083
+
1084
+ class TermsOfService < Stripe::RequestParams
1085
+ class Account < Stripe::RequestParams
1086
+ # 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.
1087
+ attr_accessor :date
1088
+ # The IP address from which the Account's representative accepted the terms of service.
1089
+ attr_accessor :ip
1090
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1091
+ attr_accessor :user_agent
1092
+
1093
+ def initialize(date: nil, ip: nil, user_agent: nil)
1094
+ @date = date
1095
+ @ip = ip
1096
+ @user_agent = user_agent
1097
+ end
1098
+ end
1099
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1100
+ attr_accessor :account
1101
+
1102
+ def initialize(account: nil)
1103
+ @account = account
1104
+ end
1105
+ end
1106
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1107
+ attr_accessor :directorship_declaration
1108
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1109
+ attr_accessor :ownership_declaration
1110
+ # Attestation that all Persons with a specific Relationship value have been provided.
1111
+ attr_accessor :persons_provided
1112
+ # Attestations of accepted terms of service agreements.
1113
+ attr_accessor :terms_of_service
1114
+
1115
+ def initialize(
1116
+ directorship_declaration: nil,
1117
+ ownership_declaration: nil,
1118
+ persons_provided: nil,
1119
+ terms_of_service: nil
1120
+ )
1121
+ @directorship_declaration = directorship_declaration
1122
+ @ownership_declaration = ownership_declaration
1123
+ @persons_provided = persons_provided
1124
+ @terms_of_service = terms_of_service
1125
+ end
1126
+ end
1127
+
1128
+ class BusinessDetails < Stripe::RequestParams
1129
+ class Address < Stripe::RequestParams
1130
+ # City, district, suburb, town, or village.
1131
+ attr_accessor :city
1132
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1133
+ attr_accessor :country
1134
+ # Address line 1 (e.g., street, PO Box, or company name).
1135
+ attr_accessor :line1
1136
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1137
+ attr_accessor :line2
1138
+ # ZIP or postal code.
1139
+ attr_accessor :postal_code
1140
+ # State, county, province, or region.
1141
+ attr_accessor :state
1142
+ # Town or cho-me.
1143
+ attr_accessor :town
1144
+
1145
+ def initialize(
1146
+ city: nil,
1147
+ country: nil,
1148
+ line1: nil,
1149
+ line2: nil,
1150
+ postal_code: nil,
1151
+ state: nil,
1152
+ town: nil
1153
+ )
1154
+ @city = city
1155
+ @country = country
1156
+ @line1 = line1
1157
+ @line2 = line2
1158
+ @postal_code = postal_code
1159
+ @state = state
1160
+ @town = town
1161
+ end
1162
+ end
1163
+
1164
+ class AnnualRevenue < Stripe::RequestParams
1165
+ # A non-negative integer representing the amount in the smallest currency unit.
1166
+ attr_accessor :amount
1167
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1168
+ attr_accessor :fiscal_year_end
1169
+
1170
+ def initialize(amount: nil, fiscal_year_end: nil)
1171
+ @amount = amount
1172
+ @fiscal_year_end = fiscal_year_end
1173
+ end
1174
+ end
1175
+
1176
+ class Documents < Stripe::RequestParams
1177
+ class BankAccountOwnershipVerification < Stripe::RequestParams
1178
+ # 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`.
1179
+ attr_accessor :files
1180
+ # The format of the document. Currently supports `files` only.
1181
+ attr_accessor :type
1182
+
1183
+ def initialize(files: nil, type: nil)
1184
+ @files = files
1185
+ @type = type
1186
+ end
1187
+ end
1188
+
1189
+ class CompanyLicense < Stripe::RequestParams
1190
+ # 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`.
1191
+ attr_accessor :files
1192
+ # The format of the document. Currently supports `files` only.
1193
+ attr_accessor :type
1194
+
1195
+ def initialize(files: nil, type: nil)
1196
+ @files = files
1197
+ @type = type
1198
+ end
1199
+ end
1200
+
1201
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
1202
+ # 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`.
1203
+ attr_accessor :files
1204
+ # The format of the document. Currently supports `files` only.
1205
+ attr_accessor :type
1206
+
1207
+ def initialize(files: nil, type: nil)
1208
+ @files = files
1209
+ @type = type
1210
+ end
1211
+ end
1212
+
1213
+ class CompanyMinisterialDecree < Stripe::RequestParams
1214
+ # 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`.
1215
+ attr_accessor :files
1216
+ # The format of the document. Currently supports `files` only.
1217
+ attr_accessor :type
1218
+
1219
+ def initialize(files: nil, type: nil)
1220
+ @files = files
1221
+ @type = type
1222
+ end
1223
+ end
1224
+
1225
+ class CompanyRegistrationVerification < Stripe::RequestParams
1226
+ # 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`.
1227
+ attr_accessor :files
1228
+ # The format of the document. Currently supports `files` only.
1229
+ attr_accessor :type
1230
+
1231
+ def initialize(files: nil, type: nil)
1232
+ @files = files
1233
+ @type = type
1234
+ end
1235
+ end
1236
+
1237
+ class CompanyTaxIdVerification < Stripe::RequestParams
1238
+ # 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`.
1239
+ attr_accessor :files
1240
+ # The format of the document. Currently supports `files` only.
1241
+ attr_accessor :type
1242
+
1243
+ def initialize(files: nil, type: nil)
1244
+ @files = files
1245
+ @type = type
1246
+ end
1247
+ end
1248
+
1249
+ class PrimaryVerification < Stripe::RequestParams
1250
+ class FrontBack < Stripe::RequestParams
1251
+ # 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.
1252
+ attr_accessor :back
1253
+ # 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.
1254
+ attr_accessor :front
1255
+
1256
+ def initialize(back: nil, front: nil)
1257
+ @back = back
1258
+ @front = front
1259
+ end
1260
+ end
1261
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1262
+ attr_accessor :front_back
1263
+ # The format of the verification document. Currently supports `front_back` only.
1264
+ attr_accessor :type
1265
+
1266
+ def initialize(front_back: nil, type: nil)
1267
+ @front_back = front_back
1268
+ @type = type
1269
+ end
1270
+ end
1271
+
1272
+ class ProofOfAddress < Stripe::RequestParams
1273
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1274
+ attr_accessor :files
1275
+ # The format of the document. Currently supports `files` only.
1276
+ attr_accessor :type
1277
+
1278
+ def initialize(files: nil, type: nil)
1279
+ @files = files
1280
+ @type = type
1281
+ end
1282
+ end
1283
+
1284
+ class ProofOfRegistration < Stripe::RequestParams
1285
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1286
+ attr_accessor :files
1287
+ # The format of the document. Currently supports `files` only.
1288
+ attr_accessor :type
1289
+
1290
+ def initialize(files: nil, type: nil)
1291
+ @files = files
1292
+ @type = type
1293
+ end
1294
+ end
1295
+
1296
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
1297
+ # 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`.
1298
+ attr_accessor :files
1299
+ # The format of the document. Currently supports `files` only.
1300
+ attr_accessor :type
1301
+
1302
+ def initialize(files: nil, type: nil)
1303
+ @files = files
1304
+ @type = type
1305
+ end
1306
+ end
1307
+ # 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.
1308
+ attr_accessor :bank_account_ownership_verification
1309
+ # One or more documents that demonstrate proof of a company’s license to operate.
1310
+ attr_accessor :company_license
1311
+ # One or more documents showing the company’s Memorandum of Association.
1312
+ attr_accessor :company_memorandum_of_association
1313
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1314
+ attr_accessor :company_ministerial_decree
1315
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1316
+ attr_accessor :company_registration_verification
1317
+ # One or more documents that demonstrate proof of a company’s tax ID.
1318
+ attr_accessor :company_tax_id_verification
1319
+ # A document verifying the business.
1320
+ attr_accessor :primary_verification
1321
+ # One or more documents that demonstrate proof of address.
1322
+ attr_accessor :proof_of_address
1323
+ # One or more documents showing the company’s proof of registration with the national business registry.
1324
+ attr_accessor :proof_of_registration
1325
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1326
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1327
+
1328
+ def initialize(
1329
+ bank_account_ownership_verification: nil,
1330
+ company_license: nil,
1331
+ company_memorandum_of_association: nil,
1332
+ company_ministerial_decree: nil,
1333
+ company_registration_verification: nil,
1334
+ company_tax_id_verification: nil,
1335
+ primary_verification: nil,
1336
+ proof_of_address: nil,
1337
+ proof_of_registration: nil,
1338
+ proof_of_ultimate_beneficial_ownership: nil
1339
+ )
1340
+ @bank_account_ownership_verification = bank_account_ownership_verification
1341
+ @company_license = company_license
1342
+ @company_memorandum_of_association = company_memorandum_of_association
1343
+ @company_ministerial_decree = company_ministerial_decree
1344
+ @company_registration_verification = company_registration_verification
1345
+ @company_tax_id_verification = company_tax_id_verification
1346
+ @primary_verification = primary_verification
1347
+ @proof_of_address = proof_of_address
1348
+ @proof_of_registration = proof_of_registration
1349
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1350
+ end
1351
+ end
1352
+
1353
+ class IdNumber < Stripe::RequestParams
1354
+ # The registrar of the ID number (Only valid for DE ID number types).
1355
+ attr_accessor :registrar
1356
+ # Open Enum. The ID number type of a business entity.
1357
+ attr_accessor :type
1358
+ # The value of the ID number.
1359
+ attr_accessor :value
1360
+
1361
+ def initialize(registrar: nil, type: nil, value: nil)
1362
+ @registrar = registrar
1363
+ @type = type
1364
+ @value = value
1365
+ end
1366
+ end
1367
+
1368
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
1369
+ # A non-negative integer representing the amount in the smallest currency unit.
1370
+ attr_accessor :amount
1371
+
1372
+ def initialize(amount: nil)
1373
+ @amount = amount
1374
+ end
1375
+ end
1376
+
1377
+ class ScriptAddresses < Stripe::RequestParams
1378
+ class Kana < Stripe::RequestParams
1379
+ # City, district, suburb, town, or village.
1380
+ attr_accessor :city
1381
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1382
+ attr_accessor :country
1383
+ # Address line 1 (e.g., street, PO Box, or company name).
1384
+ attr_accessor :line1
1385
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1386
+ attr_accessor :line2
1387
+ # ZIP or postal code.
1388
+ attr_accessor :postal_code
1389
+ # State, county, province, or region.
1390
+ attr_accessor :state
1391
+ # Town or cho-me.
1392
+ attr_accessor :town
1393
+
1394
+ def initialize(
1395
+ city: nil,
1396
+ country: nil,
1397
+ line1: nil,
1398
+ line2: nil,
1399
+ postal_code: nil,
1400
+ state: nil,
1401
+ town: nil
1402
+ )
1403
+ @city = city
1404
+ @country = country
1405
+ @line1 = line1
1406
+ @line2 = line2
1407
+ @postal_code = postal_code
1408
+ @state = state
1409
+ @town = town
1410
+ end
1411
+ end
1412
+
1413
+ class Kanji < Stripe::RequestParams
1414
+ # City, district, suburb, town, or village.
1415
+ attr_accessor :city
1416
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1417
+ attr_accessor :country
1418
+ # Address line 1 (e.g., street, PO Box, or company name).
1419
+ attr_accessor :line1
1420
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1421
+ attr_accessor :line2
1422
+ # ZIP or postal code.
1423
+ attr_accessor :postal_code
1424
+ # State, county, province, or region.
1425
+ attr_accessor :state
1426
+ # Town or cho-me.
1427
+ attr_accessor :town
1428
+
1429
+ def initialize(
1430
+ city: nil,
1431
+ country: nil,
1432
+ line1: nil,
1433
+ line2: nil,
1434
+ postal_code: nil,
1435
+ state: nil,
1436
+ town: nil
1437
+ )
1438
+ @city = city
1439
+ @country = country
1440
+ @line1 = line1
1441
+ @line2 = line2
1442
+ @postal_code = postal_code
1443
+ @state = state
1444
+ @town = town
1445
+ end
1446
+ end
1447
+ # Kana Address.
1448
+ attr_accessor :kana
1449
+ # Kanji Address.
1450
+ attr_accessor :kanji
1451
+
1452
+ def initialize(kana: nil, kanji: nil)
1453
+ @kana = kana
1454
+ @kanji = kanji
1455
+ end
1456
+ end
1457
+
1458
+ class ScriptNames < Stripe::RequestParams
1459
+ class Kana < Stripe::RequestParams
1460
+ # Registered name of the business.
1461
+ attr_accessor :registered_name
1462
+
1463
+ def initialize(registered_name: nil)
1464
+ @registered_name = registered_name
1465
+ end
1466
+ end
1467
+
1468
+ class Kanji < Stripe::RequestParams
1469
+ # Registered name of the business.
1470
+ attr_accessor :registered_name
1471
+
1472
+ def initialize(registered_name: nil)
1473
+ @registered_name = registered_name
1474
+ end
1475
+ end
1476
+ # Kana name.
1477
+ attr_accessor :kana
1478
+ # Kanji name.
1479
+ attr_accessor :kanji
1480
+
1481
+ def initialize(kana: nil, kanji: nil)
1482
+ @kana = kana
1483
+ @kanji = kanji
1484
+ end
1485
+ end
1486
+ # The business registration address of the business entity.
1487
+ attr_accessor :address
1488
+ # The business gross annual revenue for its preceding fiscal year.
1489
+ attr_accessor :annual_revenue
1490
+ # A document verifying the business.
1491
+ attr_accessor :documents
1492
+ # The name which is used by the business.
1493
+ attr_accessor :doing_business_as
1494
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
1495
+ attr_accessor :estimated_worker_count
1496
+ # The ID numbers of a business entity.
1497
+ attr_accessor :id_numbers
1498
+ # An estimate of the monthly revenue of the business.
1499
+ attr_accessor :monthly_estimated_revenue
1500
+ # The phone number of the Business Entity.
1501
+ attr_accessor :phone
1502
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1503
+ attr_accessor :product_description
1504
+ # The business legal name.
1505
+ attr_accessor :registered_name
1506
+ # The business registration address of the business entity in non latin script.
1507
+ attr_accessor :script_addresses
1508
+ # The business legal name in non latin script.
1509
+ attr_accessor :script_names
1510
+ # The category identifying the legal structure of the business.
1511
+ attr_accessor :structure
1512
+ # The business's publicly available website.
1513
+ attr_accessor :url
1514
+
1515
+ def initialize(
1516
+ address: nil,
1517
+ annual_revenue: nil,
1518
+ documents: nil,
1519
+ doing_business_as: nil,
1520
+ estimated_worker_count: nil,
1521
+ id_numbers: nil,
1522
+ monthly_estimated_revenue: nil,
1523
+ phone: nil,
1524
+ product_description: nil,
1525
+ registered_name: nil,
1526
+ script_addresses: nil,
1527
+ script_names: nil,
1528
+ structure: nil,
1529
+ url: nil
1530
+ )
1531
+ @address = address
1532
+ @annual_revenue = annual_revenue
1533
+ @documents = documents
1534
+ @doing_business_as = doing_business_as
1535
+ @estimated_worker_count = estimated_worker_count
1536
+ @id_numbers = id_numbers
1537
+ @monthly_estimated_revenue = monthly_estimated_revenue
1538
+ @phone = phone
1539
+ @product_description = product_description
1540
+ @registered_name = registered_name
1541
+ @script_addresses = script_addresses
1542
+ @script_names = script_names
1543
+ @structure = structure
1544
+ @url = url
1545
+ end
1546
+ end
1547
+
1548
+ class Individual < Stripe::RequestParams
1549
+ class AdditionalAddress < Stripe::RequestParams
1550
+ # City, district, suburb, town, or village.
1551
+ attr_accessor :city
1552
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1553
+ attr_accessor :country
1554
+ # Address line 1 (e.g., street, PO Box, or company name).
1555
+ attr_accessor :line1
1556
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1557
+ attr_accessor :line2
1558
+ # ZIP or postal code.
1559
+ attr_accessor :postal_code
1560
+ # Purpose of additional address.
1561
+ attr_accessor :purpose
1562
+ # State, county, province, or region.
1563
+ attr_accessor :state
1564
+ # Town or cho-me.
1565
+ attr_accessor :town
1566
+
1567
+ def initialize(
1568
+ city: nil,
1569
+ country: nil,
1570
+ line1: nil,
1571
+ line2: nil,
1572
+ postal_code: nil,
1573
+ purpose: nil,
1574
+ state: nil,
1575
+ town: nil
1576
+ )
1577
+ @city = city
1578
+ @country = country
1579
+ @line1 = line1
1580
+ @line2 = line2
1581
+ @postal_code = postal_code
1582
+ @purpose = purpose
1583
+ @state = state
1584
+ @town = town
1585
+ end
1586
+ end
1587
+
1588
+ class AdditionalName < Stripe::RequestParams
1589
+ # The person's full name.
1590
+ attr_accessor :full_name
1591
+ # The person's first or given name.
1592
+ attr_accessor :given_name
1593
+ # The purpose or type of the additional name.
1594
+ attr_accessor :purpose
1595
+ # The person's last or family name.
1596
+ attr_accessor :surname
1597
+
1598
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1599
+ @full_name = full_name
1600
+ @given_name = given_name
1601
+ @purpose = purpose
1602
+ @surname = surname
1603
+ end
1604
+ end
1605
+
1606
+ class Address < Stripe::RequestParams
1607
+ # City, district, suburb, town, or village.
1608
+ attr_accessor :city
1609
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1610
+ attr_accessor :country
1611
+ # Address line 1 (e.g., street, PO Box, or company name).
1612
+ attr_accessor :line1
1613
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1614
+ attr_accessor :line2
1615
+ # ZIP or postal code.
1616
+ attr_accessor :postal_code
1617
+ # State, county, province, or region.
1618
+ attr_accessor :state
1619
+ # Town or cho-me.
1620
+ attr_accessor :town
1621
+
1622
+ def initialize(
1623
+ city: nil,
1624
+ country: nil,
1625
+ line1: nil,
1626
+ line2: nil,
1627
+ postal_code: nil,
1628
+ state: nil,
1629
+ town: nil
1630
+ )
1631
+ @city = city
1632
+ @country = country
1633
+ @line1 = line1
1634
+ @line2 = line2
1635
+ @postal_code = postal_code
1636
+ @state = state
1637
+ @town = town
1638
+ end
1639
+ end
1640
+
1641
+ class DateOfBirth < Stripe::RequestParams
1642
+ # The day of birth.
1643
+ attr_accessor :day
1644
+ # The month of birth.
1645
+ attr_accessor :month
1646
+ # The year of birth.
1647
+ attr_accessor :year
1648
+
1649
+ def initialize(day: nil, month: nil, year: nil)
1650
+ @day = day
1651
+ @month = month
1652
+ @year = year
1653
+ end
1654
+ end
1655
+
1656
+ class Documents < Stripe::RequestParams
1657
+ class CompanyAuthorization < Stripe::RequestParams
1658
+ # 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`.
1659
+ attr_accessor :files
1660
+ # The format of the document. Currently supports `files` only.
1661
+ attr_accessor :type
1662
+
1663
+ def initialize(files: nil, type: nil)
1664
+ @files = files
1665
+ @type = type
1666
+ end
1667
+ end
1668
+
1669
+ class Passport < Stripe::RequestParams
1670
+ # 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`.
1671
+ attr_accessor :files
1672
+ # The format of the document. Currently supports `files` only.
1673
+ attr_accessor :type
1674
+
1675
+ def initialize(files: nil, type: nil)
1676
+ @files = files
1677
+ @type = type
1678
+ end
1679
+ end
1680
+
1681
+ class PrimaryVerification < Stripe::RequestParams
1682
+ class FrontBack < Stripe::RequestParams
1683
+ # 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.
1684
+ attr_accessor :back
1685
+ # 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.
1686
+ attr_accessor :front
1687
+
1688
+ def initialize(back: nil, front: nil)
1689
+ @back = back
1690
+ @front = front
1691
+ end
1692
+ end
1693
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1694
+ attr_accessor :front_back
1695
+ # The format of the verification document. Currently supports `front_back` only.
1696
+ attr_accessor :type
1697
+
1698
+ def initialize(front_back: nil, type: nil)
1699
+ @front_back = front_back
1700
+ @type = type
1701
+ end
1702
+ end
1703
+
1704
+ class SecondaryVerification < Stripe::RequestParams
1705
+ class FrontBack < Stripe::RequestParams
1706
+ # 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.
1707
+ attr_accessor :back
1708
+ # 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.
1709
+ attr_accessor :front
1710
+
1711
+ def initialize(back: nil, front: nil)
1712
+ @back = back
1713
+ @front = front
1714
+ end
1715
+ end
1716
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1717
+ attr_accessor :front_back
1718
+ # The format of the verification document. Currently supports `front_back` only.
1719
+ attr_accessor :type
1720
+
1721
+ def initialize(front_back: nil, type: nil)
1722
+ @front_back = front_back
1723
+ @type = type
1724
+ end
1725
+ end
1726
+
1727
+ class Visa < Stripe::RequestParams
1728
+ # 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`.
1729
+ attr_accessor :files
1730
+ # The format of the document. Currently supports `files` only.
1731
+ attr_accessor :type
1732
+
1733
+ def initialize(files: nil, type: nil)
1734
+ @files = files
1735
+ @type = type
1736
+ end
1737
+ end
1738
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
1739
+ attr_accessor :company_authorization
1740
+ # One or more documents showing the person’s passport page with photo and personal data.
1741
+ attr_accessor :passport
1742
+ # An identifying document showing the person's name, either a passport or local ID card.
1743
+ attr_accessor :primary_verification
1744
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
1745
+ attr_accessor :secondary_verification
1746
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
1747
+ attr_accessor :visa
1748
+
1749
+ def initialize(
1750
+ company_authorization: nil,
1751
+ passport: nil,
1752
+ primary_verification: nil,
1753
+ secondary_verification: nil,
1754
+ visa: nil
1755
+ )
1756
+ @company_authorization = company_authorization
1757
+ @passport = passport
1758
+ @primary_verification = primary_verification
1759
+ @secondary_verification = secondary_verification
1760
+ @visa = visa
1761
+ end
1762
+ end
1763
+
1764
+ class IdNumber < Stripe::RequestParams
1765
+ # The ID number type of an individual.
1766
+ attr_accessor :type
1767
+ # The value of the ID number.
1768
+ attr_accessor :value
1769
+
1770
+ def initialize(type: nil, value: nil)
1771
+ @type = type
1772
+ @value = value
1773
+ end
1774
+ end
1775
+
1776
+ class Relationship < Stripe::RequestParams
1777
+ # 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.
1778
+ attr_accessor :director
1779
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
1780
+ attr_accessor :executive
1781
+ # Whether the person is an owner of the account’s identity.
1782
+ attr_accessor :owner
1783
+ # The percent owned by the person of the account's legal entity.
1784
+ attr_accessor :percent_ownership
1785
+ # The person's title (e.g., CEO, Support Engineer).
1786
+ attr_accessor :title
1787
+
1788
+ def initialize(
1789
+ director: nil,
1790
+ executive: nil,
1791
+ owner: nil,
1792
+ percent_ownership: nil,
1793
+ title: nil
1794
+ )
1795
+ @director = director
1796
+ @executive = executive
1797
+ @owner = owner
1798
+ @percent_ownership = percent_ownership
1799
+ @title = title
1800
+ end
1801
+ end
1802
+
1803
+ class ScriptAddresses < Stripe::RequestParams
1804
+ class Kana < Stripe::RequestParams
1805
+ # City, district, suburb, town, or village.
1806
+ attr_accessor :city
1807
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1808
+ attr_accessor :country
1809
+ # Address line 1 (e.g., street, PO Box, or company name).
1810
+ attr_accessor :line1
1811
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1812
+ attr_accessor :line2
1813
+ # ZIP or postal code.
1814
+ attr_accessor :postal_code
1815
+ # State, county, province, or region.
1816
+ attr_accessor :state
1817
+ # Town or cho-me.
1818
+ attr_accessor :town
1819
+
1820
+ def initialize(
1821
+ city: nil,
1822
+ country: nil,
1823
+ line1: nil,
1824
+ line2: nil,
1825
+ postal_code: nil,
1826
+ state: nil,
1827
+ town: nil
1828
+ )
1829
+ @city = city
1830
+ @country = country
1831
+ @line1 = line1
1832
+ @line2 = line2
1833
+ @postal_code = postal_code
1834
+ @state = state
1835
+ @town = town
1836
+ end
1837
+ end
1838
+
1839
+ class Kanji < Stripe::RequestParams
1840
+ # City, district, suburb, town, or village.
1841
+ attr_accessor :city
1842
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1843
+ attr_accessor :country
1844
+ # Address line 1 (e.g., street, PO Box, or company name).
1845
+ attr_accessor :line1
1846
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1847
+ attr_accessor :line2
1848
+ # ZIP or postal code.
1849
+ attr_accessor :postal_code
1850
+ # State, county, province, or region.
1851
+ attr_accessor :state
1852
+ # Town or cho-me.
1853
+ attr_accessor :town
1854
+
1855
+ def initialize(
1856
+ city: nil,
1857
+ country: nil,
1858
+ line1: nil,
1859
+ line2: nil,
1860
+ postal_code: nil,
1861
+ state: nil,
1862
+ town: nil
1863
+ )
1864
+ @city = city
1865
+ @country = country
1866
+ @line1 = line1
1867
+ @line2 = line2
1868
+ @postal_code = postal_code
1869
+ @state = state
1870
+ @town = town
1871
+ end
1872
+ end
1873
+ # Kana Address.
1874
+ attr_accessor :kana
1875
+ # Kanji Address.
1876
+ attr_accessor :kanji
1877
+
1878
+ def initialize(kana: nil, kanji: nil)
1879
+ @kana = kana
1880
+ @kanji = kanji
1881
+ end
1882
+ end
1883
+
1884
+ class ScriptNames < Stripe::RequestParams
1885
+ class Kana < Stripe::RequestParams
1886
+ # The person's first or given name.
1887
+ attr_accessor :given_name
1888
+ # The person's last or family name.
1889
+ attr_accessor :surname
1890
+
1891
+ def initialize(given_name: nil, surname: nil)
1892
+ @given_name = given_name
1893
+ @surname = surname
1894
+ end
1895
+ end
1896
+
1897
+ class Kanji < Stripe::RequestParams
1898
+ # The person's first or given name.
1899
+ attr_accessor :given_name
1900
+ # The person's last or family name.
1901
+ attr_accessor :surname
1902
+
1903
+ def initialize(given_name: nil, surname: nil)
1904
+ @given_name = given_name
1905
+ @surname = surname
1906
+ end
1907
+ end
1908
+ # Persons name in kana script.
1909
+ attr_accessor :kana
1910
+ # Persons name in kanji script.
1911
+ attr_accessor :kanji
1912
+
1913
+ def initialize(kana: nil, kanji: nil)
1914
+ @kana = kana
1915
+ @kanji = kanji
1916
+ end
1917
+ end
1918
+ # Additional addresses associated with the individual.
1919
+ attr_accessor :additional_addresses
1920
+ # Additional names (e.g. aliases) associated with the individual.
1921
+ attr_accessor :additional_names
1922
+ # The individual's residential address.
1923
+ attr_accessor :address
1924
+ # The individual's date of birth.
1925
+ attr_accessor :date_of_birth
1926
+ # Documents that may be submitted to satisfy various informational requests.
1927
+ attr_accessor :documents
1928
+ # The individual's email address.
1929
+ attr_accessor :email
1930
+ # The individual's first name.
1931
+ attr_accessor :given_name
1932
+ # The identification numbers (e.g., SSN) associated with the individual.
1933
+ attr_accessor :id_numbers
1934
+ # The individual's gender (International regulations require either "male" or "female").
1935
+ attr_accessor :legal_gender
1936
+ # 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.
1937
+ attr_accessor :metadata
1938
+ # 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)).
1939
+ attr_accessor :nationalities
1940
+ # The individual's phone number.
1941
+ attr_accessor :phone
1942
+ # The individual's political exposure.
1943
+ attr_accessor :political_exposure
1944
+ # The relationship that this individual has with the account's identity.
1945
+ attr_accessor :relationship
1946
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
1947
+ attr_accessor :script_addresses
1948
+ # The individuals primary name in non latin script.
1949
+ attr_accessor :script_names
1950
+ # The individual's last name.
1951
+ attr_accessor :surname
1952
+
1953
+ def initialize(
1954
+ additional_addresses: nil,
1955
+ additional_names: nil,
1956
+ address: nil,
1957
+ date_of_birth: nil,
1958
+ documents: nil,
1959
+ email: nil,
1960
+ given_name: nil,
1961
+ id_numbers: nil,
1962
+ legal_gender: nil,
1963
+ metadata: nil,
1964
+ nationalities: nil,
1965
+ phone: nil,
1966
+ political_exposure: nil,
1967
+ relationship: nil,
1968
+ script_addresses: nil,
1969
+ script_names: nil,
1970
+ surname: nil
1971
+ )
1972
+ @additional_addresses = additional_addresses
1973
+ @additional_names = additional_names
1974
+ @address = address
1975
+ @date_of_birth = date_of_birth
1976
+ @documents = documents
1977
+ @email = email
1978
+ @given_name = given_name
1979
+ @id_numbers = id_numbers
1980
+ @legal_gender = legal_gender
1981
+ @metadata = metadata
1982
+ @nationalities = nationalities
1983
+ @phone = phone
1984
+ @political_exposure = political_exposure
1985
+ @relationship = relationship
1986
+ @script_addresses = script_addresses
1987
+ @script_names = script_names
1988
+ @surname = surname
1989
+ end
1990
+ end
1991
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
1992
+ attr_accessor :attestations
1993
+ # Information about the company or business.
1994
+ attr_accessor :business_details
1995
+ # 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.
1996
+ attr_accessor :country
1997
+ # The entity type.
1998
+ attr_accessor :entity_type
1999
+ # Information about the person represented by the account.
2000
+ attr_accessor :individual
2001
+
2002
+ def initialize(
2003
+ attestations: nil,
2004
+ business_details: nil,
2005
+ country: nil,
2006
+ entity_type: nil,
2007
+ individual: nil
2008
+ )
2009
+ @attestations = attestations
2010
+ @business_details = business_details
2011
+ @country = country
2012
+ @entity_type = entity_type
2013
+ @individual = individual
2014
+ end
2015
+ end
2016
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2017
+ attr_accessor :configuration
2018
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2019
+ attr_accessor :contact_email
2020
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2021
+ attr_accessor :dashboard
2022
+ # Default values to be used on Account Configurations.
2023
+ attr_accessor :defaults
2024
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2025
+ attr_accessor :display_name
2026
+ # Information about the company, individual, and business represented by the Account.
2027
+ attr_accessor :identity
2028
+ # Additional fields to include in the response.
2029
+ attr_accessor :include
2030
+ # 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.
2031
+ attr_accessor :metadata
2032
+
2033
+ def initialize(
2034
+ configuration: nil,
2035
+ contact_email: nil,
2036
+ dashboard: nil,
2037
+ defaults: nil,
2038
+ display_name: nil,
2039
+ identity: nil,
2040
+ include: nil,
2041
+ metadata: nil
2042
+ )
2043
+ @configuration = configuration
2044
+ @contact_email = contact_email
2045
+ @dashboard = dashboard
2046
+ @defaults = defaults
2047
+ @display_name = display_name
2048
+ @identity = identity
2049
+ @include = include
2050
+ @metadata = metadata
2051
+ end
2052
+ end
2053
+
2054
+ class RetrieveParams < Stripe::RequestParams
2055
+ # Additional fields to include in the response.
2056
+ attr_accessor :include
2057
+
2058
+ def initialize(include: nil)
2059
+ @include = include
2060
+ end
2061
+ end
2062
+
2063
+ class UpdateParams < Stripe::RequestParams
2064
+ class Configuration < Stripe::RequestParams
2065
+ class Customer < Stripe::RequestParams
2066
+ class AutomaticIndirectTax < Stripe::RequestParams
2067
+ # 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”.
2068
+ attr_accessor :exempt
2069
+ # A recent IP address of the customer used for tax reporting and tax location inference.
2070
+ attr_accessor :ip_address
2071
+ # 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.
2072
+ attr_accessor :location_source
2073
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to 'auto'.
2074
+ attr_accessor :validate_location
2075
+
2076
+ def initialize(
2077
+ exempt: nil,
2078
+ ip_address: nil,
2079
+ location_source: nil,
2080
+ validate_location: nil
2081
+ )
2082
+ @exempt = exempt
2083
+ @ip_address = ip_address
2084
+ @location_source = location_source
2085
+ @validate_location = validate_location
2086
+ end
2087
+ end
2088
+
2089
+ class Billing < Stripe::RequestParams
2090
+ class Invoice < Stripe::RequestParams
2091
+ class CustomField < Stripe::RequestParams
2092
+ # The name of the custom field. This may be up to 40 characters.
2093
+ attr_accessor :name
2094
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
2095
+ attr_accessor :value
2096
+
2097
+ def initialize(name: nil, value: nil)
2098
+ @name = name
2099
+ @value = value
2100
+ end
2101
+ end
2102
+
2103
+ class Rendering < Stripe::RequestParams
2104
+ # 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.
2105
+ attr_accessor :amount_tax_display
2106
+ # ID of the invoice rendering template to use for future invoices.
2107
+ attr_accessor :template
2108
+
2109
+ def initialize(amount_tax_display: nil, template: nil)
2110
+ @amount_tax_display = amount_tax_display
2111
+ @template = template
2112
+ end
2113
+ end
2114
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
2115
+ attr_accessor :custom_fields
2116
+ # Default footer to be displayed on invoices for this customer.
2117
+ attr_accessor :footer
2118
+ # The sequence to be used on the customer's next invoice. Defaults to 1.
2119
+ attr_accessor :next_sequence
2120
+ # The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
2121
+ attr_accessor :prefix
2122
+ # Default options for invoice PDF rendering for this customer.
2123
+ attr_accessor :rendering
2124
+
2125
+ def initialize(
2126
+ custom_fields: nil,
2127
+ footer: nil,
2128
+ next_sequence: nil,
2129
+ prefix: nil,
2130
+ rendering: nil
2131
+ )
2132
+ @custom_fields = custom_fields
2133
+ @footer = footer
2134
+ @next_sequence = next_sequence
2135
+ @prefix = prefix
2136
+ @rendering = rendering
2137
+ end
2138
+ end
2139
+ # 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.
2140
+ attr_accessor :default_payment_method
2141
+ # Default settings used on invoices for this customer.
2142
+ attr_accessor :invoice
2143
+
2144
+ def initialize(default_payment_method: nil, invoice: nil)
2145
+ @default_payment_method = default_payment_method
2146
+ @invoice = invoice
2147
+ end
2148
+ end
2149
+
2150
+ class Capabilities < Stripe::RequestParams
2151
+ class AutomaticIndirectTax < Stripe::RequestParams
2152
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2153
+ attr_accessor :requested
2154
+
2155
+ def initialize(requested: nil)
2156
+ @requested = requested
2157
+ end
2158
+ end
2159
+ # 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.
2160
+ attr_accessor :automatic_indirect_tax
2161
+
2162
+ def initialize(automatic_indirect_tax: nil)
2163
+ @automatic_indirect_tax = automatic_indirect_tax
2164
+ end
2165
+ end
2166
+
2167
+ class Shipping < Stripe::RequestParams
2168
+ class Address < Stripe::RequestParams
2169
+ # City, district, suburb, town, or village.
2170
+ attr_accessor :city
2171
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2172
+ attr_accessor :country
2173
+ # Address line 1 (e.g., street, PO Box, or company name).
2174
+ attr_accessor :line1
2175
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2176
+ attr_accessor :line2
2177
+ # ZIP or postal code.
2178
+ attr_accessor :postal_code
2179
+ # State, county, province, or region.
2180
+ attr_accessor :state
2181
+
2182
+ def initialize(
2183
+ city: nil,
2184
+ country: nil,
2185
+ line1: nil,
2186
+ line2: nil,
2187
+ postal_code: nil,
2188
+ state: nil
2189
+ )
2190
+ @city = city
2191
+ @country = country
2192
+ @line1 = line1
2193
+ @line2 = line2
2194
+ @postal_code = postal_code
2195
+ @state = state
2196
+ end
2197
+ end
2198
+ # Customer shipping address.
2199
+ attr_accessor :address
2200
+ # Customer name.
2201
+ attr_accessor :name
2202
+ # Customer phone (including extension).
2203
+ attr_accessor :phone
2204
+
2205
+ def initialize(address: nil, name: nil, phone: nil)
2206
+ @address = address
2207
+ @name = name
2208
+ @phone = phone
2209
+ end
2210
+ end
2211
+ # 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.
2212
+ attr_accessor :automatic_indirect_tax
2213
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
2214
+ attr_accessor :billing
2215
+ # Capabilities that have been requested on the Customer Configuration.
2216
+ attr_accessor :capabilities
2217
+ # The customer's shipping information. Appears on invoices emailed to this customer.
2218
+ attr_accessor :shipping
2219
+ # 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.
2220
+ attr_accessor :test_clock
2221
+
2222
+ def initialize(
2223
+ automatic_indirect_tax: nil,
2224
+ billing: nil,
2225
+ capabilities: nil,
2226
+ shipping: nil,
2227
+ test_clock: nil
2228
+ )
2229
+ @automatic_indirect_tax = automatic_indirect_tax
2230
+ @billing = billing
2231
+ @capabilities = capabilities
2232
+ @shipping = shipping
2233
+ @test_clock = test_clock
2234
+ end
2235
+ end
2236
+
2237
+ class Merchant < Stripe::RequestParams
2238
+ class BacsDebitPayments < Stripe::RequestParams
2239
+ # Display name for Bacs debit payments.
2240
+ attr_accessor :display_name
2241
+
2242
+ def initialize(display_name: nil)
2243
+ @display_name = display_name
2244
+ end
2245
+ end
2246
+
2247
+ class Branding < Stripe::RequestParams
2248
+ # 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.
2249
+ attr_accessor :icon
2250
+ # 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.
2251
+ attr_accessor :logo
2252
+ # A CSS hex color value representing the primary branding color for the merchant.
2253
+ attr_accessor :primary_color
2254
+ # A CSS hex color value representing the secondary branding color for the merchant.
2255
+ attr_accessor :secondary_color
2256
+
2257
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
2258
+ @icon = icon
2259
+ @logo = logo
2260
+ @primary_color = primary_color
2261
+ @secondary_color = secondary_color
2262
+ end
2263
+ end
2264
+
2265
+ class Capabilities < Stripe::RequestParams
2266
+ class AchDebitPayments < Stripe::RequestParams
2267
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2268
+ attr_accessor :requested
2269
+
2270
+ def initialize(requested: nil)
2271
+ @requested = requested
2272
+ end
2273
+ end
2274
+
2275
+ class AcssDebitPayments < Stripe::RequestParams
2276
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2277
+ attr_accessor :requested
2278
+
2279
+ def initialize(requested: nil)
2280
+ @requested = requested
2281
+ end
2282
+ end
2283
+
2284
+ class AffirmPayments < Stripe::RequestParams
2285
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2286
+ attr_accessor :requested
2287
+
2288
+ def initialize(requested: nil)
2289
+ @requested = requested
2290
+ end
2291
+ end
2292
+
2293
+ class AfterpayClearpayPayments < Stripe::RequestParams
2294
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2295
+ attr_accessor :requested
2296
+
2297
+ def initialize(requested: nil)
2298
+ @requested = requested
2299
+ end
2300
+ end
2301
+
2302
+ class AlmaPayments < Stripe::RequestParams
2303
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2304
+ attr_accessor :requested
2305
+
2306
+ def initialize(requested: nil)
2307
+ @requested = requested
2308
+ end
2309
+ end
2310
+
2311
+ class AmazonPayPayments < Stripe::RequestParams
2312
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2313
+ attr_accessor :requested
2314
+
2315
+ def initialize(requested: nil)
2316
+ @requested = requested
2317
+ end
2318
+ end
2319
+
2320
+ class AuBecsDebitPayments < Stripe::RequestParams
2321
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2322
+ attr_accessor :requested
2323
+
2324
+ def initialize(requested: nil)
2325
+ @requested = requested
2326
+ end
2327
+ end
2328
+
2329
+ class BacsDebitPayments < Stripe::RequestParams
2330
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2331
+ attr_accessor :requested
2332
+
2333
+ def initialize(requested: nil)
2334
+ @requested = requested
2335
+ end
2336
+ end
2337
+
2338
+ class BancontactPayments < Stripe::RequestParams
2339
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2340
+ attr_accessor :requested
2341
+
2342
+ def initialize(requested: nil)
2343
+ @requested = requested
2344
+ end
2345
+ end
2346
+
2347
+ class BlikPayments < Stripe::RequestParams
2348
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2349
+ attr_accessor :requested
2350
+
2351
+ def initialize(requested: nil)
2352
+ @requested = requested
2353
+ end
2354
+ end
2355
+
2356
+ class BoletoPayments < Stripe::RequestParams
2357
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2358
+ attr_accessor :requested
2359
+
2360
+ def initialize(requested: nil)
2361
+ @requested = requested
2362
+ end
2363
+ end
2364
+
2365
+ class CardPayments < Stripe::RequestParams
2366
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2367
+ attr_accessor :requested
2368
+
2369
+ def initialize(requested: nil)
2370
+ @requested = requested
2371
+ end
2372
+ end
2373
+
2374
+ class CartesBancairesPayments < Stripe::RequestParams
2375
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2376
+ attr_accessor :requested
2377
+
2378
+ def initialize(requested: nil)
2379
+ @requested = requested
2380
+ end
2381
+ end
2382
+
2383
+ class CashappPayments < Stripe::RequestParams
2384
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2385
+ attr_accessor :requested
2386
+
2387
+ def initialize(requested: nil)
2388
+ @requested = requested
2389
+ end
2390
+ end
2391
+
2392
+ class EpsPayments < Stripe::RequestParams
2393
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2394
+ attr_accessor :requested
2395
+
2396
+ def initialize(requested: nil)
2397
+ @requested = requested
2398
+ end
2399
+ end
2400
+
2401
+ class FpxPayments < Stripe::RequestParams
2402
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2403
+ attr_accessor :requested
2404
+
2405
+ def initialize(requested: nil)
2406
+ @requested = requested
2407
+ end
2408
+ end
2409
+
2410
+ class GbBankTransferPayments < Stripe::RequestParams
2411
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2412
+ attr_accessor :requested
2413
+
2414
+ def initialize(requested: nil)
2415
+ @requested = requested
2416
+ end
2417
+ end
2418
+
2419
+ class GrabpayPayments < Stripe::RequestParams
2420
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2421
+ attr_accessor :requested
2422
+
2423
+ def initialize(requested: nil)
2424
+ @requested = requested
2425
+ end
2426
+ end
2427
+
2428
+ class IdealPayments < Stripe::RequestParams
2429
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2430
+ attr_accessor :requested
2431
+
2432
+ def initialize(requested: nil)
2433
+ @requested = requested
2434
+ end
2435
+ end
2436
+
2437
+ class JcbPayments < Stripe::RequestParams
2438
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2439
+ attr_accessor :requested
2440
+
2441
+ def initialize(requested: nil)
2442
+ @requested = requested
2443
+ end
2444
+ end
2445
+
2446
+ class JpBankTransferPayments < Stripe::RequestParams
2447
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2448
+ attr_accessor :requested
2449
+
2450
+ def initialize(requested: nil)
2451
+ @requested = requested
2452
+ end
2453
+ end
2454
+
2455
+ class KakaoPayPayments < Stripe::RequestParams
2456
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2457
+ attr_accessor :requested
2458
+
2459
+ def initialize(requested: nil)
2460
+ @requested = requested
2461
+ end
2462
+ end
2463
+
2464
+ class KlarnaPayments < Stripe::RequestParams
2465
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2466
+ attr_accessor :requested
2467
+
2468
+ def initialize(requested: nil)
2469
+ @requested = requested
2470
+ end
2471
+ end
2472
+
2473
+ class KonbiniPayments < Stripe::RequestParams
2474
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2475
+ attr_accessor :requested
2476
+
2477
+ def initialize(requested: nil)
2478
+ @requested = requested
2479
+ end
2480
+ end
2481
+
2482
+ class KrCardPayments < Stripe::RequestParams
2483
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2484
+ attr_accessor :requested
2485
+
2486
+ def initialize(requested: nil)
2487
+ @requested = requested
2488
+ end
2489
+ end
2490
+
2491
+ class LinkPayments < Stripe::RequestParams
2492
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2493
+ attr_accessor :requested
2494
+
2495
+ def initialize(requested: nil)
2496
+ @requested = requested
2497
+ end
2498
+ end
2499
+
2500
+ class MobilepayPayments < Stripe::RequestParams
2501
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2502
+ attr_accessor :requested
2503
+
2504
+ def initialize(requested: nil)
2505
+ @requested = requested
2506
+ end
2507
+ end
2508
+
2509
+ class MultibancoPayments < Stripe::RequestParams
2510
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2511
+ attr_accessor :requested
2512
+
2513
+ def initialize(requested: nil)
2514
+ @requested = requested
2515
+ end
2516
+ end
2517
+
2518
+ class MxBankTransferPayments < Stripe::RequestParams
2519
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2520
+ attr_accessor :requested
2521
+
2522
+ def initialize(requested: nil)
2523
+ @requested = requested
2524
+ end
2525
+ end
2526
+
2527
+ class NaverPayPayments < Stripe::RequestParams
2528
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2529
+ attr_accessor :requested
2530
+
2531
+ def initialize(requested: nil)
2532
+ @requested = requested
2533
+ end
2534
+ end
2535
+
2536
+ class OxxoPayments < Stripe::RequestParams
2537
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2538
+ attr_accessor :requested
2539
+
2540
+ def initialize(requested: nil)
2541
+ @requested = requested
2542
+ end
2543
+ end
2544
+
2545
+ class P24Payments < Stripe::RequestParams
2546
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2547
+ attr_accessor :requested
2548
+
2549
+ def initialize(requested: nil)
2550
+ @requested = requested
2551
+ end
2552
+ end
2553
+
2554
+ class PayByBankPayments < Stripe::RequestParams
2555
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2556
+ attr_accessor :requested
2557
+
2558
+ def initialize(requested: nil)
2559
+ @requested = requested
2560
+ end
2561
+ end
2562
+
2563
+ class PaycoPayments < Stripe::RequestParams
2564
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2565
+ attr_accessor :requested
2566
+
2567
+ def initialize(requested: nil)
2568
+ @requested = requested
2569
+ end
2570
+ end
2571
+
2572
+ class PaynowPayments < Stripe::RequestParams
2573
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2574
+ attr_accessor :requested
2575
+
2576
+ def initialize(requested: nil)
2577
+ @requested = requested
2578
+ end
2579
+ end
2580
+
2581
+ class PromptpayPayments < Stripe::RequestParams
2582
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2583
+ attr_accessor :requested
2584
+
2585
+ def initialize(requested: nil)
2586
+ @requested = requested
2587
+ end
2588
+ end
2589
+
2590
+ class RevolutPayPayments < Stripe::RequestParams
2591
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2592
+ attr_accessor :requested
2593
+
2594
+ def initialize(requested: nil)
2595
+ @requested = requested
2596
+ end
2597
+ end
2598
+
2599
+ class SamsungPayPayments < Stripe::RequestParams
2600
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2601
+ attr_accessor :requested
2602
+
2603
+ def initialize(requested: nil)
2604
+ @requested = requested
2605
+ end
2606
+ end
2607
+
2608
+ class SepaBankTransferPayments < Stripe::RequestParams
2609
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2610
+ attr_accessor :requested
2611
+
2612
+ def initialize(requested: nil)
2613
+ @requested = requested
2614
+ end
2615
+ end
2616
+
2617
+ class SepaDebitPayments < Stripe::RequestParams
2618
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2619
+ attr_accessor :requested
2620
+
2621
+ def initialize(requested: nil)
2622
+ @requested = requested
2623
+ end
2624
+ end
2625
+
2626
+ class SwishPayments < Stripe::RequestParams
2627
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2628
+ attr_accessor :requested
2629
+
2630
+ def initialize(requested: nil)
2631
+ @requested = requested
2632
+ end
2633
+ end
2634
+
2635
+ class TwintPayments < Stripe::RequestParams
2636
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2637
+ attr_accessor :requested
2638
+
2639
+ def initialize(requested: nil)
2640
+ @requested = requested
2641
+ end
2642
+ end
2643
+
2644
+ class UsBankTransferPayments < Stripe::RequestParams
2645
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2646
+ attr_accessor :requested
2647
+
2648
+ def initialize(requested: nil)
2649
+ @requested = requested
2650
+ end
2651
+ end
2652
+
2653
+ class ZipPayments < Stripe::RequestParams
2654
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2655
+ attr_accessor :requested
2656
+
2657
+ def initialize(requested: nil)
2658
+ @requested = requested
2659
+ end
2660
+ end
2661
+ # Allow the merchant to process ACH debit payments.
2662
+ attr_accessor :ach_debit_payments
2663
+ # Allow the merchant to process ACSS debit payments.
2664
+ attr_accessor :acss_debit_payments
2665
+ # Allow the merchant to process Affirm payments.
2666
+ attr_accessor :affirm_payments
2667
+ # Allow the merchant to process Afterpay/Clearpay payments.
2668
+ attr_accessor :afterpay_clearpay_payments
2669
+ # Allow the merchant to process Alma payments.
2670
+ attr_accessor :alma_payments
2671
+ # Allow the merchant to process Amazon Pay payments.
2672
+ attr_accessor :amazon_pay_payments
2673
+ # Allow the merchant to process Australian BECS Direct Debit payments.
2674
+ attr_accessor :au_becs_debit_payments
2675
+ # Allow the merchant to process BACS Direct Debit payments.
2676
+ attr_accessor :bacs_debit_payments
2677
+ # Allow the merchant to process Bancontact payments.
2678
+ attr_accessor :bancontact_payments
2679
+ # Allow the merchant to process BLIK payments.
2680
+ attr_accessor :blik_payments
2681
+ # Allow the merchant to process Boleto payments.
2682
+ attr_accessor :boleto_payments
2683
+ # Allow the merchant to collect card payments.
2684
+ attr_accessor :card_payments
2685
+ # Allow the merchant to process Cartes Bancaires payments.
2686
+ attr_accessor :cartes_bancaires_payments
2687
+ # Allow the merchant to process Cash App payments.
2688
+ attr_accessor :cashapp_payments
2689
+ # Allow the merchant to process EPS payments.
2690
+ attr_accessor :eps_payments
2691
+ # Allow the merchant to process FPX payments.
2692
+ attr_accessor :fpx_payments
2693
+ # Allow the merchant to process UK bank transfer payments.
2694
+ attr_accessor :gb_bank_transfer_payments
2695
+ # Allow the merchant to process GrabPay payments.
2696
+ attr_accessor :grabpay_payments
2697
+ # Allow the merchant to process iDEAL payments.
2698
+ attr_accessor :ideal_payments
2699
+ # Allow the merchant to process JCB card payments.
2700
+ attr_accessor :jcb_payments
2701
+ # Allow the merchant to process Japanese bank transfer payments.
2702
+ attr_accessor :jp_bank_transfer_payments
2703
+ # Allow the merchant to process Kakao Pay payments.
2704
+ attr_accessor :kakao_pay_payments
2705
+ # Allow the merchant to process Klarna payments.
2706
+ attr_accessor :klarna_payments
2707
+ # Allow the merchant to process Konbini convenience store payments.
2708
+ attr_accessor :konbini_payments
2709
+ # Allow the merchant to process Korean card payments.
2710
+ attr_accessor :kr_card_payments
2711
+ # Allow the merchant to process Link payments.
2712
+ attr_accessor :link_payments
2713
+ # Allow the merchant to process MobilePay payments.
2714
+ attr_accessor :mobilepay_payments
2715
+ # Allow the merchant to process Multibanco payments.
2716
+ attr_accessor :multibanco_payments
2717
+ # Allow the merchant to process Mexican bank transfer payments.
2718
+ attr_accessor :mx_bank_transfer_payments
2719
+ # Allow the merchant to process Naver Pay payments.
2720
+ attr_accessor :naver_pay_payments
2721
+ # Allow the merchant to process OXXO payments.
2722
+ attr_accessor :oxxo_payments
2723
+ # Allow the merchant to process Przelewy24 (P24) payments.
2724
+ attr_accessor :p24_payments
2725
+ # Allow the merchant to process Pay by Bank payments.
2726
+ attr_accessor :pay_by_bank_payments
2727
+ # Allow the merchant to process PAYCO payments.
2728
+ attr_accessor :payco_payments
2729
+ # Allow the merchant to process PayNow payments.
2730
+ attr_accessor :paynow_payments
2731
+ # Allow the merchant to process PromptPay payments.
2732
+ attr_accessor :promptpay_payments
2733
+ # Allow the merchant to process Revolut Pay payments.
2734
+ attr_accessor :revolut_pay_payments
2735
+ # Allow the merchant to process Samsung Pay payments.
2736
+ attr_accessor :samsung_pay_payments
2737
+ # Allow the merchant to process SEPA bank transfer payments.
2738
+ attr_accessor :sepa_bank_transfer_payments
2739
+ # Allow the merchant to process SEPA Direct Debit payments.
2740
+ attr_accessor :sepa_debit_payments
2741
+ # Allow the merchant to process Swish payments.
2742
+ attr_accessor :swish_payments
2743
+ # Allow the merchant to process TWINT payments.
2744
+ attr_accessor :twint_payments
2745
+ # Allow the merchant to process US bank transfer payments.
2746
+ attr_accessor :us_bank_transfer_payments
2747
+ # Allow the merchant to process Zip payments.
2748
+ attr_accessor :zip_payments
2749
+
2750
+ def initialize(
2751
+ ach_debit_payments: nil,
2752
+ acss_debit_payments: nil,
2753
+ affirm_payments: nil,
2754
+ afterpay_clearpay_payments: nil,
2755
+ alma_payments: nil,
2756
+ amazon_pay_payments: nil,
2757
+ au_becs_debit_payments: nil,
2758
+ bacs_debit_payments: nil,
2759
+ bancontact_payments: nil,
2760
+ blik_payments: nil,
2761
+ boleto_payments: nil,
2762
+ card_payments: nil,
2763
+ cartes_bancaires_payments: nil,
2764
+ cashapp_payments: nil,
2765
+ eps_payments: nil,
2766
+ fpx_payments: nil,
2767
+ gb_bank_transfer_payments: nil,
2768
+ grabpay_payments: nil,
2769
+ ideal_payments: nil,
2770
+ jcb_payments: nil,
2771
+ jp_bank_transfer_payments: nil,
2772
+ kakao_pay_payments: nil,
2773
+ klarna_payments: nil,
2774
+ konbini_payments: nil,
2775
+ kr_card_payments: nil,
2776
+ link_payments: nil,
2777
+ mobilepay_payments: nil,
2778
+ multibanco_payments: nil,
2779
+ mx_bank_transfer_payments: nil,
2780
+ naver_pay_payments: nil,
2781
+ oxxo_payments: nil,
2782
+ p24_payments: nil,
2783
+ pay_by_bank_payments: nil,
2784
+ payco_payments: nil,
2785
+ paynow_payments: nil,
2786
+ promptpay_payments: nil,
2787
+ revolut_pay_payments: nil,
2788
+ samsung_pay_payments: nil,
2789
+ sepa_bank_transfer_payments: nil,
2790
+ sepa_debit_payments: nil,
2791
+ swish_payments: nil,
2792
+ twint_payments: nil,
2793
+ us_bank_transfer_payments: nil,
2794
+ zip_payments: nil
2795
+ )
2796
+ @ach_debit_payments = ach_debit_payments
2797
+ @acss_debit_payments = acss_debit_payments
2798
+ @affirm_payments = affirm_payments
2799
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
2800
+ @alma_payments = alma_payments
2801
+ @amazon_pay_payments = amazon_pay_payments
2802
+ @au_becs_debit_payments = au_becs_debit_payments
2803
+ @bacs_debit_payments = bacs_debit_payments
2804
+ @bancontact_payments = bancontact_payments
2805
+ @blik_payments = blik_payments
2806
+ @boleto_payments = boleto_payments
2807
+ @card_payments = card_payments
2808
+ @cartes_bancaires_payments = cartes_bancaires_payments
2809
+ @cashapp_payments = cashapp_payments
2810
+ @eps_payments = eps_payments
2811
+ @fpx_payments = fpx_payments
2812
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
2813
+ @grabpay_payments = grabpay_payments
2814
+ @ideal_payments = ideal_payments
2815
+ @jcb_payments = jcb_payments
2816
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
2817
+ @kakao_pay_payments = kakao_pay_payments
2818
+ @klarna_payments = klarna_payments
2819
+ @konbini_payments = konbini_payments
2820
+ @kr_card_payments = kr_card_payments
2821
+ @link_payments = link_payments
2822
+ @mobilepay_payments = mobilepay_payments
2823
+ @multibanco_payments = multibanco_payments
2824
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
2825
+ @naver_pay_payments = naver_pay_payments
2826
+ @oxxo_payments = oxxo_payments
2827
+ @p24_payments = p24_payments
2828
+ @pay_by_bank_payments = pay_by_bank_payments
2829
+ @payco_payments = payco_payments
2830
+ @paynow_payments = paynow_payments
2831
+ @promptpay_payments = promptpay_payments
2832
+ @revolut_pay_payments = revolut_pay_payments
2833
+ @samsung_pay_payments = samsung_pay_payments
2834
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
2835
+ @sepa_debit_payments = sepa_debit_payments
2836
+ @swish_payments = swish_payments
2837
+ @twint_payments = twint_payments
2838
+ @us_bank_transfer_payments = us_bank_transfer_payments
2839
+ @zip_payments = zip_payments
2840
+ end
2841
+ end
2842
+
2843
+ class CardPayments < Stripe::RequestParams
2844
+ class DeclineOn < Stripe::RequestParams
2845
+ # 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.
2846
+ attr_accessor :avs_failure
2847
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
2848
+ attr_accessor :cvc_failure
2849
+
2850
+ def initialize(avs_failure: nil, cvc_failure: nil)
2851
+ @avs_failure = avs_failure
2852
+ @cvc_failure = cvc_failure
2853
+ end
2854
+ end
2855
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
2856
+ attr_accessor :decline_on
2857
+
2858
+ def initialize(decline_on: nil)
2859
+ @decline_on = decline_on
2860
+ end
2861
+ end
2862
+
2863
+ class StatementDescriptor < Stripe::RequestParams
2864
+ # 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.
2865
+ attr_accessor :descriptor
2866
+ # 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.
2867
+ attr_accessor :prefix
2868
+
2869
+ def initialize(descriptor: nil, prefix: nil)
2870
+ @descriptor = descriptor
2871
+ @prefix = prefix
2872
+ end
2873
+ end
2874
+
2875
+ class Support < Stripe::RequestParams
2876
+ class Address < Stripe::RequestParams
2877
+ # City, district, suburb, town, or village.
2878
+ attr_accessor :city
2879
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2880
+ attr_accessor :country
2881
+ # Address line 1 (e.g., street, PO Box, or company name).
2882
+ attr_accessor :line1
2883
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2884
+ attr_accessor :line2
2885
+ # ZIP or postal code.
2886
+ attr_accessor :postal_code
2887
+ # State, county, province, or region.
2888
+ attr_accessor :state
2889
+ # Town or cho-me.
2890
+ attr_accessor :town
2891
+
2892
+ def initialize(
2893
+ city: nil,
2894
+ country: nil,
2895
+ line1: nil,
2896
+ line2: nil,
2897
+ postal_code: nil,
2898
+ state: nil,
2899
+ town: nil
2900
+ )
2901
+ @city = city
2902
+ @country = country
2903
+ @line1 = line1
2904
+ @line2 = line2
2905
+ @postal_code = postal_code
2906
+ @state = state
2907
+ @town = town
2908
+ end
2909
+ end
2910
+ # A publicly available mailing address for sending support issues to.
2911
+ attr_accessor :address
2912
+ # A publicly available email address for sending support issues to.
2913
+ attr_accessor :email
2914
+ # A publicly available phone number to call with support issues.
2915
+ attr_accessor :phone
2916
+ # A publicly available website for handling support issues.
2917
+ attr_accessor :url
2918
+
2919
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
2920
+ @address = address
2921
+ @email = email
2922
+ @phone = phone
2923
+ @url = url
2924
+ end
2925
+ end
2926
+ # Settings used for Bacs debit payments.
2927
+ attr_accessor :bacs_debit_payments
2928
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
2929
+ attr_accessor :branding
2930
+ # Capabilities to request on the Merchant Configuration.
2931
+ attr_accessor :capabilities
2932
+ # Card payments settings.
2933
+ attr_accessor :card_payments
2934
+ # The merchant category code for the merchant. MCCs are used to classify businesses based on the goods or services they provide.
2935
+ attr_accessor :mcc
2936
+ # Statement descriptor.
2937
+ attr_accessor :statement_descriptor
2938
+ # Publicly available contact information for sending support issues to.
2939
+ attr_accessor :support
2940
+
2941
+ def initialize(
2942
+ bacs_debit_payments: nil,
2943
+ branding: nil,
2944
+ capabilities: nil,
2945
+ card_payments: nil,
2946
+ mcc: nil,
2947
+ statement_descriptor: nil,
2948
+ support: nil
2949
+ )
2950
+ @bacs_debit_payments = bacs_debit_payments
2951
+ @branding = branding
2952
+ @capabilities = capabilities
2953
+ @card_payments = card_payments
2954
+ @mcc = mcc
2955
+ @statement_descriptor = statement_descriptor
2956
+ @support = support
2957
+ end
2958
+ end
2959
+
2960
+ class Recipient < Stripe::RequestParams
2961
+ class Capabilities < Stripe::RequestParams
2962
+ class BankAccounts < Stripe::RequestParams
2963
+ class Local < Stripe::RequestParams
2964
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2965
+ attr_accessor :requested
2966
+
2967
+ def initialize(requested: nil)
2968
+ @requested = requested
2969
+ end
2970
+ end
2971
+
2972
+ class Wire < Stripe::RequestParams
2973
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2974
+ attr_accessor :requested
2975
+
2976
+ def initialize(requested: nil)
2977
+ @requested = requested
2978
+ end
2979
+ end
2980
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
2981
+ attr_accessor :local
2982
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
2983
+ attr_accessor :wire
2984
+
2985
+ def initialize(local: nil, wire: nil)
2986
+ @local = local
2987
+ @wire = wire
2988
+ end
2989
+ end
2990
+
2991
+ class Cards < Stripe::RequestParams
2992
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
2993
+ attr_accessor :requested
2994
+
2995
+ def initialize(requested: nil)
2996
+ @requested = requested
2997
+ end
2998
+ end
2999
+
3000
+ class StripeBalance < Stripe::RequestParams
3001
+ class StripeTransfers < Stripe::RequestParams
3002
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
3003
+ attr_accessor :requested
3004
+
3005
+ def initialize(requested: nil)
3006
+ @requested = requested
3007
+ end
3008
+ end
3009
+ # Allows the account to receive /v1/transfers into their Stripe Balance (/v1/balance).
3010
+ attr_accessor :stripe_transfers
3011
+
3012
+ def initialize(stripe_transfers: nil)
3013
+ @stripe_transfers = stripe_transfers
3014
+ end
3015
+ end
3016
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
3017
+ attr_accessor :bank_accounts
3018
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
3019
+ attr_accessor :cards
3020
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
3021
+ attr_accessor :stripe_balance
3022
+
3023
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
3024
+ @bank_accounts = bank_accounts
3025
+ @cards = cards
3026
+ @stripe_balance = stripe_balance
3027
+ end
3028
+ end
3029
+ # Capabilities to request on the Recipient Configuration.
3030
+ attr_accessor :capabilities
3031
+ # 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.
3032
+ attr_accessor :default_outbound_destination
3033
+
3034
+ def initialize(capabilities: nil, default_outbound_destination: nil)
3035
+ @capabilities = capabilities
3036
+ @default_outbound_destination = default_outbound_destination
3037
+ end
3038
+ end
3039
+ # The Customer Configuration allows the Account to be charged.
3040
+ attr_accessor :customer
3041
+ # 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.
3042
+ attr_accessor :merchant
3043
+ # The Recipient Configuration allows the Account to receive funds.
3044
+ attr_accessor :recipient
3045
+
3046
+ def initialize(customer: nil, merchant: nil, recipient: nil)
3047
+ @customer = customer
3048
+ @merchant = merchant
3049
+ @recipient = recipient
3050
+ end
3051
+ end
3052
+
3053
+ class Defaults < Stripe::RequestParams
3054
+ class Responsibilities < Stripe::RequestParams
3055
+ # A value indicating the party responsible for collecting fees from this account.
3056
+ attr_accessor :fees_collector
3057
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
3058
+ attr_accessor :losses_collector
3059
+
3060
+ def initialize(fees_collector: nil, losses_collector: nil)
3061
+ @fees_collector = fees_collector
3062
+ @losses_collector = losses_collector
3063
+ end
3064
+ end
3065
+ # 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).
3066
+ attr_accessor :currency
3067
+ # The Account's preferred locales (languages), ordered by preference.
3068
+ attr_accessor :locales
3069
+ # Default responsibilities held by either Stripe or the platform.
3070
+ attr_accessor :responsibilities
3071
+
3072
+ def initialize(currency: nil, locales: nil, responsibilities: nil)
3073
+ @currency = currency
3074
+ @locales = locales
3075
+ @responsibilities = responsibilities
3076
+ end
3077
+ end
3078
+
3079
+ class Identity < Stripe::RequestParams
3080
+ class Attestations < Stripe::RequestParams
3081
+ class DirectorshipDeclaration < Stripe::RequestParams
3082
+ # 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.
3083
+ attr_accessor :date
3084
+ # The IP address from which the director attestation was made.
3085
+ attr_accessor :ip
3086
+ # The user agent of the browser from which the director attestation was made.
3087
+ attr_accessor :user_agent
3088
+
3089
+ def initialize(date: nil, ip: nil, user_agent: nil)
3090
+ @date = date
3091
+ @ip = ip
3092
+ @user_agent = user_agent
3093
+ end
3094
+ end
3095
+
3096
+ class OwnershipDeclaration < Stripe::RequestParams
3097
+ # 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.
3098
+ attr_accessor :date
3099
+ # The IP address from which the beneficial owner attestation was made.
3100
+ attr_accessor :ip
3101
+ # The user agent of the browser from which the beneficial owner attestation was made.
3102
+ attr_accessor :user_agent
3103
+
3104
+ def initialize(date: nil, ip: nil, user_agent: nil)
3105
+ @date = date
3106
+ @ip = ip
3107
+ @user_agent = user_agent
3108
+ end
3109
+ end
3110
+
3111
+ class PersonsProvided < Stripe::RequestParams
3112
+ # 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).
3113
+ attr_accessor :directors
3114
+ # 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).
3115
+ attr_accessor :executives
3116
+ # 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).
3117
+ attr_accessor :owners
3118
+ # Reason for why the company is exempt from providing ownership information.
3119
+ attr_accessor :ownership_exemption_reason
3120
+
3121
+ def initialize(
3122
+ directors: nil,
3123
+ executives: nil,
3124
+ owners: nil,
3125
+ ownership_exemption_reason: nil
3126
+ )
3127
+ @directors = directors
3128
+ @executives = executives
3129
+ @owners = owners
3130
+ @ownership_exemption_reason = ownership_exemption_reason
3131
+ end
3132
+ end
3133
+
3134
+ class TermsOfService < Stripe::RequestParams
3135
+ class Account < Stripe::RequestParams
3136
+ # 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.
3137
+ attr_accessor :date
3138
+ # The IP address from which the Account's representative accepted the terms of service.
3139
+ attr_accessor :ip
3140
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
3141
+ attr_accessor :user_agent
3142
+
3143
+ def initialize(date: nil, ip: nil, user_agent: nil)
3144
+ @date = date
3145
+ @ip = ip
3146
+ @user_agent = user_agent
3147
+ end
3148
+ end
3149
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
3150
+ attr_accessor :account
3151
+
3152
+ def initialize(account: nil)
3153
+ @account = account
3154
+ end
3155
+ end
3156
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
3157
+ attr_accessor :directorship_declaration
3158
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
3159
+ attr_accessor :ownership_declaration
3160
+ # Attestation that all Persons with a specific Relationship value have been provided.
3161
+ attr_accessor :persons_provided
3162
+ # Attestations of accepted terms of service agreements.
3163
+ attr_accessor :terms_of_service
3164
+
3165
+ def initialize(
3166
+ directorship_declaration: nil,
3167
+ ownership_declaration: nil,
3168
+ persons_provided: nil,
3169
+ terms_of_service: nil
3170
+ )
3171
+ @directorship_declaration = directorship_declaration
3172
+ @ownership_declaration = ownership_declaration
3173
+ @persons_provided = persons_provided
3174
+ @terms_of_service = terms_of_service
3175
+ end
3176
+ end
3177
+
3178
+ class BusinessDetails < Stripe::RequestParams
3179
+ class Address < Stripe::RequestParams
3180
+ # City, district, suburb, town, or village.
3181
+ attr_accessor :city
3182
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3183
+ attr_accessor :country
3184
+ # Address line 1 (e.g., street, PO Box, or company name).
3185
+ attr_accessor :line1
3186
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3187
+ attr_accessor :line2
3188
+ # ZIP or postal code.
3189
+ attr_accessor :postal_code
3190
+ # State, county, province, or region.
3191
+ attr_accessor :state
3192
+ # Town or cho-me.
3193
+ attr_accessor :town
3194
+
3195
+ def initialize(
3196
+ city: nil,
3197
+ country: nil,
3198
+ line1: nil,
3199
+ line2: nil,
3200
+ postal_code: nil,
3201
+ state: nil,
3202
+ town: nil
3203
+ )
3204
+ @city = city
3205
+ @country = country
3206
+ @line1 = line1
3207
+ @line2 = line2
3208
+ @postal_code = postal_code
3209
+ @state = state
3210
+ @town = town
3211
+ end
3212
+ end
3213
+
3214
+ class AnnualRevenue < Stripe::RequestParams
3215
+ # A non-negative integer representing the amount in the smallest currency unit.
3216
+ attr_accessor :amount
3217
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
3218
+ attr_accessor :fiscal_year_end
3219
+
3220
+ def initialize(amount: nil, fiscal_year_end: nil)
3221
+ @amount = amount
3222
+ @fiscal_year_end = fiscal_year_end
3223
+ end
3224
+ end
3225
+
3226
+ class Documents < Stripe::RequestParams
3227
+ class BankAccountOwnershipVerification < Stripe::RequestParams
3228
+ # 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`.
3229
+ attr_accessor :files
3230
+ # The format of the document. Currently supports `files` only.
3231
+ attr_accessor :type
3232
+
3233
+ def initialize(files: nil, type: nil)
3234
+ @files = files
3235
+ @type = type
3236
+ end
3237
+ end
3238
+
3239
+ class CompanyLicense < Stripe::RequestParams
3240
+ # 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`.
3241
+ attr_accessor :files
3242
+ # The format of the document. Currently supports `files` only.
3243
+ attr_accessor :type
3244
+
3245
+ def initialize(files: nil, type: nil)
3246
+ @files = files
3247
+ @type = type
3248
+ end
3249
+ end
3250
+
3251
+ class CompanyMemorandumOfAssociation < Stripe::RequestParams
3252
+ # 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`.
3253
+ attr_accessor :files
3254
+ # The format of the document. Currently supports `files` only.
3255
+ attr_accessor :type
3256
+
3257
+ def initialize(files: nil, type: nil)
3258
+ @files = files
3259
+ @type = type
3260
+ end
3261
+ end
3262
+
3263
+ class CompanyMinisterialDecree < Stripe::RequestParams
3264
+ # 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`.
3265
+ attr_accessor :files
3266
+ # The format of the document. Currently supports `files` only.
3267
+ attr_accessor :type
3268
+
3269
+ def initialize(files: nil, type: nil)
3270
+ @files = files
3271
+ @type = type
3272
+ end
3273
+ end
3274
+
3275
+ class CompanyRegistrationVerification < Stripe::RequestParams
3276
+ # 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`.
3277
+ attr_accessor :files
3278
+ # The format of the document. Currently supports `files` only.
3279
+ attr_accessor :type
3280
+
3281
+ def initialize(files: nil, type: nil)
3282
+ @files = files
3283
+ @type = type
3284
+ end
3285
+ end
3286
+
3287
+ class CompanyTaxIdVerification < Stripe::RequestParams
3288
+ # 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`.
3289
+ attr_accessor :files
3290
+ # The format of the document. Currently supports `files` only.
3291
+ attr_accessor :type
3292
+
3293
+ def initialize(files: nil, type: nil)
3294
+ @files = files
3295
+ @type = type
3296
+ end
3297
+ end
3298
+
3299
+ class PrimaryVerification < Stripe::RequestParams
3300
+ class FrontBack < Stripe::RequestParams
3301
+ # 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.
3302
+ attr_accessor :back
3303
+ # 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.
3304
+ attr_accessor :front
3305
+
3306
+ def initialize(back: nil, front: nil)
3307
+ @back = back
3308
+ @front = front
3309
+ end
3310
+ end
3311
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3312
+ attr_accessor :front_back
3313
+ # The format of the verification document. Currently supports `front_back` only.
3314
+ attr_accessor :type
3315
+
3316
+ def initialize(front_back: nil, type: nil)
3317
+ @front_back = front_back
3318
+ @type = type
3319
+ end
3320
+ end
3321
+
3322
+ class ProofOfAddress < Stripe::RequestParams
3323
+ # 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`.
3324
+ attr_accessor :files
3325
+ # The format of the document. Currently supports `files` only.
3326
+ attr_accessor :type
3327
+
3328
+ def initialize(files: nil, type: nil)
3329
+ @files = files
3330
+ @type = type
3331
+ end
3332
+ end
3333
+
3334
+ class ProofOfRegistration < Stripe::RequestParams
3335
+ # 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`.
3336
+ attr_accessor :files
3337
+ # The format of the document. Currently supports `files` only.
3338
+ attr_accessor :type
3339
+
3340
+ def initialize(files: nil, type: nil)
3341
+ @files = files
3342
+ @type = type
3343
+ end
3344
+ end
3345
+
3346
+ class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams
3347
+ # 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`.
3348
+ attr_accessor :files
3349
+ # The format of the document. Currently supports `files` only.
3350
+ attr_accessor :type
3351
+
3352
+ def initialize(files: nil, type: nil)
3353
+ @files = files
3354
+ @type = type
3355
+ end
3356
+ end
3357
+ # 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.
3358
+ attr_accessor :bank_account_ownership_verification
3359
+ # One or more documents that demonstrate proof of a company’s license to operate.
3360
+ attr_accessor :company_license
3361
+ # One or more documents showing the company’s Memorandum of Association.
3362
+ attr_accessor :company_memorandum_of_association
3363
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
3364
+ attr_accessor :company_ministerial_decree
3365
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
3366
+ attr_accessor :company_registration_verification
3367
+ # One or more documents that demonstrate proof of a company’s tax ID.
3368
+ attr_accessor :company_tax_id_verification
3369
+ # A document verifying the business.
3370
+ attr_accessor :primary_verification
3371
+ # One or more documents that demonstrate proof of address.
3372
+ attr_accessor :proof_of_address
3373
+ # One or more documents showing the company’s proof of registration with the national business registry.
3374
+ attr_accessor :proof_of_registration
3375
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
3376
+ attr_accessor :proof_of_ultimate_beneficial_ownership
3377
+
3378
+ def initialize(
3379
+ bank_account_ownership_verification: nil,
3380
+ company_license: nil,
3381
+ company_memorandum_of_association: nil,
3382
+ company_ministerial_decree: nil,
3383
+ company_registration_verification: nil,
3384
+ company_tax_id_verification: nil,
3385
+ primary_verification: nil,
3386
+ proof_of_address: nil,
3387
+ proof_of_registration: nil,
3388
+ proof_of_ultimate_beneficial_ownership: nil
3389
+ )
3390
+ @bank_account_ownership_verification = bank_account_ownership_verification
3391
+ @company_license = company_license
3392
+ @company_memorandum_of_association = company_memorandum_of_association
3393
+ @company_ministerial_decree = company_ministerial_decree
3394
+ @company_registration_verification = company_registration_verification
3395
+ @company_tax_id_verification = company_tax_id_verification
3396
+ @primary_verification = primary_verification
3397
+ @proof_of_address = proof_of_address
3398
+ @proof_of_registration = proof_of_registration
3399
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
3400
+ end
3401
+ end
3402
+
3403
+ class IdNumber < Stripe::RequestParams
3404
+ # The registrar of the ID number (Only valid for DE ID number types).
3405
+ attr_accessor :registrar
3406
+ # Open Enum. The ID number type of a business entity.
3407
+ attr_accessor :type
3408
+ # The value of the ID number.
3409
+ attr_accessor :value
3410
+
3411
+ def initialize(registrar: nil, type: nil, value: nil)
3412
+ @registrar = registrar
3413
+ @type = type
3414
+ @value = value
3415
+ end
3416
+ end
3417
+
3418
+ class MonthlyEstimatedRevenue < Stripe::RequestParams
3419
+ # A non-negative integer representing the amount in the smallest currency unit.
3420
+ attr_accessor :amount
3421
+
3422
+ def initialize(amount: nil)
3423
+ @amount = amount
3424
+ end
3425
+ end
3426
+
3427
+ class ScriptAddresses < Stripe::RequestParams
3428
+ class Kana < Stripe::RequestParams
3429
+ # City, district, suburb, town, or village.
3430
+ attr_accessor :city
3431
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3432
+ attr_accessor :country
3433
+ # Address line 1 (e.g., street, PO Box, or company name).
3434
+ attr_accessor :line1
3435
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3436
+ attr_accessor :line2
3437
+ # ZIP or postal code.
3438
+ attr_accessor :postal_code
3439
+ # State, county, province, or region.
3440
+ attr_accessor :state
3441
+ # Town or cho-me.
3442
+ attr_accessor :town
3443
+
3444
+ def initialize(
3445
+ city: nil,
3446
+ country: nil,
3447
+ line1: nil,
3448
+ line2: nil,
3449
+ postal_code: nil,
3450
+ state: nil,
3451
+ town: nil
3452
+ )
3453
+ @city = city
3454
+ @country = country
3455
+ @line1 = line1
3456
+ @line2 = line2
3457
+ @postal_code = postal_code
3458
+ @state = state
3459
+ @town = town
3460
+ end
3461
+ end
3462
+
3463
+ class Kanji < Stripe::RequestParams
3464
+ # City, district, suburb, town, or village.
3465
+ attr_accessor :city
3466
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3467
+ attr_accessor :country
3468
+ # Address line 1 (e.g., street, PO Box, or company name).
3469
+ attr_accessor :line1
3470
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3471
+ attr_accessor :line2
3472
+ # ZIP or postal code.
3473
+ attr_accessor :postal_code
3474
+ # State, county, province, or region.
3475
+ attr_accessor :state
3476
+ # Town or cho-me.
3477
+ attr_accessor :town
3478
+
3479
+ def initialize(
3480
+ city: nil,
3481
+ country: nil,
3482
+ line1: nil,
3483
+ line2: nil,
3484
+ postal_code: nil,
3485
+ state: nil,
3486
+ town: nil
3487
+ )
3488
+ @city = city
3489
+ @country = country
3490
+ @line1 = line1
3491
+ @line2 = line2
3492
+ @postal_code = postal_code
3493
+ @state = state
3494
+ @town = town
3495
+ end
3496
+ end
3497
+ # Kana Address.
3498
+ attr_accessor :kana
3499
+ # Kanji Address.
3500
+ attr_accessor :kanji
3501
+
3502
+ def initialize(kana: nil, kanji: nil)
3503
+ @kana = kana
3504
+ @kanji = kanji
3505
+ end
3506
+ end
3507
+
3508
+ class ScriptNames < Stripe::RequestParams
3509
+ class Kana < Stripe::RequestParams
3510
+ # Registered name of the business.
3511
+ attr_accessor :registered_name
3512
+
3513
+ def initialize(registered_name: nil)
3514
+ @registered_name = registered_name
3515
+ end
3516
+ end
3517
+
3518
+ class Kanji < Stripe::RequestParams
3519
+ # Registered name of the business.
3520
+ attr_accessor :registered_name
3521
+
3522
+ def initialize(registered_name: nil)
3523
+ @registered_name = registered_name
3524
+ end
3525
+ end
3526
+ # Kana name.
3527
+ attr_accessor :kana
3528
+ # Kanji name.
3529
+ attr_accessor :kanji
3530
+
3531
+ def initialize(kana: nil, kanji: nil)
3532
+ @kana = kana
3533
+ @kanji = kanji
3534
+ end
3535
+ end
3536
+ # The business registration address of the business entity.
3537
+ attr_accessor :address
3538
+ # The business gross annual revenue for its preceding fiscal year.
3539
+ attr_accessor :annual_revenue
3540
+ # A document verifying the business.
3541
+ attr_accessor :documents
3542
+ # The name which is used by the business.
3543
+ attr_accessor :doing_business_as
3544
+ # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
3545
+ attr_accessor :estimated_worker_count
3546
+ # The ID numbers of a business entity.
3547
+ attr_accessor :id_numbers
3548
+ # An estimate of the monthly revenue of the business.
3549
+ attr_accessor :monthly_estimated_revenue
3550
+ # The phone number of the Business Entity.
3551
+ attr_accessor :phone
3552
+ # Internal-only description of the product sold or service provided by the business. It’s used by Stripe for risk and underwriting purposes.
3553
+ attr_accessor :product_description
3554
+ # The business legal name.
3555
+ attr_accessor :registered_name
3556
+ # The business registration address of the business entity in non latin script.
3557
+ attr_accessor :script_addresses
3558
+ # The business legal name in non latin script.
3559
+ attr_accessor :script_names
3560
+ # The category identifying the legal structure of the business.
3561
+ attr_accessor :structure
3562
+ # The business's publicly available website.
3563
+ attr_accessor :url
3564
+
3565
+ def initialize(
3566
+ address: nil,
3567
+ annual_revenue: nil,
3568
+ documents: nil,
3569
+ doing_business_as: nil,
3570
+ estimated_worker_count: nil,
3571
+ id_numbers: nil,
3572
+ monthly_estimated_revenue: nil,
3573
+ phone: nil,
3574
+ product_description: nil,
3575
+ registered_name: nil,
3576
+ script_addresses: nil,
3577
+ script_names: nil,
3578
+ structure: nil,
3579
+ url: nil
3580
+ )
3581
+ @address = address
3582
+ @annual_revenue = annual_revenue
3583
+ @documents = documents
3584
+ @doing_business_as = doing_business_as
3585
+ @estimated_worker_count = estimated_worker_count
3586
+ @id_numbers = id_numbers
3587
+ @monthly_estimated_revenue = monthly_estimated_revenue
3588
+ @phone = phone
3589
+ @product_description = product_description
3590
+ @registered_name = registered_name
3591
+ @script_addresses = script_addresses
3592
+ @script_names = script_names
3593
+ @structure = structure
3594
+ @url = url
3595
+ end
3596
+ end
3597
+
3598
+ class Individual < Stripe::RequestParams
3599
+ class AdditionalAddress < Stripe::RequestParams
3600
+ # City, district, suburb, town, or village.
3601
+ attr_accessor :city
3602
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3603
+ attr_accessor :country
3604
+ # Address line 1 (e.g., street, PO Box, or company name).
3605
+ attr_accessor :line1
3606
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3607
+ attr_accessor :line2
3608
+ # ZIP or postal code.
3609
+ attr_accessor :postal_code
3610
+ # Purpose of additional address.
3611
+ attr_accessor :purpose
3612
+ # State, county, province, or region.
3613
+ attr_accessor :state
3614
+ # Town or cho-me.
3615
+ attr_accessor :town
3616
+
3617
+ def initialize(
3618
+ city: nil,
3619
+ country: nil,
3620
+ line1: nil,
3621
+ line2: nil,
3622
+ postal_code: nil,
3623
+ purpose: nil,
3624
+ state: nil,
3625
+ town: nil
3626
+ )
3627
+ @city = city
3628
+ @country = country
3629
+ @line1 = line1
3630
+ @line2 = line2
3631
+ @postal_code = postal_code
3632
+ @purpose = purpose
3633
+ @state = state
3634
+ @town = town
3635
+ end
3636
+ end
3637
+
3638
+ class AdditionalName < Stripe::RequestParams
3639
+ # The person's full name.
3640
+ attr_accessor :full_name
3641
+ # The person's first or given name.
3642
+ attr_accessor :given_name
3643
+ # The purpose or type of the additional name.
3644
+ attr_accessor :purpose
3645
+ # The person's last or family name.
3646
+ attr_accessor :surname
3647
+
3648
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
3649
+ @full_name = full_name
3650
+ @given_name = given_name
3651
+ @purpose = purpose
3652
+ @surname = surname
3653
+ end
3654
+ end
3655
+
3656
+ class Address < Stripe::RequestParams
3657
+ # City, district, suburb, town, or village.
3658
+ attr_accessor :city
3659
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3660
+ attr_accessor :country
3661
+ # Address line 1 (e.g., street, PO Box, or company name).
3662
+ attr_accessor :line1
3663
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3664
+ attr_accessor :line2
3665
+ # ZIP or postal code.
3666
+ attr_accessor :postal_code
3667
+ # State, county, province, or region.
3668
+ attr_accessor :state
3669
+ # Town or cho-me.
3670
+ attr_accessor :town
3671
+
3672
+ def initialize(
3673
+ city: nil,
3674
+ country: nil,
3675
+ line1: nil,
3676
+ line2: nil,
3677
+ postal_code: nil,
3678
+ state: nil,
3679
+ town: nil
3680
+ )
3681
+ @city = city
3682
+ @country = country
3683
+ @line1 = line1
3684
+ @line2 = line2
3685
+ @postal_code = postal_code
3686
+ @state = state
3687
+ @town = town
3688
+ end
3689
+ end
3690
+
3691
+ class DateOfBirth < Stripe::RequestParams
3692
+ # The day of the birth.
3693
+ attr_accessor :day
3694
+ # The month of birth.
3695
+ attr_accessor :month
3696
+ # The year of birth.
3697
+ attr_accessor :year
3698
+
3699
+ def initialize(day: nil, month: nil, year: nil)
3700
+ @day = day
3701
+ @month = month
3702
+ @year = year
3703
+ end
3704
+ end
3705
+
3706
+ class Documents < Stripe::RequestParams
3707
+ class CompanyAuthorization < Stripe::RequestParams
3708
+ # 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`.
3709
+ attr_accessor :files
3710
+ # The format of the document. Currently supports `files` only.
3711
+ attr_accessor :type
3712
+
3713
+ def initialize(files: nil, type: nil)
3714
+ @files = files
3715
+ @type = type
3716
+ end
3717
+ end
3718
+
3719
+ class Passport < Stripe::RequestParams
3720
+ # 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`.
3721
+ attr_accessor :files
3722
+ # The format of the document. Currently supports `files` only.
3723
+ attr_accessor :type
3724
+
3725
+ def initialize(files: nil, type: nil)
3726
+ @files = files
3727
+ @type = type
3728
+ end
3729
+ end
3730
+
3731
+ class PrimaryVerification < Stripe::RequestParams
3732
+ class FrontBack < Stripe::RequestParams
3733
+ # 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.
3734
+ attr_accessor :back
3735
+ # 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.
3736
+ attr_accessor :front
3737
+
3738
+ def initialize(back: nil, front: nil)
3739
+ @back = back
3740
+ @front = front
3741
+ end
3742
+ end
3743
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3744
+ attr_accessor :front_back
3745
+ # The format of the verification document. Currently supports `front_back` only.
3746
+ attr_accessor :type
3747
+
3748
+ def initialize(front_back: nil, type: nil)
3749
+ @front_back = front_back
3750
+ @type = type
3751
+ end
3752
+ end
3753
+
3754
+ class SecondaryVerification < Stripe::RequestParams
3755
+ class FrontBack < Stripe::RequestParams
3756
+ # 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.
3757
+ attr_accessor :back
3758
+ # 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.
3759
+ attr_accessor :front
3760
+
3761
+ def initialize(back: nil, front: nil)
3762
+ @back = back
3763
+ @front = front
3764
+ end
3765
+ end
3766
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
3767
+ attr_accessor :front_back
3768
+ # The format of the verification document. Currently supports `front_back` only.
3769
+ attr_accessor :type
3770
+
3771
+ def initialize(front_back: nil, type: nil)
3772
+ @front_back = front_back
3773
+ @type = type
3774
+ end
3775
+ end
3776
+
3777
+ class Visa < Stripe::RequestParams
3778
+ # 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`.
3779
+ attr_accessor :files
3780
+ # The format of the document. Currently supports `files` only.
3781
+ attr_accessor :type
3782
+
3783
+ def initialize(files: nil, type: nil)
3784
+ @files = files
3785
+ @type = type
3786
+ end
3787
+ end
3788
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
3789
+ attr_accessor :company_authorization
3790
+ # One or more documents showing the person’s passport page with photo and personal data.
3791
+ attr_accessor :passport
3792
+ # An identifying document showing the person's name, either a passport or local ID card.
3793
+ attr_accessor :primary_verification
3794
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
3795
+ attr_accessor :secondary_verification
3796
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
3797
+ attr_accessor :visa
3798
+
3799
+ def initialize(
3800
+ company_authorization: nil,
3801
+ passport: nil,
3802
+ primary_verification: nil,
3803
+ secondary_verification: nil,
3804
+ visa: nil
3805
+ )
3806
+ @company_authorization = company_authorization
3807
+ @passport = passport
3808
+ @primary_verification = primary_verification
3809
+ @secondary_verification = secondary_verification
3810
+ @visa = visa
3811
+ end
3812
+ end
3813
+
3814
+ class IdNumber < Stripe::RequestParams
3815
+ # The ID number type of an individual.
3816
+ attr_accessor :type
3817
+ # The value of the ID number.
3818
+ attr_accessor :value
3819
+
3820
+ def initialize(type: nil, value: nil)
3821
+ @type = type
3822
+ @value = value
3823
+ end
3824
+ end
3825
+
3826
+ class Relationship < Stripe::RequestParams
3827
+ # 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.
3828
+ attr_accessor :director
3829
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
3830
+ attr_accessor :executive
3831
+ # Whether the person is an owner of the account’s identity.
3832
+ attr_accessor :owner
3833
+ # The percent owned by the person of the account's legal entity.
3834
+ attr_accessor :percent_ownership
3835
+ # The person's title (e.g., CEO, Support Engineer).
3836
+ attr_accessor :title
3837
+
3838
+ def initialize(
3839
+ director: nil,
3840
+ executive: nil,
3841
+ owner: nil,
3842
+ percent_ownership: nil,
3843
+ title: nil
3844
+ )
3845
+ @director = director
3846
+ @executive = executive
3847
+ @owner = owner
3848
+ @percent_ownership = percent_ownership
3849
+ @title = title
3850
+ end
3851
+ end
3852
+
3853
+ class ScriptAddresses < Stripe::RequestParams
3854
+ class Kana < Stripe::RequestParams
3855
+ # City, district, suburb, town, or village.
3856
+ attr_accessor :city
3857
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3858
+ attr_accessor :country
3859
+ # Address line 1 (e.g., street, PO Box, or company name).
3860
+ attr_accessor :line1
3861
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3862
+ attr_accessor :line2
3863
+ # ZIP or postal code.
3864
+ attr_accessor :postal_code
3865
+ # State, county, province, or region.
3866
+ attr_accessor :state
3867
+ # Town or cho-me.
3868
+ attr_accessor :town
3869
+
3870
+ def initialize(
3871
+ city: nil,
3872
+ country: nil,
3873
+ line1: nil,
3874
+ line2: nil,
3875
+ postal_code: nil,
3876
+ state: nil,
3877
+ town: nil
3878
+ )
3879
+ @city = city
3880
+ @country = country
3881
+ @line1 = line1
3882
+ @line2 = line2
3883
+ @postal_code = postal_code
3884
+ @state = state
3885
+ @town = town
3886
+ end
3887
+ end
3888
+
3889
+ class Kanji < Stripe::RequestParams
3890
+ # City, district, suburb, town, or village.
3891
+ attr_accessor :city
3892
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3893
+ attr_accessor :country
3894
+ # Address line 1 (e.g., street, PO Box, or company name).
3895
+ attr_accessor :line1
3896
+ # Address line 2 (e.g., apartment, suite, unit, or building).
3897
+ attr_accessor :line2
3898
+ # ZIP or postal code.
3899
+ attr_accessor :postal_code
3900
+ # State, county, province, or region.
3901
+ attr_accessor :state
3902
+ # Town or cho-me.
3903
+ attr_accessor :town
3904
+
3905
+ def initialize(
3906
+ city: nil,
3907
+ country: nil,
3908
+ line1: nil,
3909
+ line2: nil,
3910
+ postal_code: nil,
3911
+ state: nil,
3912
+ town: nil
3913
+ )
3914
+ @city = city
3915
+ @country = country
3916
+ @line1 = line1
3917
+ @line2 = line2
3918
+ @postal_code = postal_code
3919
+ @state = state
3920
+ @town = town
3921
+ end
3922
+ end
3923
+ # Kana Address.
3924
+ attr_accessor :kana
3925
+ # Kanji Address.
3926
+ attr_accessor :kanji
3927
+
3928
+ def initialize(kana: nil, kanji: nil)
3929
+ @kana = kana
3930
+ @kanji = kanji
3931
+ end
3932
+ end
3933
+
3934
+ class ScriptNames < Stripe::RequestParams
3935
+ class Kana < Stripe::RequestParams
3936
+ # The person's first or given name.
3937
+ attr_accessor :given_name
3938
+ # The person's last or family name.
3939
+ attr_accessor :surname
3940
+
3941
+ def initialize(given_name: nil, surname: nil)
3942
+ @given_name = given_name
3943
+ @surname = surname
3944
+ end
3945
+ end
3946
+
3947
+ class Kanji < Stripe::RequestParams
3948
+ # The person's first or given name.
3949
+ attr_accessor :given_name
3950
+ # The person's last or family name.
3951
+ attr_accessor :surname
3952
+
3953
+ def initialize(given_name: nil, surname: nil)
3954
+ @given_name = given_name
3955
+ @surname = surname
3956
+ end
3957
+ end
3958
+ # Persons name in kana script.
3959
+ attr_accessor :kana
3960
+ # Persons name in kanji script.
3961
+ attr_accessor :kanji
3962
+
3963
+ def initialize(kana: nil, kanji: nil)
3964
+ @kana = kana
3965
+ @kanji = kanji
3966
+ end
3967
+ end
3968
+ # Additional addresses associated with the individual.
3969
+ attr_accessor :additional_addresses
3970
+ # Additional names (e.g. aliases) associated with the individual.
3971
+ attr_accessor :additional_names
3972
+ # The individual's residential address.
3973
+ attr_accessor :address
3974
+ # The individual's date of birth.
3975
+ attr_accessor :date_of_birth
3976
+ # Documents that may be submitted to satisfy various informational requests.
3977
+ attr_accessor :documents
3978
+ # The individual's email address.
3979
+ attr_accessor :email
3980
+ # The individual's first name.
3981
+ attr_accessor :given_name
3982
+ # The identification numbers (e.g., SSN) associated with the individual.
3983
+ attr_accessor :id_numbers
3984
+ # The individual's gender (International regulations require either "male" or "female").
3985
+ attr_accessor :legal_gender
3986
+ # 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.
3987
+ attr_accessor :metadata
3988
+ # 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)).
3989
+ attr_accessor :nationalities
3990
+ # The individual's phone number.
3991
+ attr_accessor :phone
3992
+ # The individual's political exposure.
3993
+ attr_accessor :political_exposure
3994
+ # The relationship that this individual has with the account's identity.
3995
+ attr_accessor :relationship
3996
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
3997
+ attr_accessor :script_addresses
3998
+ # The individuals primary name in non latin script.
3999
+ attr_accessor :script_names
4000
+ # The individual's last name.
4001
+ attr_accessor :surname
4002
+
4003
+ def initialize(
4004
+ additional_addresses: nil,
4005
+ additional_names: nil,
4006
+ address: nil,
4007
+ date_of_birth: nil,
4008
+ documents: nil,
4009
+ email: nil,
4010
+ given_name: nil,
4011
+ id_numbers: nil,
4012
+ legal_gender: nil,
4013
+ metadata: nil,
4014
+ nationalities: nil,
4015
+ phone: nil,
4016
+ political_exposure: nil,
4017
+ relationship: nil,
4018
+ script_addresses: nil,
4019
+ script_names: nil,
4020
+ surname: nil
4021
+ )
4022
+ @additional_addresses = additional_addresses
4023
+ @additional_names = additional_names
4024
+ @address = address
4025
+ @date_of_birth = date_of_birth
4026
+ @documents = documents
4027
+ @email = email
4028
+ @given_name = given_name
4029
+ @id_numbers = id_numbers
4030
+ @legal_gender = legal_gender
4031
+ @metadata = metadata
4032
+ @nationalities = nationalities
4033
+ @phone = phone
4034
+ @political_exposure = political_exposure
4035
+ @relationship = relationship
4036
+ @script_addresses = script_addresses
4037
+ @script_names = script_names
4038
+ @surname = surname
4039
+ end
4040
+ end
4041
+ # Attestations from the identity's key people, e.g. owners, executives, directors.
4042
+ attr_accessor :attestations
4043
+ # Information about the company or business.
4044
+ attr_accessor :business_details
4045
+ # 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.
4046
+ attr_accessor :country
4047
+ # The entity type.
4048
+ attr_accessor :entity_type
4049
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
4050
+ attr_accessor :individual
4051
+
4052
+ def initialize(
4053
+ attestations: nil,
4054
+ business_details: nil,
4055
+ country: nil,
4056
+ entity_type: nil,
4057
+ individual: nil
4058
+ )
4059
+ @attestations = attestations
4060
+ @business_details = business_details
4061
+ @country = country
4062
+ @entity_type = entity_type
4063
+ @individual = individual
4064
+ end
4065
+ end
4066
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
4067
+ attr_accessor :configuration
4068
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
4069
+ attr_accessor :contact_email
4070
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
4071
+ attr_accessor :dashboard
4072
+ # Default values to be used on Account Configurations.
4073
+ attr_accessor :defaults
4074
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
4075
+ attr_accessor :display_name
4076
+ # Information about the company, individual, and business represented by the Account.
4077
+ attr_accessor :identity
4078
+ # Additional fields to include in the response.
4079
+ attr_accessor :include
4080
+ # 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.
4081
+ attr_accessor :metadata
4082
+
4083
+ def initialize(
4084
+ configuration: nil,
4085
+ contact_email: nil,
4086
+ dashboard: nil,
4087
+ defaults: nil,
4088
+ display_name: nil,
4089
+ identity: nil,
4090
+ include: nil,
4091
+ metadata: nil
4092
+ )
4093
+ @configuration = configuration
4094
+ @contact_email = contact_email
4095
+ @dashboard = dashboard
4096
+ @defaults = defaults
4097
+ @display_name = display_name
4098
+ @identity = identity
4099
+ @include = include
4100
+ @metadata = metadata
4101
+ end
4102
+ end
4103
+
4104
+ class CloseParams < Stripe::RequestParams
4105
+ # Configurations on the Account to be closed. All configurations on the Account must be passed in for this request to succeed.
4106
+ attr_accessor :applied_configurations
4107
+
4108
+ def initialize(applied_configurations: nil)
4109
+ @applied_configurations = applied_configurations
4110
+ end
4111
+ end
4112
+
4113
+ # Removes access to the Account and its associated resources.
4114
+ def close(id, params = {}, opts = {})
4115
+ request(
4116
+ method: :post,
4117
+ path: format("/v2/core/accounts/%<id>s/close", { id: CGI.escape(id) }),
4118
+ params: params,
4119
+ opts: opts,
4120
+ base_address: :api
4121
+ )
4122
+ end
4123
+
4124
+ # An Account is a representation of a company, individual or other entity that a user interacts with. Accounts contain identifying information about the entity, and configurations that store the features an account has access to. An account can be configured as any or all of the following configurations: Customer, Merchant and/or Recipient.
4125
+ def create(params = {}, opts = {})
4126
+ request(
4127
+ method: :post,
4128
+ path: "/v2/core/accounts",
4129
+ params: params,
4130
+ opts: opts,
4131
+ base_address: :api
4132
+ )
4133
+ end
4134
+
4135
+ # Returns a list of Accounts.
4136
+ def list(params = {}, opts = {})
4137
+ request(
4138
+ method: :get,
4139
+ path: "/v2/core/accounts",
4140
+ params: params,
4141
+ opts: opts,
4142
+ base_address: :api
4143
+ )
4144
+ end
4145
+
4146
+ # Retrieves the details of an Account.
4147
+ def retrieve(id, params = {}, opts = {})
4148
+ request(
4149
+ method: :get,
4150
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4151
+ params: params,
4152
+ opts: opts,
4153
+ base_address: :api
4154
+ )
4155
+ end
4156
+
4157
+ # Updates the details of an Account.
4158
+ def update(id, params = {}, opts = {})
4159
+ request(
4160
+ method: :post,
4161
+ path: format("/v2/core/accounts/%<id>s", { id: CGI.escape(id) }),
4162
+ params: params,
4163
+ opts: opts,
4164
+ base_address: :api
4165
+ )
4166
+ end
4167
+ end
4168
+ end
4169
+ end
4170
+ end