stripe 15.1.0 → 15.2.0.pre.beta.1

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