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