mega-pure-kit 0.0.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 (1044) hide show
  1. checksums.yaml +7 -0
  2. data/mega-pure-kit.gemspec +12 -0
  3. data/stripe-19.3.0/exe/stripe-console +16 -0
  4. data/stripe-19.3.0/lib/data/ca-certificates.crt +3511 -0
  5. data/stripe-19.3.0/lib/stripe/api_operations/create.rb +16 -0
  6. data/stripe-19.3.0/lib/stripe/api_operations/delete.rb +44 -0
  7. data/stripe-19.3.0/lib/stripe/api_operations/list.rb +16 -0
  8. data/stripe-19.3.0/lib/stripe/api_operations/nested_resource.rb +101 -0
  9. data/stripe-19.3.0/lib/stripe/api_operations/request.rb +94 -0
  10. data/stripe-19.3.0/lib/stripe/api_operations/save.rb +107 -0
  11. data/stripe-19.3.0/lib/stripe/api_operations/search.rb +21 -0
  12. data/stripe-19.3.0/lib/stripe/api_operations/singleton_save.rb +90 -0
  13. data/stripe-19.3.0/lib/stripe/api_requestor.rb +1168 -0
  14. data/stripe-19.3.0/lib/stripe/api_resource.rb +145 -0
  15. data/stripe-19.3.0/lib/stripe/api_resource_test_helpers.rb +53 -0
  16. data/stripe-19.3.0/lib/stripe/api_version.rb +9 -0
  17. data/stripe-19.3.0/lib/stripe/connection_manager.rb +196 -0
  18. data/stripe-19.3.0/lib/stripe/error_object.rb +93 -0
  19. data/stripe-19.3.0/lib/stripe/errors.rb +171 -0
  20. data/stripe-19.3.0/lib/stripe/event_types.rb +106 -0
  21. data/stripe-19.3.0/lib/stripe/events/unknown_event_notification.rb +19 -0
  22. data/stripe-19.3.0/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
  23. data/stripe-19.3.0/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -0
  24. data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
  25. data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
  26. data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
  27. data/stripe-19.3.0/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
  28. data/stripe-19.3.0/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  29. data/stripe-19.3.0/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  30. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  31. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  32. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  33. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  34. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  35. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  36. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  37. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
  38. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  39. data/stripe-19.3.0/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  40. data/stripe-19.3.0/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  41. data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  42. data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  43. data/stripe-19.3.0/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  44. data/stripe-19.3.0/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  45. data/stripe-19.3.0/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  46. data/stripe-19.3.0/lib/stripe/instrumentation.rb +106 -0
  47. data/stripe-19.3.0/lib/stripe/list_object.rb +141 -0
  48. data/stripe-19.3.0/lib/stripe/multipart_encoder.rb +131 -0
  49. data/stripe-19.3.0/lib/stripe/oauth.rb +58 -0
  50. data/stripe-19.3.0/lib/stripe/object_types.rb +189 -0
  51. data/stripe-19.3.0/lib/stripe/params/account_capability_list_params.rb +13 -0
  52. data/stripe-19.3.0/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  53. data/stripe-19.3.0/lib/stripe/params/account_capability_update_params.rb +18 -0
  54. data/stripe-19.3.0/lib/stripe/params/account_create_params.rb +2202 -0
  55. data/stripe-19.3.0/lib/stripe/params/account_delete_params.rb +6 -0
  56. data/stripe-19.3.0/lib/stripe/params/account_external_account_create_params.rb +134 -0
  57. data/stripe-19.3.0/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  58. data/stripe-19.3.0/lib/stripe/params/account_external_account_list_params.rb +25 -0
  59. data/stripe-19.3.0/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  60. data/stripe-19.3.0/lib/stripe/params/account_external_account_update_params.rb +91 -0
  61. data/stripe-19.3.0/lib/stripe/params/account_link_create_params.rb +52 -0
  62. data/stripe-19.3.0/lib/stripe/params/account_list_params.rb +42 -0
  63. data/stripe-19.3.0/lib/stripe/params/account_login_link_create_params.rb +13 -0
  64. data/stripe-19.3.0/lib/stripe/params/account_person_create_params.rb +435 -0
  65. data/stripe-19.3.0/lib/stripe/params/account_person_delete_params.rb +6 -0
  66. data/stripe-19.3.0/lib/stripe/params/account_person_list_params.rb +61 -0
  67. data/stripe-19.3.0/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  68. data/stripe-19.3.0/lib/stripe/params/account_person_update_params.rb +435 -0
  69. data/stripe-19.3.0/lib/stripe/params/account_persons_params.rb +61 -0
  70. data/stripe-19.3.0/lib/stripe/params/account_reject_params.rb +16 -0
  71. data/stripe-19.3.0/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  72. data/stripe-19.3.0/lib/stripe/params/account_retrieve_params.rb +13 -0
  73. data/stripe-19.3.0/lib/stripe/params/account_session_create_params.rb +632 -0
  74. data/stripe-19.3.0/lib/stripe/params/account_update_params.rb +2149 -0
  75. data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  76. data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  77. data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  78. data/stripe-19.3.0/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  79. data/stripe-19.3.0/lib/stripe/params/application_fee_list_params.rb +52 -0
  80. data/stripe-19.3.0/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  81. data/stripe-19.3.0/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  82. data/stripe-19.3.0/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  83. data/stripe-19.3.0/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  84. data/stripe-19.3.0/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  85. data/stripe-19.3.0/lib/stripe/params/apps/secret_create_params.rb +38 -0
  86. data/stripe-19.3.0/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  87. data/stripe-19.3.0/lib/stripe/params/apps/secret_find_params.rb +32 -0
  88. data/stripe-19.3.0/lib/stripe/params/apps/secret_list_params.rb +38 -0
  89. data/stripe-19.3.0/lib/stripe/params/balance_retrieve_params.rb +13 -0
  90. data/stripe-19.3.0/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  91. data/stripe-19.3.0/lib/stripe/params/balance_settings_update_params.rb +107 -0
  92. data/stripe-19.3.0/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  93. data/stripe-19.3.0/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  94. data/stripe-19.3.0/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  95. data/stripe-19.3.0/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  96. data/stripe-19.3.0/lib/stripe/params/billing/alert_create_params.rb +52 -0
  97. data/stripe-19.3.0/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  98. data/stripe-19.3.0/lib/stripe/params/billing/alert_list_params.rb +37 -0
  99. data/stripe-19.3.0/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  100. data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +57 -0
  101. data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
  102. data/stripe-19.3.0/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  103. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
  104. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  105. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
  106. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  107. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  108. data/stripe-19.3.0/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  109. data/stripe-19.3.0/lib/stripe/params/billing/meter_create_params.rb +70 -0
  110. data/stripe-19.3.0/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  111. data/stripe-19.3.0/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  112. data/stripe-19.3.0/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  113. data/stripe-19.3.0/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  114. data/stripe-19.3.0/lib/stripe/params/billing/meter_list_params.rb +27 -0
  115. data/stripe-19.3.0/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  116. data/stripe-19.3.0/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  117. data/stripe-19.3.0/lib/stripe/params/billing/meter_update_params.rb +18 -0
  118. data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
  119. data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  120. data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  121. data/stripe-19.3.0/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
  122. data/stripe-19.3.0/lib/stripe/params/billing_portal/session_create_params.rb +183 -0
  123. data/stripe-19.3.0/lib/stripe/params/charge_capture_params.rb +57 -0
  124. data/stripe-19.3.0/lib/stripe/params/charge_create_params.rb +175 -0
  125. data/stripe-19.3.0/lib/stripe/params/charge_list_params.rb +60 -0
  126. data/stripe-19.3.0/lib/stripe/params/charge_retrieve_params.rb +13 -0
  127. data/stripe-19.3.0/lib/stripe/params/charge_search_params.rb +22 -0
  128. data/stripe-19.3.0/lib/stripe/params/charge_update_params.rb +102 -0
  129. data/stripe-19.3.0/lib/stripe/params/checkout/session_create_params.rb +2740 -0
  130. data/stripe-19.3.0/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  131. data/stripe-19.3.0/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  132. data/stripe-19.3.0/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  133. data/stripe-19.3.0/lib/stripe/params/checkout/session_list_params.rb +87 -0
  134. data/stripe-19.3.0/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  135. data/stripe-19.3.0/lib/stripe/params/checkout/session_update_params.rb +348 -0
  136. data/stripe-19.3.0/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  137. data/stripe-19.3.0/lib/stripe/params/climate/order_create_params.rb +53 -0
  138. data/stripe-19.3.0/lib/stripe/params/climate/order_list_params.rb +24 -0
  139. data/stripe-19.3.0/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  140. data/stripe-19.3.0/lib/stripe/params/climate/order_update_params.rb +29 -0
  141. data/stripe-19.3.0/lib/stripe/params/climate/product_list_params.rb +24 -0
  142. data/stripe-19.3.0/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  143. data/stripe-19.3.0/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  144. data/stripe-19.3.0/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  145. data/stripe-19.3.0/lib/stripe/params/confirmation_token_create_params.rb +715 -0
  146. data/stripe-19.3.0/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  147. data/stripe-19.3.0/lib/stripe/params/country_spec_list_params.rb +22 -0
  148. data/stripe-19.3.0/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  149. data/stripe-19.3.0/lib/stripe/params/coupon_create_params.rb +80 -0
  150. data/stripe-19.3.0/lib/stripe/params/coupon_delete_params.rb +6 -0
  151. data/stripe-19.3.0/lib/stripe/params/coupon_list_params.rb +42 -0
  152. data/stripe-19.3.0/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  153. data/stripe-19.3.0/lib/stripe/params/coupon_update_params.rb +30 -0
  154. data/stripe-19.3.0/lib/stripe/params/credit_note_create_params.rb +178 -0
  155. data/stripe-19.3.0/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  156. data/stripe-19.3.0/lib/stripe/params/credit_note_list_params.rb +60 -0
  157. data/stripe-19.3.0/lib/stripe/params/credit_note_list_preview_line_items_params.rb +190 -0
  158. data/stripe-19.3.0/lib/stripe/params/credit_note_preview_lines_list_params.rb +190 -0
  159. data/stripe-19.3.0/lib/stripe/params/credit_note_preview_params.rb +178 -0
  160. data/stripe-19.3.0/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  161. data/stripe-19.3.0/lib/stripe/params/credit_note_update_params.rb +19 -0
  162. data/stripe-19.3.0/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  163. data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  164. data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
  165. data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  166. data/stripe-19.3.0/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  167. data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  168. data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  169. data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  170. data/stripe-19.3.0/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  171. data/stripe-19.3.0/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  172. data/stripe-19.3.0/lib/stripe/params/customer_create_params.rb +259 -0
  173. data/stripe-19.3.0/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  174. data/stripe-19.3.0/lib/stripe/params/customer_delete_params.rb +6 -0
  175. data/stripe-19.3.0/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  176. data/stripe-19.3.0/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  177. data/stripe-19.3.0/lib/stripe/params/customer_list_params.rb +56 -0
  178. data/stripe-19.3.0/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  179. data/stripe-19.3.0/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  180. data/stripe-19.3.0/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  181. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  182. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  183. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  184. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  185. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  186. data/stripe-19.3.0/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  187. data/stripe-19.3.0/lib/stripe/params/customer_retrieve_params.rb +13 -0
  188. data/stripe-19.3.0/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  189. data/stripe-19.3.0/lib/stripe/params/customer_search_params.rb +22 -0
  190. data/stripe-19.3.0/lib/stripe/params/customer_session_create_params.rb +188 -0
  191. data/stripe-19.3.0/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  192. data/stripe-19.3.0/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  193. data/stripe-19.3.0/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  194. data/stripe-19.3.0/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  195. data/stripe-19.3.0/lib/stripe/params/customer_update_params.rb +243 -0
  196. data/stripe-19.3.0/lib/stripe/params/dispute_close_params.rb +13 -0
  197. data/stripe-19.3.0/lib/stripe/params/dispute_list_params.rb +56 -0
  198. data/stripe-19.3.0/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  199. data/stripe-19.3.0/lib/stripe/params/dispute_update_params.rb +324 -0
  200. data/stripe-19.3.0/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  201. data/stripe-19.3.0/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  202. data/stripe-19.3.0/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  203. data/stripe-19.3.0/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  204. data/stripe-19.3.0/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  205. data/stripe-19.3.0/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  206. data/stripe-19.3.0/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  207. data/stripe-19.3.0/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  208. data/stripe-19.3.0/lib/stripe/params/event_list_params.rb +60 -0
  209. data/stripe-19.3.0/lib/stripe/params/event_retrieve_params.rb +13 -0
  210. data/stripe-19.3.0/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  211. data/stripe-19.3.0/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  212. data/stripe-19.3.0/lib/stripe/params/file_create_params.rb +36 -0
  213. data/stripe-19.3.0/lib/stripe/params/file_link_create_params.rb +22 -0
  214. data/stripe-19.3.0/lib/stripe/params/file_link_list_params.rb +56 -0
  215. data/stripe-19.3.0/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  216. data/stripe-19.3.0/lib/stripe/params/file_link_update_params.rb +19 -0
  217. data/stripe-19.3.0/lib/stripe/params/file_list_params.rb +52 -0
  218. data/stripe-19.3.0/lib/stripe/params/file_retrieve_params.rb +13 -0
  219. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  220. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  221. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
  222. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  223. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  224. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  225. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  226. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  227. data/stripe-19.3.0/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  228. data/stripe-19.3.0/lib/stripe/params/financial_connections/session_create_params.rb +68 -0
  229. data/stripe-19.3.0/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  230. data/stripe-19.3.0/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  231. data/stripe-19.3.0/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  232. data/stripe-19.3.0/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  233. data/stripe-19.3.0/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  234. data/stripe-19.3.0/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  235. data/stripe-19.3.0/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  236. data/stripe-19.3.0/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  237. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  238. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
  239. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
  240. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  241. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  242. data/stripe-19.3.0/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  243. data/stripe-19.3.0/lib/stripe/params/invoice_add_lines_params.rb +261 -0
  244. data/stripe-19.3.0/lib/stripe/params/invoice_attach_payment_params.rb +19 -0
  245. data/stripe-19.3.0/lib/stripe/params/invoice_create_params.rb +664 -0
  246. data/stripe-19.3.0/lib/stripe/params/invoice_create_preview_params.rb +1230 -0
  247. data/stripe-19.3.0/lib/stripe/params/invoice_delete_params.rb +6 -0
  248. data/stripe-19.3.0/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  249. data/stripe-19.3.0/lib/stripe/params/invoice_item_create_params.rb +165 -0
  250. data/stripe-19.3.0/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  251. data/stripe-19.3.0/lib/stripe/params/invoice_item_list_params.rb +64 -0
  252. data/stripe-19.3.0/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  253. data/stripe-19.3.0/lib/stripe/params/invoice_item_update_params.rb +145 -0
  254. data/stripe-19.3.0/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  255. data/stripe-19.3.0/lib/stripe/params/invoice_line_item_update_params.rb +232 -0
  256. data/stripe-19.3.0/lib/stripe/params/invoice_list_params.rb +90 -0
  257. data/stripe-19.3.0/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  258. data/stripe-19.3.0/lib/stripe/params/invoice_pay_params.rb +41 -0
  259. data/stripe-19.3.0/lib/stripe/params/invoice_payment_list_params.rb +75 -0
  260. data/stripe-19.3.0/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  261. data/stripe-19.3.0/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  262. data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  263. data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  264. data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  265. data/stripe-19.3.0/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  266. data/stripe-19.3.0/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  267. data/stripe-19.3.0/lib/stripe/params/invoice_search_params.rb +22 -0
  268. data/stripe-19.3.0/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  269. data/stripe-19.3.0/lib/stripe/params/invoice_update_lines_params.rb +261 -0
  270. data/stripe-19.3.0/lib/stripe/params/invoice_update_params.rb +628 -0
  271. data/stripe-19.3.0/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  272. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  273. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_capture_params.rb +390 -0
  274. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_create_params.rb +452 -0
  275. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  276. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  277. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +223 -0
  278. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  279. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  280. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  281. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  282. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  283. data/stripe-19.3.0/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  284. data/stripe-19.3.0/lib/stripe/params/issuing/card_create_params.rb +242 -0
  285. data/stripe-19.3.0/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  286. data/stripe-19.3.0/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  287. data/stripe-19.3.0/lib/stripe/params/issuing/card_list_params.rb +78 -0
  288. data/stripe-19.3.0/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  289. data/stripe-19.3.0/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  290. data/stripe-19.3.0/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  291. data/stripe-19.3.0/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  292. data/stripe-19.3.0/lib/stripe/params/issuing/card_update_params.rb +189 -0
  293. data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_create_params.rb +246 -0
  294. data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  295. data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  296. data/stripe-19.3.0/lib/stripe/params/issuing/cardholder_update_params.rb +238 -0
  297. data/stripe-19.3.0/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  298. data/stripe-19.3.0/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  299. data/stripe-19.3.0/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  300. data/stripe-19.3.0/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  301. data/stripe-19.3.0/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  302. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  303. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  304. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  305. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  306. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  307. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  308. data/stripe-19.3.0/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  309. data/stripe-19.3.0/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  310. data/stripe-19.3.0/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  311. data/stripe-19.3.0/lib/stripe/params/issuing/token_list_params.rb +58 -0
  312. data/stripe-19.3.0/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  313. data/stripe-19.3.0/lib/stripe/params/issuing/token_update_params.rb +18 -0
  314. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +441 -0
  315. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +441 -0
  316. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
  317. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  318. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  319. data/stripe-19.3.0/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  320. data/stripe-19.3.0/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  321. data/stripe-19.3.0/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  322. data/stripe-19.3.0/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  323. data/stripe-19.3.0/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  324. data/stripe-19.3.0/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  325. data/stripe-19.3.0/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  326. data/stripe-19.3.0/lib/stripe/params/payment_intent_capture_params.rb +291 -0
  327. data/stripe-19.3.0/lib/stripe/params/payment_intent_confirm_params.rb +2878 -0
  328. data/stripe-19.3.0/lib/stripe/params/payment_intent_create_params.rb +3009 -0
  329. data/stripe-19.3.0/lib/stripe/params/payment_intent_increment_authorization_params.rb +285 -0
  330. data/stripe-19.3.0/lib/stripe/params/payment_intent_list_params.rb +56 -0
  331. data/stripe-19.3.0/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  332. data/stripe-19.3.0/lib/stripe/params/payment_intent_search_params.rb +22 -0
  333. data/stripe-19.3.0/lib/stripe/params/payment_intent_update_params.rb +2876 -0
  334. data/stripe-19.3.0/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  335. data/stripe-19.3.0/lib/stripe/params/payment_link_create_params.rb +879 -0
  336. data/stripe-19.3.0/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  337. data/stripe-19.3.0/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  338. data/stripe-19.3.0/lib/stripe/params/payment_link_list_params.rb +25 -0
  339. data/stripe-19.3.0/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  340. data/stripe-19.3.0/lib/stripe/params/payment_link_update_params.rb +667 -0
  341. data/stripe-19.3.0/lib/stripe/params/payment_method_attach_params.rb +19 -0
  342. data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_create_params.rb +1282 -0
  343. data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_list_params.rb +35 -0
  344. data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  345. data/stripe-19.3.0/lib/stripe/params/payment_method_configuration_update_params.rb +1282 -0
  346. data/stripe-19.3.0/lib/stripe/params/payment_method_create_params.rb +662 -0
  347. data/stripe-19.3.0/lib/stripe/params/payment_method_detach_params.rb +13 -0
  348. data/stripe-19.3.0/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  349. data/stripe-19.3.0/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  350. data/stripe-19.3.0/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  351. data/stripe-19.3.0/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  352. data/stripe-19.3.0/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  353. data/stripe-19.3.0/lib/stripe/params/payment_method_list_params.rb +43 -0
  354. data/stripe-19.3.0/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  355. data/stripe-19.3.0/lib/stripe/params/payment_method_update_params.rb +139 -0
  356. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  357. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  358. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  359. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  360. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  361. data/stripe-19.3.0/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  362. data/stripe-19.3.0/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  363. data/stripe-19.3.0/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  364. data/stripe-19.3.0/lib/stripe/params/payout_cancel_params.rb +13 -0
  365. data/stripe-19.3.0/lib/stripe/params/payout_create_params.rb +51 -0
  366. data/stripe-19.3.0/lib/stripe/params/payout_list_params.rb +78 -0
  367. data/stripe-19.3.0/lib/stripe/params/payout_retrieve_params.rb +13 -0
  368. data/stripe-19.3.0/lib/stripe/params/payout_reverse_params.rb +16 -0
  369. data/stripe-19.3.0/lib/stripe/params/payout_update_params.rb +16 -0
  370. data/stripe-19.3.0/lib/stripe/params/plan_create_params.rb +178 -0
  371. data/stripe-19.3.0/lib/stripe/params/plan_delete_params.rb +6 -0
  372. data/stripe-19.3.0/lib/stripe/params/plan_list_params.rb +56 -0
  373. data/stripe-19.3.0/lib/stripe/params/plan_retrieve_params.rb +13 -0
  374. data/stripe-19.3.0/lib/stripe/params/plan_update_params.rb +35 -0
  375. data/stripe-19.3.0/lib/stripe/params/price_create_params.rb +318 -0
  376. data/stripe-19.3.0/lib/stripe/params/price_list_params.rb +87 -0
  377. data/stripe-19.3.0/lib/stripe/params/price_retrieve_params.rb +13 -0
  378. data/stripe-19.3.0/lib/stripe/params/price_search_params.rb +22 -0
  379. data/stripe-19.3.0/lib/stripe/params/price_update_params.rb +133 -0
  380. data/stripe-19.3.0/lib/stripe/params/product_create_params.rb +276 -0
  381. data/stripe-19.3.0/lib/stripe/params/product_delete_params.rb +6 -0
  382. data/stripe-19.3.0/lib/stripe/params/product_feature_create_params.rb +16 -0
  383. data/stripe-19.3.0/lib/stripe/params/product_feature_delete_params.rb +6 -0
  384. data/stripe-19.3.0/lib/stripe/params/product_feature_list_params.rb +22 -0
  385. data/stripe-19.3.0/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  386. data/stripe-19.3.0/lib/stripe/params/product_list_params.rb +68 -0
  387. data/stripe-19.3.0/lib/stripe/params/product_retrieve_params.rb +13 -0
  388. data/stripe-19.3.0/lib/stripe/params/product_search_params.rb +22 -0
  389. data/stripe-19.3.0/lib/stripe/params/product_update_params.rb +96 -0
  390. data/stripe-19.3.0/lib/stripe/params/promotion_code_create_params.rb +95 -0
  391. data/stripe-19.3.0/lib/stripe/params/promotion_code_list_params.rb +68 -0
  392. data/stripe-19.3.0/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  393. data/stripe-19.3.0/lib/stripe/params/promotion_code_update_params.rb +38 -0
  394. data/stripe-19.3.0/lib/stripe/params/quote_accept_params.rb +13 -0
  395. data/stripe-19.3.0/lib/stripe/params/quote_cancel_params.rb +13 -0
  396. data/stripe-19.3.0/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  397. data/stripe-19.3.0/lib/stripe/params/quote_create_params.rb +327 -0
  398. data/stripe-19.3.0/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  399. data/stripe-19.3.0/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  400. data/stripe-19.3.0/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  401. data/stripe-19.3.0/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  402. data/stripe-19.3.0/lib/stripe/params/quote_list_params.rb +43 -0
  403. data/stripe-19.3.0/lib/stripe/params/quote_pdf_params.rb +13 -0
  404. data/stripe-19.3.0/lib/stripe/params/quote_retrieve_params.rb +13 -0
  405. data/stripe-19.3.0/lib/stripe/params/quote_update_params.rb +289 -0
  406. data/stripe-19.3.0/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  407. data/stripe-19.3.0/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  408. data/stripe-19.3.0/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
  409. data/stripe-19.3.0/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  410. data/stripe-19.3.0/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
  411. data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  412. data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  413. data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  414. data/stripe-19.3.0/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  415. data/stripe-19.3.0/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  416. data/stripe-19.3.0/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  417. data/stripe-19.3.0/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  418. data/stripe-19.3.0/lib/stripe/params/refund_cancel_params.rb +13 -0
  419. data/stripe-19.3.0/lib/stripe/params/refund_create_params.rb +59 -0
  420. data/stripe-19.3.0/lib/stripe/params/refund_expire_params.rb +13 -0
  421. data/stripe-19.3.0/lib/stripe/params/refund_list_params.rb +56 -0
  422. data/stripe-19.3.0/lib/stripe/params/refund_retrieve_params.rb +13 -0
  423. data/stripe-19.3.0/lib/stripe/params/refund_update_params.rb +16 -0
  424. data/stripe-19.3.0/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  425. data/stripe-19.3.0/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  426. data/stripe-19.3.0/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  427. data/stripe-19.3.0/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  428. data/stripe-19.3.0/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  429. data/stripe-19.3.0/lib/stripe/params/review_approve_params.rb +13 -0
  430. data/stripe-19.3.0/lib/stripe/params/review_list_params.rb +42 -0
  431. data/stripe-19.3.0/lib/stripe/params/review_retrieve_params.rb +13 -0
  432. data/stripe-19.3.0/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  433. data/stripe-19.3.0/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  434. data/stripe-19.3.0/lib/stripe/params/setup_intent_confirm_params.rb +1252 -0
  435. data/stripe-19.3.0/lib/stripe/params/setup_intent_create_params.rb +1342 -0
  436. data/stripe-19.3.0/lib/stripe/params/setup_intent_list_params.rb +66 -0
  437. data/stripe-19.3.0/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  438. data/stripe-19.3.0/lib/stripe/params/setup_intent_update_params.rb +1237 -0
  439. data/stripe-19.3.0/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  440. data/stripe-19.3.0/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  441. data/stripe-19.3.0/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  442. data/stripe-19.3.0/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  443. data/stripe-19.3.0/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  444. data/stripe-19.3.0/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  445. data/stripe-19.3.0/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  446. data/stripe-19.3.0/lib/stripe/params/source_create_params.rb +317 -0
  447. data/stripe-19.3.0/lib/stripe/params/source_detach_params.rb +13 -0
  448. data/stripe-19.3.0/lib/stripe/params/source_retrieve_params.rb +16 -0
  449. data/stripe-19.3.0/lib/stripe/params/source_transaction_list_params.rb +22 -0
  450. data/stripe-19.3.0/lib/stripe/params/source_update_params.rb +259 -0
  451. data/stripe-19.3.0/lib/stripe/params/source_verify_params.rb +16 -0
  452. data/stripe-19.3.0/lib/stripe/params/subscription_cancel_params.rb +33 -0
  453. data/stripe-19.3.0/lib/stripe/params/subscription_create_params.rb +917 -0
  454. data/stripe-19.3.0/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  455. data/stripe-19.3.0/lib/stripe/params/subscription_item_create_params.rb +138 -0
  456. data/stripe-19.3.0/lib/stripe/params/subscription_item_delete_params.rb +27 -0
  457. data/stripe-19.3.0/lib/stripe/params/subscription_item_list_params.rb +31 -0
  458. data/stripe-19.3.0/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  459. data/stripe-19.3.0/lib/stripe/params/subscription_item_update_params.rb +138 -0
  460. data/stripe-19.3.0/lib/stripe/params/subscription_list_params.rb +133 -0
  461. data/stripe-19.3.0/lib/stripe/params/subscription_migrate_params.rb +35 -0
  462. data/stripe-19.3.0/lib/stripe/params/subscription_resume_params.rb +27 -0
  463. data/stripe-19.3.0/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  464. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  465. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_create_params.rb +668 -0
  466. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
  467. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  468. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  469. data/stripe-19.3.0/lib/stripe/params/subscription_schedule_update_params.rb +636 -0
  470. data/stripe-19.3.0/lib/stripe/params/subscription_search_params.rb +22 -0
  471. data/stripe-19.3.0/lib/stripe/params/subscription_update_params.rb +896 -0
  472. data/stripe-19.3.0/lib/stripe/params/tax/association_find_params.rb +18 -0
  473. data/stripe-19.3.0/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  474. data/stripe-19.3.0/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  475. data/stripe-19.3.0/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  476. data/stripe-19.3.0/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  477. data/stripe-19.3.0/lib/stripe/params/tax/registration_create_params.rb +2044 -0
  478. data/stripe-19.3.0/lib/stripe/params/tax/registration_list_params.rb +27 -0
  479. data/stripe-19.3.0/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  480. data/stripe-19.3.0/lib/stripe/params/tax/registration_update_params.rb +21 -0
  481. data/stripe-19.3.0/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  482. data/stripe-19.3.0/lib/stripe/params/tax/settings_update_params.rb +71 -0
  483. data/stripe-19.3.0/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  484. data/stripe-19.3.0/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  485. data/stripe-19.3.0/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  486. data/stripe-19.3.0/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  487. data/stripe-19.3.0/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  488. data/stripe-19.3.0/lib/stripe/params/tax_code_list_params.rb +22 -0
  489. data/stripe-19.3.0/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  490. data/stripe-19.3.0/lib/stripe/params/tax_id_create_params.rb +39 -0
  491. data/stripe-19.3.0/lib/stripe/params/tax_id_delete_params.rb +6 -0
  492. data/stripe-19.3.0/lib/stripe/params/tax_id_list_params.rb +42 -0
  493. data/stripe-19.3.0/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  494. data/stripe-19.3.0/lib/stripe/params/tax_rate_create_params.rb +55 -0
  495. data/stripe-19.3.0/lib/stripe/params/tax_rate_list_params.rb +56 -0
  496. data/stripe-19.3.0/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  497. data/stripe-19.3.0/lib/stripe/params/tax_rate_update_params.rb +47 -0
  498. data/stripe-19.3.0/lib/stripe/params/terminal/configuration_create_params.rb +671 -0
  499. data/stripe-19.3.0/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  500. data/stripe-19.3.0/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  501. data/stripe-19.3.0/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  502. data/stripe-19.3.0/lib/stripe/params/terminal/configuration_update_params.rb +671 -0
  503. data/stripe-19.3.0/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  504. data/stripe-19.3.0/lib/stripe/params/terminal/location_create_params.rb +153 -0
  505. data/stripe-19.3.0/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  506. data/stripe-19.3.0/lib/stripe/params/terminal/location_list_params.rb +24 -0
  507. data/stripe-19.3.0/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  508. data/stripe-19.3.0/lib/stripe/params/terminal/location_update_params.rb +153 -0
  509. data/stripe-19.3.0/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  510. data/stripe-19.3.0/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  511. data/stripe-19.3.0/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  512. data/stripe-19.3.0/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  513. data/stripe-19.3.0/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  514. data/stripe-19.3.0/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  515. data/stripe-19.3.0/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  516. data/stripe-19.3.0/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  517. data/stripe-19.3.0/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  518. data/stripe-19.3.0/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  519. data/stripe-19.3.0/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  520. data/stripe-19.3.0/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  521. data/stripe-19.3.0/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  522. data/stripe-19.3.0/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  523. data/stripe-19.3.0/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  524. data/stripe-19.3.0/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  525. data/stripe-19.3.0/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  526. data/stripe-19.3.0/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +717 -0
  527. data/stripe-19.3.0/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  528. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +395 -0
  529. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +457 -0
  530. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  531. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +228 -0
  532. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  533. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  534. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  535. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  536. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  537. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  538. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  539. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  540. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  541. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  542. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  543. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +446 -0
  544. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +446 -0
  545. data/stripe-19.3.0/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  546. data/stripe-19.3.0/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  547. data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  548. data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  549. data/stripe-19.3.0/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  550. data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  551. data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_create_params.rb +24 -0
  552. data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  553. data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  554. data/stripe-19.3.0/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  555. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  556. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  557. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  558. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  559. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  560. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  561. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  562. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  563. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  564. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  565. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  566. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
  567. data/stripe-19.3.0/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
  568. data/stripe-19.3.0/lib/stripe/params/token_create_params.rb +1210 -0
  569. data/stripe-19.3.0/lib/stripe/params/token_retrieve_params.rb +13 -0
  570. data/stripe-19.3.0/lib/stripe/params/topup_cancel_params.rb +13 -0
  571. data/stripe-19.3.0/lib/stripe/params/topup_create_params.rb +67 -0
  572. data/stripe-19.3.0/lib/stripe/params/topup_list_params.rb +74 -0
  573. data/stripe-19.3.0/lib/stripe/params/topup_retrieve_params.rb +13 -0
  574. data/stripe-19.3.0/lib/stripe/params/topup_update_params.rb +19 -0
  575. data/stripe-19.3.0/lib/stripe/params/transfer_create_params.rb +47 -0
  576. data/stripe-19.3.0/lib/stripe/params/transfer_list_params.rb +56 -0
  577. data/stripe-19.3.0/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  578. data/stripe-19.3.0/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  579. data/stripe-19.3.0/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  580. data/stripe-19.3.0/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  581. data/stripe-19.3.0/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  582. data/stripe-19.3.0/lib/stripe/params/transfer_update_params.rb +19 -0
  583. data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  584. data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  585. data/stripe-19.3.0/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  586. data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  587. data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  588. data/stripe-19.3.0/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  589. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  590. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
  591. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  592. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
  593. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  594. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  595. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  596. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
  597. data/stripe-19.3.0/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
  598. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  599. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  600. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  601. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  602. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  603. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  604. data/stripe-19.3.0/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  605. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  606. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  607. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  608. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  609. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  610. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  611. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  612. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  613. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  614. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
  615. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  616. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  617. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  618. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  619. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  620. data/stripe-19.3.0/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  621. data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
  622. data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  623. data/stripe-19.3.0/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  624. data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
  625. data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  626. data/stripe-19.3.0/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  627. data/stripe-19.3.0/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  628. data/stripe-19.3.0/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  629. data/stripe-19.3.0/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  630. data/stripe-19.3.0/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  631. data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  632. data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  633. data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  634. data/stripe-19.3.0/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  635. data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
  636. data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
  637. data/stripe-19.3.0/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
  638. data/stripe-19.3.0/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  639. data/stripe-19.3.0/lib/stripe/params/v2/core/account_create_params.rb +2189 -0
  640. data/stripe-19.3.0/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  641. data/stripe-19.3.0/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  642. data/stripe-19.3.0/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  643. data/stripe-19.3.0/lib/stripe/params/v2/core/account_token_create_params.rb +1070 -0
  644. data/stripe-19.3.0/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  645. data/stripe-19.3.0/lib/stripe/params/v2/core/account_update_params.rb +2242 -0
  646. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
  647. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  648. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  649. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  650. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
  651. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  652. data/stripe-19.3.0/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
  653. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_create_params.rb +106 -0
  654. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  655. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  656. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  657. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  658. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  659. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  660. data/stripe-19.3.0/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  661. data/stripe-19.3.0/lib/stripe/params/v2/core/event_list_params.rb +45 -0
  662. data/stripe-19.3.0/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  663. data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  664. data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  665. data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  666. data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  667. data/stripe-19.3.0/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  668. data/stripe-19.3.0/lib/stripe/params.rb +1345 -0
  669. data/stripe-19.3.0/lib/stripe/railtie.rb +8 -0
  670. data/stripe-19.3.0/lib/stripe/request_options.rb +138 -0
  671. data/stripe-19.3.0/lib/stripe/request_params.rb +140 -0
  672. data/stripe-19.3.0/lib/stripe/resources/account.rb +1295 -0
  673. data/stripe-19.3.0/lib/stripe/resources/account_link.rb +39 -0
  674. data/stripe-19.3.0/lib/stripe/resources/account_session.rb +737 -0
  675. data/stripe-19.3.0/lib/stripe/resources/apple_pay_domain.rb +76 -0
  676. data/stripe-19.3.0/lib/stripe/resources/application.rb +28 -0
  677. data/stripe-19.3.0/lib/stripe/resources/application_fee.rb +76 -0
  678. data/stripe-19.3.0/lib/stripe/resources/application_fee_refund.rb +63 -0
  679. data/stripe-19.3.0/lib/stripe/resources/apps/secret.rb +96 -0
  680. data/stripe-19.3.0/lib/stripe/resources/balance.rb +340 -0
  681. data/stripe-19.3.0/lib/stripe/resources/balance_settings.rb +132 -0
  682. data/stripe-19.3.0/lib/stripe/resources/balance_transaction.rb +90 -0
  683. data/stripe-19.3.0/lib/stripe/resources/bank_account.rb +214 -0
  684. data/stripe-19.3.0/lib/stripe/resources/billing/alert.rb +142 -0
  685. data/stripe-19.3.0/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  686. data/stripe-19.3.0/lib/stripe/resources/billing/credit_balance_summary.rb +104 -0
  687. data/stripe-19.3.0/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
  688. data/stripe-19.3.0/lib/stripe/resources/billing/credit_grant.rb +200 -0
  689. data/stripe-19.3.0/lib/stripe/resources/billing/meter.rb +178 -0
  690. data/stripe-19.3.0/lib/stripe/resources/billing/meter_event.rb +49 -0
  691. data/stripe-19.3.0/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
  692. data/stripe-19.3.0/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
  693. data/stripe-19.3.0/lib/stripe/resources/billing_portal/configuration.rb +306 -0
  694. data/stripe-19.3.0/lib/stripe/resources/billing_portal/session.rb +240 -0
  695. data/stripe-19.3.0/lib/stripe/resources/capability.rb +179 -0
  696. data/stripe-19.3.0/lib/stripe/resources/card.rb +162 -0
  697. data/stripe-19.3.0/lib/stripe/resources/cash_balance.rb +61 -0
  698. data/stripe-19.3.0/lib/stripe/resources/charge.rb +2418 -0
  699. data/stripe-19.3.0/lib/stripe/resources/checkout/session.rb +2541 -0
  700. data/stripe-19.3.0/lib/stripe/resources/climate/order.rb +177 -0
  701. data/stripe-19.3.0/lib/stripe/resources/climate/product.rb +76 -0
  702. data/stripe-19.3.0/lib/stripe/resources/climate/supplier.rb +69 -0
  703. data/stripe-19.3.0/lib/stripe/resources/confirmation_token.rb +1808 -0
  704. data/stripe-19.3.0/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  705. data/stripe-19.3.0/lib/stripe/resources/country_spec.rb +92 -0
  706. data/stripe-19.3.0/lib/stripe/resources/coupon.rb +131 -0
  707. data/stripe-19.3.0/lib/stripe/resources/credit_note.rb +317 -0
  708. data/stripe-19.3.0/lib/stripe/resources/credit_note_line_item.rb +129 -0
  709. data/stripe-19.3.0/lib/stripe/resources/customer.rb +450 -0
  710. data/stripe-19.3.0/lib/stripe/resources/customer_balance_transaction.rb +78 -0
  711. data/stripe-19.3.0/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
  712. data/stripe-19.3.0/lib/stripe/resources/customer_session.rb +228 -0
  713. data/stripe-19.3.0/lib/stripe/resources/discount.rb +66 -0
  714. data/stripe-19.3.0/lib/stripe/resources/dispute.rb +496 -0
  715. data/stripe-19.3.0/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
  716. data/stripe-19.3.0/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  717. data/stripe-19.3.0/lib/stripe/resources/entitlements/feature.rb +72 -0
  718. data/stripe-19.3.0/lib/stripe/resources/ephemeral_key.rb +64 -0
  719. data/stripe-19.3.0/lib/stripe/resources/event.rb +96 -0
  720. data/stripe-19.3.0/lib/stripe/resources/exchange_rate.rb +69 -0
  721. data/stripe-19.3.0/lib/stripe/resources/file.rb +89 -0
  722. data/stripe-19.3.0/lib/stripe/resources/file_link.rb +65 -0
  723. data/stripe-19.3.0/lib/stripe/resources/financial_connections/account.rb +375 -0
  724. data/stripe-19.3.0/lib/stripe/resources/financial_connections/account_owner.rb +39 -0
  725. data/stripe-19.3.0/lib/stripe/resources/financial_connections/account_ownership.rb +31 -0
  726. data/stripe-19.3.0/lib/stripe/resources/financial_connections/session.rb +88 -0
  727. data/stripe-19.3.0/lib/stripe/resources/financial_connections/transaction.rb +73 -0
  728. data/stripe-19.3.0/lib/stripe/resources/forwarding/request.rb +163 -0
  729. data/stripe-19.3.0/lib/stripe/resources/funding_instructions.rb +525 -0
  730. data/stripe-19.3.0/lib/stripe/resources/identity/verification_report.rb +408 -0
  731. data/stripe-19.3.0/lib/stripe/resources/identity/verification_session.rb +428 -0
  732. data/stripe-19.3.0/lib/stripe/resources/invoice.rb +1361 -0
  733. data/stripe-19.3.0/lib/stripe/resources/invoice_item.rb +271 -0
  734. data/stripe-19.3.0/lib/stripe/resources/invoice_line_item.rb +321 -0
  735. data/stripe-19.3.0/lib/stripe/resources/invoice_payment.rb +92 -0
  736. data/stripe-19.3.0/lib/stripe/resources/invoice_rendering_template.rb +90 -0
  737. data/stripe-19.3.0/lib/stripe/resources/issuing/authorization.rb +762 -0
  738. data/stripe-19.3.0/lib/stripe/resources/issuing/card.rb +463 -0
  739. data/stripe-19.3.0/lib/stripe/resources/issuing/cardholder.rb +296 -0
  740. data/stripe-19.3.0/lib/stripe/resources/issuing/dispute.rb +324 -0
  741. data/stripe-19.3.0/lib/stripe/resources/issuing/personalization_design.rb +206 -0
  742. data/stripe-19.3.0/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
  743. data/stripe-19.3.0/lib/stripe/resources/issuing/token.rb +195 -0
  744. data/stripe-19.3.0/lib/stripe/resources/issuing/transaction.rb +571 -0
  745. data/stripe-19.3.0/lib/stripe/resources/line_item.rb +108 -0
  746. data/stripe-19.3.0/lib/stripe/resources/login_link.rb +35 -0
  747. data/stripe-19.3.0/lib/stripe/resources/mandate.rb +468 -0
  748. data/stripe-19.3.0/lib/stripe/resources/payment_attempt_record.rb +2060 -0
  749. data/stripe-19.3.0/lib/stripe/resources/payment_intent.rb +3456 -0
  750. data/stripe-19.3.0/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  751. data/stripe-19.3.0/lib/stripe/resources/payment_link.rb +849 -0
  752. data/stripe-19.3.0/lib/stripe/resources/payment_method.rb +1754 -0
  753. data/stripe-19.3.0/lib/stripe/resources/payment_method_configuration.rb +2056 -0
  754. data/stripe-19.3.0/lib/stripe/resources/payment_method_domain.rb +280 -0
  755. data/stripe-19.3.0/lib/stripe/resources/payment_record.rb +2190 -0
  756. data/stripe-19.3.0/lib/stripe/resources/payout.rb +168 -0
  757. data/stripe-19.3.0/lib/stripe/resources/person.rb +506 -0
  758. data/stripe-19.3.0/lib/stripe/resources/plan.rb +170 -0
  759. data/stripe-19.3.0/lib/stripe/resources/price.rb +280 -0
  760. data/stripe-19.3.0/lib/stripe/resources/product.rb +159 -0
  761. data/stripe-19.3.0/lib/stripe/resources/product_feature.rb +33 -0
  762. data/stripe-19.3.0/lib/stripe/resources/promotion_code.rb +122 -0
  763. data/stripe-19.3.0/lib/stripe/resources/quote.rb +675 -0
  764. data/stripe-19.3.0/lib/stripe/resources/radar/early_fraud_warning.rb +54 -0
  765. data/stripe-19.3.0/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
  766. data/stripe-19.3.0/lib/stripe/resources/radar/value_list.rb +102 -0
  767. data/stripe-19.3.0/lib/stripe/resources/radar/value_list_item.rb +85 -0
  768. data/stripe-19.3.0/lib/stripe/resources/refund.rb +781 -0
  769. data/stripe-19.3.0/lib/stripe/resources/reporting/report_run.rb +104 -0
  770. data/stripe-19.3.0/lib/stripe/resources/reporting/report_type.rb +60 -0
  771. data/stripe-19.3.0/lib/stripe/resources/reserve/hold.rb +84 -0
  772. data/stripe-19.3.0/lib/stripe/resources/reserve/plan.rb +78 -0
  773. data/stripe-19.3.0/lib/stripe/resources/reserve/release.rb +65 -0
  774. data/stripe-19.3.0/lib/stripe/resources/reserve_transaction.rb +30 -0
  775. data/stripe-19.3.0/lib/stripe/resources/reversal.rb +74 -0
  776. data/stripe-19.3.0/lib/stripe/resources/review.rb +118 -0
  777. data/stripe-19.3.0/lib/stripe/resources/setup_attempt.rb +683 -0
  778. data/stripe-19.3.0/lib/stripe/resources/setup_intent.rb +942 -0
  779. data/stripe-19.3.0/lib/stripe/resources/shipping_rate.rb +144 -0
  780. data/stripe-19.3.0/lib/stripe/resources/sigma/scheduled_query_run.rb +76 -0
  781. data/stripe-19.3.0/lib/stripe/resources/source.rb +972 -0
  782. data/stripe-19.3.0/lib/stripe/resources/source_mandate_notification.rb +98 -0
  783. data/stripe-19.3.0/lib/stripe/resources/source_transaction.rb +154 -0
  784. data/stripe-19.3.0/lib/stripe/resources/subscription.rb +975 -0
  785. data/stripe-19.3.0/lib/stripe/resources/subscription_item.rb +131 -0
  786. data/stripe-19.3.0/lib/stripe/resources/subscription_schedule.rb +618 -0
  787. data/stripe-19.3.0/lib/stripe/resources/tax/association.rb +86 -0
  788. data/stripe-19.3.0/lib/stripe/resources/tax/calculation.rb +321 -0
  789. data/stripe-19.3.0/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
  790. data/stripe-19.3.0/lib/stripe/resources/tax/registration.rb +2275 -0
  791. data/stripe-19.3.0/lib/stripe/resources/tax/settings.rb +131 -0
  792. data/stripe-19.3.0/lib/stripe/resources/tax/transaction.rb +287 -0
  793. data/stripe-19.3.0/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
  794. data/stripe-19.3.0/lib/stripe/resources/tax_code.rb +36 -0
  795. data/stripe-19.3.0/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  796. data/stripe-19.3.0/lib/stripe/resources/tax_id.rb +119 -0
  797. data/stripe-19.3.0/lib/stripe/resources/tax_rate.rb +99 -0
  798. data/stripe-19.3.0/lib/stripe/resources/terminal/configuration.rb +799 -0
  799. data/stripe-19.3.0/lib/stripe/resources/terminal/connection_token.rb +43 -0
  800. data/stripe-19.3.0/lib/stripe/resources/terminal/location.rb +183 -0
  801. data/stripe-19.3.0/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  802. data/stripe-19.3.0/lib/stripe/resources/terminal/reader.rb +925 -0
  803. data/stripe-19.3.0/lib/stripe/resources/test_helpers/test_clock.rb +133 -0
  804. data/stripe-19.3.0/lib/stripe/resources/token.rb +76 -0
  805. data/stripe-19.3.0/lib/stripe/resources/topup.rb +101 -0
  806. data/stripe-19.3.0/lib/stripe/resources/transfer.rb +93 -0
  807. data/stripe-19.3.0/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
  808. data/stripe-19.3.0/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
  809. data/stripe-19.3.0/lib/stripe/resources/treasury/financial_account.rb +253 -0
  810. data/stripe-19.3.0/lib/stripe/resources/treasury/financial_account_features.rb +396 -0
  811. data/stripe-19.3.0/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
  812. data/stripe-19.3.0/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
  813. data/stripe-19.3.0/lib/stripe/resources/treasury/outbound_transfer.rb +388 -0
  814. data/stripe-19.3.0/lib/stripe/resources/treasury/received_credit.rb +261 -0
  815. data/stripe-19.3.0/lib/stripe/resources/treasury/received_debit.rb +226 -0
  816. data/stripe-19.3.0/lib/stripe/resources/treasury/transaction.rb +143 -0
  817. data/stripe-19.3.0/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
  818. data/stripe-19.3.0/lib/stripe/resources/v2/amount.rb +9 -0
  819. data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event.rb +43 -0
  820. data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +53 -0
  821. data/stripe-19.3.0/lib/stripe/resources/v2/billing/meter_event_session.rb +38 -0
  822. data/stripe-19.3.0/lib/stripe/resources/v2/commerce/product_catalog_import.rb +276 -0
  823. data/stripe-19.3.0/lib/stripe/resources/v2/core/account.rb +3645 -0
  824. data/stripe-19.3.0/lib/stripe/resources/v2/core/account_link.rb +123 -0
  825. data/stripe-19.3.0/lib/stripe/resources/v2/core/account_person.rb +487 -0
  826. data/stripe-19.3.0/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  827. data/stripe-19.3.0/lib/stripe/resources/v2/core/account_token.rb +37 -0
  828. data/stripe-19.3.0/lib/stripe/resources/v2/core/event.rb +70 -0
  829. data/stripe-19.3.0/lib/stripe/resources/v2/core/event_destination.rb +147 -0
  830. data/stripe-19.3.0/lib/stripe/resources/v2/core/event_notification.rb +63 -0
  831. data/stripe-19.3.0/lib/stripe/resources/v2/deleted_object.rb +21 -0
  832. data/stripe-19.3.0/lib/stripe/resources/webhook_endpoint.rb +103 -0
  833. data/stripe-19.3.0/lib/stripe/resources.rb +503 -0
  834. data/stripe-19.3.0/lib/stripe/search_result_object.rb +89 -0
  835. data/stripe-19.3.0/lib/stripe/services/account_capability_service.rb +39 -0
  836. data/stripe-19.3.0/lib/stripe/services/account_external_account_service.rb +68 -0
  837. data/stripe-19.3.0/lib/stripe/services/account_link_service.rb +17 -0
  838. data/stripe-19.3.0/lib/stripe/services/account_login_link_service.rb +19 -0
  839. data/stripe-19.3.0/lib/stripe/services/account_person_service.rb +61 -0
  840. data/stripe-19.3.0/lib/stripe/services/account_service.rb +100 -0
  841. data/stripe-19.3.0/lib/stripe/services/account_session_service.rb +17 -0
  842. data/stripe-19.3.0/lib/stripe/services/apple_pay_domain_service.rb +50 -0
  843. data/stripe-19.3.0/lib/stripe/services/application_fee_refund_service.rb +60 -0
  844. data/stripe-19.3.0/lib/stripe/services/application_fee_service.rb +35 -0
  845. data/stripe-19.3.0/lib/stripe/services/apps/secret_service.rb +52 -0
  846. data/stripe-19.3.0/lib/stripe/services/apps_service.rb +13 -0
  847. data/stripe-19.3.0/lib/stripe/services/balance_service.rb +12 -0
  848. data/stripe-19.3.0/lib/stripe/services/balance_settings_service.rb +30 -0
  849. data/stripe-19.3.0/lib/stripe/services/balance_transaction_service.rb +32 -0
  850. data/stripe-19.3.0/lib/stripe/services/billing/alert_service.rb +74 -0
  851. data/stripe-19.3.0/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
  852. data/stripe-19.3.0/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
  853. data/stripe-19.3.0/lib/stripe/services/billing/credit_grant_service.rb +74 -0
  854. data/stripe-19.3.0/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
  855. data/stripe-19.3.0/lib/stripe/services/billing/meter_event_service.rb +19 -0
  856. data/stripe-19.3.0/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
  857. data/stripe-19.3.0/lib/stripe/services/billing/meter_service.rb +81 -0
  858. data/stripe-19.3.0/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
  859. data/stripe-19.3.0/lib/stripe/services/billing_portal/session_service.rb +19 -0
  860. data/stripe-19.3.0/lib/stripe/services/billing_portal_service.rb +14 -0
  861. data/stripe-19.3.0/lib/stripe/services/billing_service.rb +20 -0
  862. data/stripe-19.3.0/lib/stripe/services/charge_service.rb +69 -0
  863. data/stripe-19.3.0/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
  864. data/stripe-19.3.0/lib/stripe/services/checkout/session_service.rb +82 -0
  865. data/stripe-19.3.0/lib/stripe/services/checkout_service.rb +13 -0
  866. data/stripe-19.3.0/lib/stripe/services/climate/order_service.rb +70 -0
  867. data/stripe-19.3.0/lib/stripe/services/climate/product_service.rb +30 -0
  868. data/stripe-19.3.0/lib/stripe/services/climate/supplier_service.rb +30 -0
  869. data/stripe-19.3.0/lib/stripe/services/climate_service.rb +15 -0
  870. data/stripe-19.3.0/lib/stripe/services/confirmation_token_service.rb +17 -0
  871. data/stripe-19.3.0/lib/stripe/services/country_spec_service.rb +28 -0
  872. data/stripe-19.3.0/lib/stripe/services/coupon_service.rb +51 -0
  873. data/stripe-19.3.0/lib/stripe/services/credit_note_line_item_service.rb +17 -0
  874. data/stripe-19.3.0/lib/stripe/services/credit_note_preview_lines_service.rb +21 -0
  875. data/stripe-19.3.0/lib/stripe/services/credit_note_service.rb +98 -0
  876. data/stripe-19.3.0/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
  877. data/stripe-19.3.0/lib/stripe/services/customer_cash_balance_service.rb +28 -0
  878. data/stripe-19.3.0/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
  879. data/stripe-19.3.0/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
  880. data/stripe-19.3.0/lib/stripe/services/customer_payment_method_service.rb +28 -0
  881. data/stripe-19.3.0/lib/stripe/services/customer_payment_source_service.rb +76 -0
  882. data/stripe-19.3.0/lib/stripe/services/customer_service.rb +89 -0
  883. data/stripe-19.3.0/lib/stripe/services/customer_session_service.rb +17 -0
  884. data/stripe-19.3.0/lib/stripe/services/customer_tax_id_service.rb +50 -0
  885. data/stripe-19.3.0/lib/stripe/services/dispute_service.rb +48 -0
  886. data/stripe-19.3.0/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
  887. data/stripe-19.3.0/lib/stripe/services/entitlements/feature_service.rb +52 -0
  888. data/stripe-19.3.0/lib/stripe/services/entitlements_service.rb +14 -0
  889. data/stripe-19.3.0/lib/stripe/services/ephemeral_key_service.rb +28 -0
  890. data/stripe-19.3.0/lib/stripe/services/event_service.rb +22 -0
  891. data/stripe-19.3.0/lib/stripe/services/exchange_rate_service.rb +32 -0
  892. data/stripe-19.3.0/lib/stripe/services/file_link_service.rb +38 -0
  893. data/stripe-19.3.0/lib/stripe/services/file_service.rb +35 -0
  894. data/stripe-19.3.0/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
  895. data/stripe-19.3.0/lib/stripe/services/financial_connections/account_service.rb +81 -0
  896. data/stripe-19.3.0/lib/stripe/services/financial_connections/session_service.rb +30 -0
  897. data/stripe-19.3.0/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
  898. data/stripe-19.3.0/lib/stripe/services/financial_connections_service.rb +15 -0
  899. data/stripe-19.3.0/lib/stripe/services/forwarding/request_service.rb +41 -0
  900. data/stripe-19.3.0/lib/stripe/services/forwarding_service.rb +13 -0
  901. data/stripe-19.3.0/lib/stripe/services/identity/verification_report_service.rb +30 -0
  902. data/stripe-19.3.0/lib/stripe/services/identity/verification_session_service.rb +106 -0
  903. data/stripe-19.3.0/lib/stripe/services/identity_service.rb +14 -0
  904. data/stripe-19.3.0/lib/stripe/services/invoice_item_service.rb +65 -0
  905. data/stripe-19.3.0/lib/stripe/services/invoice_line_item_service.rb +33 -0
  906. data/stripe-19.3.0/lib/stripe/services/invoice_payment_service.rb +28 -0
  907. data/stripe-19.3.0/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
  908. data/stripe-19.3.0/lib/stripe/services/invoice_service.rb +212 -0
  909. data/stripe-19.3.0/lib/stripe/services/issuing/authorization_service.rb +65 -0
  910. data/stripe-19.3.0/lib/stripe/services/issuing/card_service.rb +52 -0
  911. data/stripe-19.3.0/lib/stripe/services/issuing/cardholder_service.rb +52 -0
  912. data/stripe-19.3.0/lib/stripe/services/issuing/dispute_service.rb +63 -0
  913. data/stripe-19.3.0/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
  914. data/stripe-19.3.0/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
  915. data/stripe-19.3.0/lib/stripe/services/issuing/token_service.rb +41 -0
  916. data/stripe-19.3.0/lib/stripe/services/issuing/transaction_service.rb +41 -0
  917. data/stripe-19.3.0/lib/stripe/services/issuing_service.rb +20 -0
  918. data/stripe-19.3.0/lib/stripe/services/mandate_service.rb +17 -0
  919. data/stripe-19.3.0/lib/stripe/services/oauth_service.rb +63 -0
  920. data/stripe-19.3.0/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  921. data/stripe-19.3.0/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  922. data/stripe-19.3.0/lib/stripe/services/payment_intent_service.rb +218 -0
  923. data/stripe-19.3.0/lib/stripe/services/payment_link_line_item_service.rb +17 -0
  924. data/stripe-19.3.0/lib/stripe/services/payment_link_service.rb +59 -0
  925. data/stripe-19.3.0/lib/stripe/services/payment_method_configuration_service.rb +50 -0
  926. data/stripe-19.3.0/lib/stripe/services/payment_method_domain_service.rb +66 -0
  927. data/stripe-19.3.0/lib/stripe/services/payment_method_service.rb +86 -0
  928. data/stripe-19.3.0/lib/stripe/services/payment_record_service.rb +101 -0
  929. data/stripe-19.3.0/lib/stripe/services/payout_service.rb +66 -0
  930. data/stripe-19.3.0/lib/stripe/services/plan_service.rb +51 -0
  931. data/stripe-19.3.0/lib/stripe/services/price_service.rb +54 -0
  932. data/stripe-19.3.0/lib/stripe/services/product_feature_service.rb +50 -0
  933. data/stripe-19.3.0/lib/stripe/services/product_service.rb +72 -0
  934. data/stripe-19.3.0/lib/stripe/services/promotion_code_service.rb +50 -0
  935. data/stripe-19.3.0/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
  936. data/stripe-19.3.0/lib/stripe/services/quote_line_item_service.rb +17 -0
  937. data/stripe-19.3.0/lib/stripe/services/quote_service.rb +96 -0
  938. data/stripe-19.3.0/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
  939. data/stripe-19.3.0/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
  940. data/stripe-19.3.0/lib/stripe/services/radar/value_list_item_service.rb +52 -0
  941. data/stripe-19.3.0/lib/stripe/services/radar/value_list_service.rb +63 -0
  942. data/stripe-19.3.0/lib/stripe/services/radar_service.rb +16 -0
  943. data/stripe-19.3.0/lib/stripe/services/refund_service.rb +63 -0
  944. data/stripe-19.3.0/lib/stripe/services/reporting/report_run_service.rb +41 -0
  945. data/stripe-19.3.0/lib/stripe/services/reporting/report_type_service.rb +30 -0
  946. data/stripe-19.3.0/lib/stripe/services/reporting_service.rb +14 -0
  947. data/stripe-19.3.0/lib/stripe/services/review_service.rb +33 -0
  948. data/stripe-19.3.0/lib/stripe/services/setup_attempt_service.rb +17 -0
  949. data/stripe-19.3.0/lib/stripe/services/setup_intent_service.rb +105 -0
  950. data/stripe-19.3.0/lib/stripe/services/shipping_rate_service.rb +50 -0
  951. data/stripe-19.3.0/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  952. data/stripe-19.3.0/lib/stripe/services/sigma_service.rb +13 -0
  953. data/stripe-19.3.0/lib/stripe/services/source_service.rb +64 -0
  954. data/stripe-19.3.0/lib/stripe/services/source_transaction_service.rb +17 -0
  955. data/stripe-19.3.0/lib/stripe/services/subscription_item_service.rb +65 -0
  956. data/stripe-19.3.0/lib/stripe/services/subscription_schedule_service.rb +80 -0
  957. data/stripe-19.3.0/lib/stripe/services/subscription_service.rb +142 -0
  958. data/stripe-19.3.0/lib/stripe/services/tax/association_service.rb +19 -0
  959. data/stripe-19.3.0/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
  960. data/stripe-19.3.0/lib/stripe/services/tax/calculation_service.rb +37 -0
  961. data/stripe-19.3.0/lib/stripe/services/tax/registration_service.rb +54 -0
  962. data/stripe-19.3.0/lib/stripe/services/tax/settings_service.rb +30 -0
  963. data/stripe-19.3.0/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
  964. data/stripe-19.3.0/lib/stripe/services/tax/transaction_service.rb +48 -0
  965. data/stripe-19.3.0/lib/stripe/services/tax_code_service.rb +22 -0
  966. data/stripe-19.3.0/lib/stripe/services/tax_id_service.rb +38 -0
  967. data/stripe-19.3.0/lib/stripe/services/tax_rate_service.rb +38 -0
  968. data/stripe-19.3.0/lib/stripe/services/tax_service.rb +17 -0
  969. data/stripe-19.3.0/lib/stripe/services/terminal/configuration_service.rb +63 -0
  970. data/stripe-19.3.0/lib/stripe/services/terminal/connection_token_service.rb +19 -0
  971. data/stripe-19.3.0/lib/stripe/services/terminal/location_service.rb +64 -0
  972. data/stripe-19.3.0/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  973. data/stripe-19.3.0/lib/stripe/services/terminal/reader_service.rb +151 -0
  974. data/stripe-19.3.0/lib/stripe/services/terminal_service.rb +17 -0
  975. data/stripe-19.3.0/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
  976. data/stripe-19.3.0/lib/stripe/services/test_helpers/customer_service.rb +19 -0
  977. data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/authorization_service.rb +99 -0
  978. data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
  979. data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  980. data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing/transaction_service.rb +51 -0
  981. data/stripe-19.3.0/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  982. data/stripe-19.3.0/lib/stripe/services/test_helpers/refund_service.rb +19 -0
  983. data/stripe-19.3.0/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  984. data/stripe-19.3.0/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  985. data/stripe-19.3.0/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  986. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
  987. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
  988. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
  989. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
  990. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
  991. data/stripe-19.3.0/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  992. data/stripe-19.3.0/lib/stripe/services/test_helpers_service.rb +19 -0
  993. data/stripe-19.3.0/lib/stripe/services/token_service.rb +23 -0
  994. data/stripe-19.3.0/lib/stripe/services/topup_service.rb +49 -0
  995. data/stripe-19.3.0/lib/stripe/services/transfer_reversal_service.rb +56 -0
  996. data/stripe-19.3.0/lib/stripe/services/transfer_service.rb +47 -0
  997. data/stripe-19.3.0/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
  998. data/stripe-19.3.0/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
  999. data/stripe-19.3.0/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
  1000. data/stripe-19.3.0/lib/stripe/services/treasury/financial_account_service.rb +70 -0
  1001. data/stripe-19.3.0/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
  1002. data/stripe-19.3.0/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
  1003. data/stripe-19.3.0/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
  1004. data/stripe-19.3.0/lib/stripe/services/treasury/received_credit_service.rb +30 -0
  1005. data/stripe-19.3.0/lib/stripe/services/treasury/received_debit_service.rb +30 -0
  1006. data/stripe-19.3.0/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
  1007. data/stripe-19.3.0/lib/stripe/services/treasury/transaction_service.rb +30 -0
  1008. data/stripe-19.3.0/lib/stripe/services/treasury_service.rb +22 -0
  1009. data/stripe-19.3.0/lib/stripe/services/v1_services.rb +93 -0
  1010. data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
  1011. data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
  1012. data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
  1013. data/stripe-19.3.0/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
  1014. data/stripe-19.3.0/lib/stripe/services/v2/billing_service.rb +18 -0
  1015. data/stripe-19.3.0/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
  1016. data/stripe-19.3.0/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
  1017. data/stripe-19.3.0/lib/stripe/services/v2/commerce_service.rb +15 -0
  1018. data/stripe-19.3.0/lib/stripe/services/v2/core/account_link_service.rb +23 -0
  1019. data/stripe-19.3.0/lib/stripe/services/v2/core/account_service.rb +91 -0
  1020. data/stripe-19.3.0/lib/stripe/services/v2/core/account_token_service.rb +44 -0
  1021. data/stripe-19.3.0/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
  1022. data/stripe-19.3.0/lib/stripe/services/v2/core/accounts/person_token_service.rb +43 -0
  1023. data/stripe-19.3.0/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
  1024. data/stripe-19.3.0/lib/stripe/services/v2/core/event_service.rb +33 -0
  1025. data/stripe-19.3.0/lib/stripe/services/v2/core_service.rb +19 -0
  1026. data/stripe-19.3.0/lib/stripe/services/v2_services.rb +15 -0
  1027. data/stripe-19.3.0/lib/stripe/services/webhook_endpoint_service.rb +61 -0
  1028. data/stripe-19.3.0/lib/stripe/services.rb +472 -0
  1029. data/stripe-19.3.0/lib/stripe/singleton_api_resource.rb +26 -0
  1030. data/stripe-19.3.0/lib/stripe/stripe_client.rb +97 -0
  1031. data/stripe-19.3.0/lib/stripe/stripe_configuration.rb +210 -0
  1032. data/stripe-19.3.0/lib/stripe/stripe_context.rb +68 -0
  1033. data/stripe-19.3.0/lib/stripe/stripe_object.rb +692 -0
  1034. data/stripe-19.3.0/lib/stripe/stripe_response.rb +108 -0
  1035. data/stripe-19.3.0/lib/stripe/stripe_service.rb +34 -0
  1036. data/stripe-19.3.0/lib/stripe/util.rb +490 -0
  1037. data/stripe-19.3.0/lib/stripe/v2_list_object.rb +84 -0
  1038. data/stripe-19.3.0/lib/stripe/version.rb +5 -0
  1039. data/stripe-19.3.0/lib/stripe/webhook.rb +129 -0
  1040. data/stripe-19.3.0/lib/stripe.rb +185 -0
  1041. data/stripe-19.3.0/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  1042. data/stripe-19.3.0/rbi/stripe/stripe_client.rbi +17 -0
  1043. data/stripe-19.3.0/rbi/stripe.rbi +170441 -0
  1044. metadata +1083 -0
@@ -0,0 +1,2740 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Checkout
6
+ class SessionCreateParams < ::Stripe::RequestParams
7
+ class AdaptivePricing < ::Stripe::RequestParams
8
+ # If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing).
9
+ attr_accessor :enabled
10
+
11
+ def initialize(enabled: nil)
12
+ @enabled = enabled
13
+ end
14
+ end
15
+
16
+ class AfterExpiration < ::Stripe::RequestParams
17
+ class Recovery < ::Stripe::RequestParams
18
+ # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
19
+ attr_accessor :allow_promotion_codes
20
+ # If `true`, a recovery URL will be generated to recover this Checkout Session if it
21
+ # expires before a successful transaction is completed. It will be attached to the
22
+ # Checkout Session object upon expiration.
23
+ attr_accessor :enabled
24
+
25
+ def initialize(allow_promotion_codes: nil, enabled: nil)
26
+ @allow_promotion_codes = allow_promotion_codes
27
+ @enabled = enabled
28
+ end
29
+ end
30
+ # Configure a Checkout Session that can be used to recover an expired session.
31
+ attr_accessor :recovery
32
+
33
+ def initialize(recovery: nil)
34
+ @recovery = recovery
35
+ end
36
+ end
37
+
38
+ class AutomaticTax < ::Stripe::RequestParams
39
+ class Liability < ::Stripe::RequestParams
40
+ # The connected account being referenced when `type` is `account`.
41
+ attr_accessor :account
42
+ # Type of the account referenced in the request.
43
+ attr_accessor :type
44
+
45
+ def initialize(account: nil, type: nil)
46
+ @account = account
47
+ @type = type
48
+ end
49
+ end
50
+ # Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
51
+ #
52
+ # Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
53
+ attr_accessor :enabled
54
+ # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
55
+ attr_accessor :liability
56
+
57
+ def initialize(enabled: nil, liability: nil)
58
+ @enabled = enabled
59
+ @liability = liability
60
+ end
61
+ end
62
+
63
+ class BrandingSettings < ::Stripe::RequestParams
64
+ class Icon < ::Stripe::RequestParams
65
+ # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
66
+ attr_accessor :file
67
+ # The type of image for the icon. Must be one of `file` or `url`.
68
+ attr_accessor :type
69
+ # The URL of the image. Required if `type` is `url` and disallowed otherwise.
70
+ attr_accessor :url
71
+
72
+ def initialize(file: nil, type: nil, url: nil)
73
+ @file = file
74
+ @type = type
75
+ @url = url
76
+ end
77
+ end
78
+
79
+ class Logo < ::Stripe::RequestParams
80
+ # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
81
+ attr_accessor :file
82
+ # The type of image for the logo. Must be one of `file` or `url`.
83
+ attr_accessor :type
84
+ # The URL of the image. Required if `type` is `url` and disallowed otherwise.
85
+ attr_accessor :url
86
+
87
+ def initialize(file: nil, type: nil, url: nil)
88
+ @file = file
89
+ @type = type
90
+ @url = url
91
+ end
92
+ end
93
+ # A hex color value starting with `#` representing the background color for the Checkout Session.
94
+ attr_accessor :background_color
95
+ # The border style for the Checkout Session.
96
+ attr_accessor :border_style
97
+ # A hex color value starting with `#` representing the button color for the Checkout Session.
98
+ attr_accessor :button_color
99
+ # A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
100
+ attr_accessor :display_name
101
+ # The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
102
+ attr_accessor :font_family
103
+ # The icon for the Checkout Session. For best results, use a square image.
104
+ attr_accessor :icon
105
+ # The logo for the Checkout Session.
106
+ attr_accessor :logo
107
+
108
+ def initialize(
109
+ background_color: nil,
110
+ border_style: nil,
111
+ button_color: nil,
112
+ display_name: nil,
113
+ font_family: nil,
114
+ icon: nil,
115
+ logo: nil
116
+ )
117
+ @background_color = background_color
118
+ @border_style = border_style
119
+ @button_color = button_color
120
+ @display_name = display_name
121
+ @font_family = font_family
122
+ @icon = icon
123
+ @logo = logo
124
+ end
125
+ end
126
+
127
+ class ConsentCollection < ::Stripe::RequestParams
128
+ class PaymentMethodReuseAgreement < ::Stripe::RequestParams
129
+ # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
130
+ # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
131
+ attr_accessor :position
132
+
133
+ def initialize(position: nil)
134
+ @position = position
135
+ end
136
+ end
137
+ # Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
138
+ attr_accessor :payment_method_reuse_agreement
139
+ # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
140
+ # Session will determine whether to display an option to opt into promotional communication
141
+ # from the merchant depending on the customer's locale. Only available to US merchants and US customers.
142
+ attr_accessor :promotions
143
+ # If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.
144
+ # There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).
145
+ attr_accessor :terms_of_service
146
+
147
+ def initialize(payment_method_reuse_agreement: nil, promotions: nil, terms_of_service: nil)
148
+ @payment_method_reuse_agreement = payment_method_reuse_agreement
149
+ @promotions = promotions
150
+ @terms_of_service = terms_of_service
151
+ end
152
+ end
153
+
154
+ class CustomField < ::Stripe::RequestParams
155
+ class Dropdown < ::Stripe::RequestParams
156
+ class Option < ::Stripe::RequestParams
157
+ # The label for the option, displayed to the customer. Up to 100 characters.
158
+ attr_accessor :label
159
+ # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
160
+ attr_accessor :value
161
+
162
+ def initialize(label: nil, value: nil)
163
+ @label = label
164
+ @value = value
165
+ end
166
+ end
167
+ # The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
168
+ attr_accessor :default_value
169
+ # The options available for the customer to select. Up to 200 options allowed.
170
+ attr_accessor :options
171
+
172
+ def initialize(default_value: nil, options: nil)
173
+ @default_value = default_value
174
+ @options = options
175
+ end
176
+ end
177
+
178
+ class Label < ::Stripe::RequestParams
179
+ # Custom text for the label, displayed to the customer. Up to 50 characters.
180
+ attr_accessor :custom
181
+ # The type of the label.
182
+ attr_accessor :type
183
+
184
+ def initialize(custom: nil, type: nil)
185
+ @custom = custom
186
+ @type = type
187
+ end
188
+ end
189
+
190
+ class Numeric < ::Stripe::RequestParams
191
+ # The value that pre-fills the field on the payment page.
192
+ attr_accessor :default_value
193
+ # The maximum character length constraint for the customer's input.
194
+ attr_accessor :maximum_length
195
+ # The minimum character length requirement for the customer's input.
196
+ attr_accessor :minimum_length
197
+
198
+ def initialize(default_value: nil, maximum_length: nil, minimum_length: nil)
199
+ @default_value = default_value
200
+ @maximum_length = maximum_length
201
+ @minimum_length = minimum_length
202
+ end
203
+ end
204
+
205
+ class Text < ::Stripe::RequestParams
206
+ # The value that pre-fills the field on the payment page.
207
+ attr_accessor :default_value
208
+ # The maximum character length constraint for the customer's input.
209
+ attr_accessor :maximum_length
210
+ # The minimum character length requirement for the customer's input.
211
+ attr_accessor :minimum_length
212
+
213
+ def initialize(default_value: nil, maximum_length: nil, minimum_length: nil)
214
+ @default_value = default_value
215
+ @maximum_length = maximum_length
216
+ @minimum_length = minimum_length
217
+ end
218
+ end
219
+ # Configuration for `type=dropdown` fields.
220
+ attr_accessor :dropdown
221
+ # String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
222
+ attr_accessor :key
223
+ # The label for the field, displayed to the customer.
224
+ attr_accessor :label
225
+ # Configuration for `type=numeric` fields.
226
+ attr_accessor :numeric
227
+ # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
228
+ attr_accessor :optional
229
+ # Configuration for `type=text` fields.
230
+ attr_accessor :text
231
+ # The type of the field.
232
+ attr_accessor :type
233
+
234
+ def initialize(
235
+ dropdown: nil,
236
+ key: nil,
237
+ label: nil,
238
+ numeric: nil,
239
+ optional: nil,
240
+ text: nil,
241
+ type: nil
242
+ )
243
+ @dropdown = dropdown
244
+ @key = key
245
+ @label = label
246
+ @numeric = numeric
247
+ @optional = optional
248
+ @text = text
249
+ @type = type
250
+ end
251
+ end
252
+
253
+ class CustomText < ::Stripe::RequestParams
254
+ class AfterSubmit < ::Stripe::RequestParams
255
+ # Text can be up to 1200 characters in length.
256
+ attr_accessor :message
257
+
258
+ def initialize(message: nil)
259
+ @message = message
260
+ end
261
+ end
262
+
263
+ class ShippingAddress < ::Stripe::RequestParams
264
+ # Text can be up to 1200 characters in length.
265
+ attr_accessor :message
266
+
267
+ def initialize(message: nil)
268
+ @message = message
269
+ end
270
+ end
271
+
272
+ class Submit < ::Stripe::RequestParams
273
+ # Text can be up to 1200 characters in length.
274
+ attr_accessor :message
275
+
276
+ def initialize(message: nil)
277
+ @message = message
278
+ end
279
+ end
280
+
281
+ class TermsOfServiceAcceptance < ::Stripe::RequestParams
282
+ # Text can be up to 1200 characters in length.
283
+ attr_accessor :message
284
+
285
+ def initialize(message: nil)
286
+ @message = message
287
+ end
288
+ end
289
+ # Custom text that should be displayed after the payment confirmation button.
290
+ attr_accessor :after_submit
291
+ # Custom text that should be displayed alongside shipping address collection.
292
+ attr_accessor :shipping_address
293
+ # Custom text that should be displayed alongside the payment confirmation button.
294
+ attr_accessor :submit
295
+ # Custom text that should be displayed in place of the default terms of service agreement text.
296
+ attr_accessor :terms_of_service_acceptance
297
+
298
+ def initialize(
299
+ after_submit: nil,
300
+ shipping_address: nil,
301
+ submit: nil,
302
+ terms_of_service_acceptance: nil
303
+ )
304
+ @after_submit = after_submit
305
+ @shipping_address = shipping_address
306
+ @submit = submit
307
+ @terms_of_service_acceptance = terms_of_service_acceptance
308
+ end
309
+ end
310
+
311
+ class CustomerUpdate < ::Stripe::RequestParams
312
+ # Describes whether Checkout saves the billing address onto `customer.address`.
313
+ # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`.
314
+ attr_accessor :address
315
+ # Describes whether Checkout saves the name onto `customer.name`. Defaults to `never`.
316
+ attr_accessor :name
317
+ # Describes whether Checkout saves shipping information onto `customer.shipping`.
318
+ # To collect shipping information, use `shipping_address_collection`. Defaults to `never`.
319
+ attr_accessor :shipping
320
+
321
+ def initialize(address: nil, name: nil, shipping: nil)
322
+ @address = address
323
+ @name = name
324
+ @shipping = shipping
325
+ end
326
+ end
327
+
328
+ class Discount < ::Stripe::RequestParams
329
+ # The ID of the coupon to apply to this Session.
330
+ attr_accessor :coupon
331
+ # The ID of a promotion code to apply to this Session.
332
+ attr_accessor :promotion_code
333
+
334
+ def initialize(coupon: nil, promotion_code: nil)
335
+ @coupon = coupon
336
+ @promotion_code = promotion_code
337
+ end
338
+ end
339
+
340
+ class InvoiceCreation < ::Stripe::RequestParams
341
+ class InvoiceData < ::Stripe::RequestParams
342
+ class CustomField < ::Stripe::RequestParams
343
+ # The name of the custom field. This may be up to 40 characters.
344
+ attr_accessor :name
345
+ # The value of the custom field. This may be up to 140 characters.
346
+ attr_accessor :value
347
+
348
+ def initialize(name: nil, value: nil)
349
+ @name = name
350
+ @value = value
351
+ end
352
+ end
353
+
354
+ class Issuer < ::Stripe::RequestParams
355
+ # The connected account being referenced when `type` is `account`.
356
+ attr_accessor :account
357
+ # Type of the account referenced in the request.
358
+ attr_accessor :type
359
+
360
+ def initialize(account: nil, type: nil)
361
+ @account = account
362
+ @type = type
363
+ end
364
+ end
365
+
366
+ class RenderingOptions < ::Stripe::RequestParams
367
+ # 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.
368
+ attr_accessor :amount_tax_display
369
+ # ID of the invoice rendering template to use for this invoice.
370
+ attr_accessor :template
371
+
372
+ def initialize(amount_tax_display: nil, template: nil)
373
+ @amount_tax_display = amount_tax_display
374
+ @template = template
375
+ end
376
+ end
377
+ # The account tax IDs associated with the invoice.
378
+ attr_accessor :account_tax_ids
379
+ # Default custom fields to be displayed on invoices for this customer.
380
+ attr_accessor :custom_fields
381
+ # An arbitrary string attached to the object. Often useful for displaying to users.
382
+ attr_accessor :description
383
+ # Default footer to be displayed on invoices for this customer.
384
+ attr_accessor :footer
385
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
386
+ attr_accessor :issuer
387
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
388
+ attr_accessor :metadata
389
+ # Default options for invoice PDF rendering for this customer.
390
+ attr_accessor :rendering_options
391
+
392
+ def initialize(
393
+ account_tax_ids: nil,
394
+ custom_fields: nil,
395
+ description: nil,
396
+ footer: nil,
397
+ issuer: nil,
398
+ metadata: nil,
399
+ rendering_options: nil
400
+ )
401
+ @account_tax_ids = account_tax_ids
402
+ @custom_fields = custom_fields
403
+ @description = description
404
+ @footer = footer
405
+ @issuer = issuer
406
+ @metadata = metadata
407
+ @rendering_options = rendering_options
408
+ end
409
+ end
410
+ # Set to `true` to enable invoice creation.
411
+ attr_accessor :enabled
412
+ # Parameters passed when creating invoices for payment-mode Checkout Sessions.
413
+ attr_accessor :invoice_data
414
+
415
+ def initialize(enabled: nil, invoice_data: nil)
416
+ @enabled = enabled
417
+ @invoice_data = invoice_data
418
+ end
419
+ end
420
+
421
+ class LineItem < ::Stripe::RequestParams
422
+ class AdjustableQuantity < ::Stripe::RequestParams
423
+ # Set to true if the quantity can be adjusted to any non-negative integer.
424
+ attr_accessor :enabled
425
+ # The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
426
+ attr_accessor :maximum
427
+ # The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
428
+ attr_accessor :minimum
429
+
430
+ def initialize(enabled: nil, maximum: nil, minimum: nil)
431
+ @enabled = enabled
432
+ @maximum = maximum
433
+ @minimum = minimum
434
+ end
435
+ end
436
+
437
+ class PriceData < ::Stripe::RequestParams
438
+ class ProductData < ::Stripe::RequestParams
439
+ # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
440
+ attr_accessor :description
441
+ # A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
442
+ attr_accessor :images
443
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
444
+ attr_accessor :metadata
445
+ # The product's name, meant to be displayable to the customer.
446
+ attr_accessor :name
447
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
448
+ attr_accessor :tax_code
449
+ # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
450
+ attr_accessor :unit_label
451
+
452
+ def initialize(
453
+ description: nil,
454
+ images: nil,
455
+ metadata: nil,
456
+ name: nil,
457
+ tax_code: nil,
458
+ unit_label: nil
459
+ )
460
+ @description = description
461
+ @images = images
462
+ @metadata = metadata
463
+ @name = name
464
+ @tax_code = tax_code
465
+ @unit_label = unit_label
466
+ end
467
+ end
468
+
469
+ class Recurring < ::Stripe::RequestParams
470
+ # Specifies billing frequency. Either `day`, `week`, `month` or `year`.
471
+ attr_accessor :interval
472
+ # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
473
+ attr_accessor :interval_count
474
+
475
+ def initialize(interval: nil, interval_count: nil)
476
+ @interval = interval
477
+ @interval_count = interval_count
478
+ end
479
+ end
480
+ # 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).
481
+ attr_accessor :currency
482
+ # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
483
+ attr_accessor :product
484
+ # Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
485
+ attr_accessor :product_data
486
+ # The recurring components of a price such as `interval` and `interval_count`.
487
+ attr_accessor :recurring
488
+ # Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
489
+ attr_accessor :tax_behavior
490
+ # A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
491
+ attr_accessor :unit_amount
492
+ # Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
493
+ attr_accessor :unit_amount_decimal
494
+
495
+ def initialize(
496
+ currency: nil,
497
+ product: nil,
498
+ product_data: nil,
499
+ recurring: nil,
500
+ tax_behavior: nil,
501
+ unit_amount: nil,
502
+ unit_amount_decimal: nil
503
+ )
504
+ @currency = currency
505
+ @product = product
506
+ @product_data = product_data
507
+ @recurring = recurring
508
+ @tax_behavior = tax_behavior
509
+ @unit_amount = unit_amount
510
+ @unit_amount_decimal = unit_amount_decimal
511
+ end
512
+
513
+ def self.field_encodings
514
+ @field_encodings = { unit_amount_decimal: :decimal_string }
515
+ end
516
+ end
517
+ # When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
518
+ attr_accessor :adjustable_quantity
519
+ # The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter if `ui_mode` is `custom`.
520
+ attr_accessor :dynamic_tax_rates
521
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
522
+ attr_accessor :metadata
523
+ # The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object. One of `price` or `price_data` is required.
524
+ attr_accessor :price
525
+ # Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
526
+ attr_accessor :price_data
527
+ # The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
528
+ attr_accessor :quantity
529
+ # The [tax rates](https://docs.stripe.com/api/tax_rates) which apply to this line item.
530
+ attr_accessor :tax_rates
531
+
532
+ def initialize(
533
+ adjustable_quantity: nil,
534
+ dynamic_tax_rates: nil,
535
+ metadata: nil,
536
+ price: nil,
537
+ price_data: nil,
538
+ quantity: nil,
539
+ tax_rates: nil
540
+ )
541
+ @adjustable_quantity = adjustable_quantity
542
+ @dynamic_tax_rates = dynamic_tax_rates
543
+ @metadata = metadata
544
+ @price = price
545
+ @price_data = price_data
546
+ @quantity = quantity
547
+ @tax_rates = tax_rates
548
+ end
549
+
550
+ def self.field_encodings
551
+ @field_encodings = {
552
+ price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
553
+ }
554
+ end
555
+ end
556
+
557
+ class ManagedPayments < ::Stripe::RequestParams
558
+ # Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
559
+ attr_accessor :enabled
560
+
561
+ def initialize(enabled: nil)
562
+ @enabled = enabled
563
+ end
564
+ end
565
+
566
+ class NameCollection < ::Stripe::RequestParams
567
+ class Business < ::Stripe::RequestParams
568
+ # Enable business name collection on the Checkout Session. Defaults to `false`.
569
+ attr_accessor :enabled
570
+ # Whether the customer is required to provide a business name before completing the Checkout Session. Defaults to `false`.
571
+ attr_accessor :optional
572
+
573
+ def initialize(enabled: nil, optional: nil)
574
+ @enabled = enabled
575
+ @optional = optional
576
+ end
577
+ end
578
+
579
+ class Individual < ::Stripe::RequestParams
580
+ # Enable individual name collection on the Checkout Session. Defaults to `false`.
581
+ attr_accessor :enabled
582
+ # Whether the customer is required to provide their name before completing the Checkout Session. Defaults to `false`.
583
+ attr_accessor :optional
584
+
585
+ def initialize(enabled: nil, optional: nil)
586
+ @enabled = enabled
587
+ @optional = optional
588
+ end
589
+ end
590
+ # Controls settings applied for collecting the customer's business name on the session.
591
+ attr_accessor :business
592
+ # Controls settings applied for collecting the customer's individual name on the session.
593
+ attr_accessor :individual
594
+
595
+ def initialize(business: nil, individual: nil)
596
+ @business = business
597
+ @individual = individual
598
+ end
599
+ end
600
+
601
+ class OptionalItem < ::Stripe::RequestParams
602
+ class AdjustableQuantity < ::Stripe::RequestParams
603
+ # Set to true if the quantity can be adjusted to any non-negative integer.
604
+ attr_accessor :enabled
605
+ # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
606
+ attr_accessor :maximum
607
+ # The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
608
+ attr_accessor :minimum
609
+
610
+ def initialize(enabled: nil, maximum: nil, minimum: nil)
611
+ @enabled = enabled
612
+ @maximum = maximum
613
+ @minimum = minimum
614
+ end
615
+ end
616
+ # When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
617
+ attr_accessor :adjustable_quantity
618
+ # The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object.
619
+ attr_accessor :price
620
+ # The initial quantity of the line item created when a customer chooses to add this optional item to their order.
621
+ attr_accessor :quantity
622
+
623
+ def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
624
+ @adjustable_quantity = adjustable_quantity
625
+ @price = price
626
+ @quantity = quantity
627
+ end
628
+ end
629
+
630
+ class PaymentIntentData < ::Stripe::RequestParams
631
+ class Shipping < ::Stripe::RequestParams
632
+ class Address < ::Stripe::RequestParams
633
+ # City, district, suburb, town, or village.
634
+ attr_accessor :city
635
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
636
+ attr_accessor :country
637
+ # Address line 1, such as the street, PO Box, or company name.
638
+ attr_accessor :line1
639
+ # Address line 2, such as the apartment, suite, unit, or building.
640
+ attr_accessor :line2
641
+ # ZIP or postal code.
642
+ attr_accessor :postal_code
643
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
644
+ attr_accessor :state
645
+
646
+ def initialize(
647
+ city: nil,
648
+ country: nil,
649
+ line1: nil,
650
+ line2: nil,
651
+ postal_code: nil,
652
+ state: nil
653
+ )
654
+ @city = city
655
+ @country = country
656
+ @line1 = line1
657
+ @line2 = line2
658
+ @postal_code = postal_code
659
+ @state = state
660
+ end
661
+ end
662
+ # Shipping address.
663
+ attr_accessor :address
664
+ # The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
665
+ attr_accessor :carrier
666
+ # Recipient name.
667
+ attr_accessor :name
668
+ # Recipient phone (including extension).
669
+ attr_accessor :phone
670
+ # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
671
+ attr_accessor :tracking_number
672
+
673
+ def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
674
+ @address = address
675
+ @carrier = carrier
676
+ @name = name
677
+ @phone = phone
678
+ @tracking_number = tracking_number
679
+ end
680
+ end
681
+
682
+ class TransferData < ::Stripe::RequestParams
683
+ # The amount that will be transferred automatically when a charge succeeds.
684
+ attr_accessor :amount
685
+ # If specified, successful charges will be attributed to the destination
686
+ # account for tax reporting, and the funds from charges will be transferred
687
+ # to the destination account. The ID of the resulting transfer will be
688
+ # returned on the successful charge's `transfer` field.
689
+ attr_accessor :destination
690
+
691
+ def initialize(amount: nil, destination: nil)
692
+ @amount = amount
693
+ @destination = destination
694
+ end
695
+ end
696
+ # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
697
+ attr_accessor :application_fee_amount
698
+ # Controls when the funds will be captured from the customer's account.
699
+ attr_accessor :capture_method
700
+ # An arbitrary string attached to the object. Often useful for displaying to users.
701
+ attr_accessor :description
702
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
703
+ attr_accessor :metadata
704
+ # The Stripe account ID for which these funds are intended. For details,
705
+ # see the PaymentIntents [use case for connected
706
+ # accounts](/docs/payments/connected-accounts).
707
+ attr_accessor :on_behalf_of
708
+ # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
709
+ attr_accessor :receipt_email
710
+ # Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
711
+ # method collected by this Checkout Session.
712
+ #
713
+ # When setting this to `on_session`, Checkout will show a notice to the
714
+ # customer that their payment details will be saved.
715
+ #
716
+ # When setting this to `off_session`, Checkout will show a notice to the
717
+ # customer that their payment details will be saved and used for future
718
+ # payments.
719
+ #
720
+ # If a Customer has been provided or Checkout creates a new Customer,
721
+ # Checkout will attach the payment method to the Customer.
722
+ #
723
+ # If Checkout does not create a Customer, the payment method is not attached
724
+ # to a Customer. To reuse the payment method, you can retrieve it from the
725
+ # Checkout Session's PaymentIntent.
726
+ #
727
+ # When processing card payments, Checkout also uses `setup_future_usage`
728
+ # to dynamically optimize your payment flow and comply with regional
729
+ # legislation and network rules, such as SCA.
730
+ attr_accessor :setup_future_usage
731
+ # Shipping information for this payment.
732
+ attr_accessor :shipping
733
+ # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
734
+ #
735
+ # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
736
+ attr_accessor :statement_descriptor
737
+ # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
738
+ attr_accessor :statement_descriptor_suffix
739
+ # The parameters used to automatically create a Transfer when the payment succeeds.
740
+ # For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
741
+ attr_accessor :transfer_data
742
+ # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
743
+ attr_accessor :transfer_group
744
+
745
+ def initialize(
746
+ application_fee_amount: nil,
747
+ capture_method: nil,
748
+ description: nil,
749
+ metadata: nil,
750
+ on_behalf_of: nil,
751
+ receipt_email: nil,
752
+ setup_future_usage: nil,
753
+ shipping: nil,
754
+ statement_descriptor: nil,
755
+ statement_descriptor_suffix: nil,
756
+ transfer_data: nil,
757
+ transfer_group: nil
758
+ )
759
+ @application_fee_amount = application_fee_amount
760
+ @capture_method = capture_method
761
+ @description = description
762
+ @metadata = metadata
763
+ @on_behalf_of = on_behalf_of
764
+ @receipt_email = receipt_email
765
+ @setup_future_usage = setup_future_usage
766
+ @shipping = shipping
767
+ @statement_descriptor = statement_descriptor
768
+ @statement_descriptor_suffix = statement_descriptor_suffix
769
+ @transfer_data = transfer_data
770
+ @transfer_group = transfer_group
771
+ end
772
+ end
773
+
774
+ class PaymentMethodData < ::Stripe::RequestParams
775
+ # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
776
+ attr_accessor :allow_redisplay
777
+
778
+ def initialize(allow_redisplay: nil)
779
+ @allow_redisplay = allow_redisplay
780
+ end
781
+ end
782
+
783
+ class PaymentMethodOptions < ::Stripe::RequestParams
784
+ class AcssDebit < ::Stripe::RequestParams
785
+ class MandateOptions < ::Stripe::RequestParams
786
+ # A URL for custom mandate text to render during confirmation step.
787
+ # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
788
+ # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
789
+ attr_accessor :custom_mandate_url
790
+ # List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
791
+ attr_accessor :default_for
792
+ # Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
793
+ attr_accessor :interval_description
794
+ # Payment schedule for the mandate.
795
+ attr_accessor :payment_schedule
796
+ # Transaction type of the mandate.
797
+ attr_accessor :transaction_type
798
+
799
+ def initialize(
800
+ custom_mandate_url: nil,
801
+ default_for: nil,
802
+ interval_description: nil,
803
+ payment_schedule: nil,
804
+ transaction_type: nil
805
+ )
806
+ @custom_mandate_url = custom_mandate_url
807
+ @default_for = default_for
808
+ @interval_description = interval_description
809
+ @payment_schedule = payment_schedule
810
+ @transaction_type = transaction_type
811
+ end
812
+ end
813
+ # 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). This is only accepted for Checkout Sessions in `setup` mode.
814
+ attr_accessor :currency
815
+ # Additional fields for Mandate creation
816
+ attr_accessor :mandate_options
817
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
818
+ #
819
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
820
+ #
821
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
822
+ #
823
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
824
+ attr_accessor :setup_future_usage
825
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
826
+ attr_accessor :target_date
827
+ # Verification method for the intent
828
+ attr_accessor :verification_method
829
+
830
+ def initialize(
831
+ currency: nil,
832
+ mandate_options: nil,
833
+ setup_future_usage: nil,
834
+ target_date: nil,
835
+ verification_method: nil
836
+ )
837
+ @currency = currency
838
+ @mandate_options = mandate_options
839
+ @setup_future_usage = setup_future_usage
840
+ @target_date = target_date
841
+ @verification_method = verification_method
842
+ end
843
+ end
844
+
845
+ class Affirm < ::Stripe::RequestParams
846
+ # Controls when the funds will be captured from the customer's account.
847
+ attr_accessor :capture_method
848
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
849
+ #
850
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
851
+ #
852
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
853
+ #
854
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
855
+ attr_accessor :setup_future_usage
856
+
857
+ def initialize(capture_method: nil, setup_future_usage: nil)
858
+ @capture_method = capture_method
859
+ @setup_future_usage = setup_future_usage
860
+ end
861
+ end
862
+
863
+ class AfterpayClearpay < ::Stripe::RequestParams
864
+ # Controls when the funds will be captured from the customer's account.
865
+ attr_accessor :capture_method
866
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
867
+ #
868
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
869
+ #
870
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
871
+ #
872
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
873
+ attr_accessor :setup_future_usage
874
+
875
+ def initialize(capture_method: nil, setup_future_usage: nil)
876
+ @capture_method = capture_method
877
+ @setup_future_usage = setup_future_usage
878
+ end
879
+ end
880
+
881
+ class Alipay < ::Stripe::RequestParams
882
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
883
+ #
884
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
885
+ #
886
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
887
+ #
888
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
889
+ attr_accessor :setup_future_usage
890
+
891
+ def initialize(setup_future_usage: nil)
892
+ @setup_future_usage = setup_future_usage
893
+ end
894
+ end
895
+
896
+ class Alma < ::Stripe::RequestParams
897
+ # Controls when the funds will be captured from the customer's account.
898
+ attr_accessor :capture_method
899
+
900
+ def initialize(capture_method: nil)
901
+ @capture_method = capture_method
902
+ end
903
+ end
904
+
905
+ class AmazonPay < ::Stripe::RequestParams
906
+ # Controls when the funds will be captured from the customer's account.
907
+ attr_accessor :capture_method
908
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
909
+ #
910
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
911
+ #
912
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
913
+ #
914
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
915
+ attr_accessor :setup_future_usage
916
+
917
+ def initialize(capture_method: nil, setup_future_usage: nil)
918
+ @capture_method = capture_method
919
+ @setup_future_usage = setup_future_usage
920
+ end
921
+ end
922
+
923
+ class AuBecsDebit < ::Stripe::RequestParams
924
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
925
+ #
926
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
927
+ #
928
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
929
+ #
930
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
931
+ attr_accessor :setup_future_usage
932
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
933
+ attr_accessor :target_date
934
+
935
+ def initialize(setup_future_usage: nil, target_date: nil)
936
+ @setup_future_usage = setup_future_usage
937
+ @target_date = target_date
938
+ end
939
+ end
940
+
941
+ class BacsDebit < ::Stripe::RequestParams
942
+ class MandateOptions < ::Stripe::RequestParams
943
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
944
+ attr_accessor :reference_prefix
945
+
946
+ def initialize(reference_prefix: nil)
947
+ @reference_prefix = reference_prefix
948
+ end
949
+ end
950
+ # Additional fields for Mandate creation
951
+ attr_accessor :mandate_options
952
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
953
+ #
954
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
955
+ #
956
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
957
+ #
958
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
959
+ attr_accessor :setup_future_usage
960
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
961
+ attr_accessor :target_date
962
+
963
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
964
+ @mandate_options = mandate_options
965
+ @setup_future_usage = setup_future_usage
966
+ @target_date = target_date
967
+ end
968
+ end
969
+
970
+ class Bancontact < ::Stripe::RequestParams
971
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
972
+ #
973
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
974
+ #
975
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
976
+ #
977
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
978
+ attr_accessor :setup_future_usage
979
+
980
+ def initialize(setup_future_usage: nil)
981
+ @setup_future_usage = setup_future_usage
982
+ end
983
+ end
984
+
985
+ class Billie < ::Stripe::RequestParams
986
+ # Controls when the funds will be captured from the customer's account.
987
+ attr_accessor :capture_method
988
+
989
+ def initialize(capture_method: nil)
990
+ @capture_method = capture_method
991
+ end
992
+ end
993
+
994
+ class Boleto < ::Stripe::RequestParams
995
+ # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
996
+ attr_accessor :expires_after_days
997
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
998
+ #
999
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1000
+ #
1001
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1002
+ #
1003
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1004
+ attr_accessor :setup_future_usage
1005
+
1006
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1007
+ @expires_after_days = expires_after_days
1008
+ @setup_future_usage = setup_future_usage
1009
+ end
1010
+ end
1011
+
1012
+ class Card < ::Stripe::RequestParams
1013
+ class Installments < ::Stripe::RequestParams
1014
+ # Setting to true enables installments for this Checkout Session.
1015
+ # Setting to false will prevent any installment plan from applying to a payment.
1016
+ attr_accessor :enabled
1017
+
1018
+ def initialize(enabled: nil)
1019
+ @enabled = enabled
1020
+ end
1021
+ end
1022
+
1023
+ class Restrictions < ::Stripe::RequestParams
1024
+ # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
1025
+ attr_accessor :brands_blocked
1026
+
1027
+ def initialize(brands_blocked: nil)
1028
+ @brands_blocked = brands_blocked
1029
+ end
1030
+ end
1031
+ # Controls when the funds will be captured from the customer's account.
1032
+ attr_accessor :capture_method
1033
+ # Installment options for card payments
1034
+ attr_accessor :installments
1035
+ # Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
1036
+ attr_accessor :request_extended_authorization
1037
+ # Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
1038
+ attr_accessor :request_incremental_authorization
1039
+ # Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.
1040
+ attr_accessor :request_multicapture
1041
+ # Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
1042
+ attr_accessor :request_overcapture
1043
+ # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1044
+ attr_accessor :request_three_d_secure
1045
+ # Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter if `ui_mode` is `custom`.
1046
+ attr_accessor :restrictions
1047
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1048
+ #
1049
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1050
+ #
1051
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1052
+ #
1053
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1054
+ attr_accessor :setup_future_usage
1055
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
1056
+ attr_accessor :statement_descriptor_suffix_kana
1057
+ # Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1058
+ attr_accessor :statement_descriptor_suffix_kanji
1059
+
1060
+ def initialize(
1061
+ capture_method: nil,
1062
+ installments: nil,
1063
+ request_extended_authorization: nil,
1064
+ request_incremental_authorization: nil,
1065
+ request_multicapture: nil,
1066
+ request_overcapture: nil,
1067
+ request_three_d_secure: nil,
1068
+ restrictions: nil,
1069
+ setup_future_usage: nil,
1070
+ statement_descriptor_suffix_kana: nil,
1071
+ statement_descriptor_suffix_kanji: nil
1072
+ )
1073
+ @capture_method = capture_method
1074
+ @installments = installments
1075
+ @request_extended_authorization = request_extended_authorization
1076
+ @request_incremental_authorization = request_incremental_authorization
1077
+ @request_multicapture = request_multicapture
1078
+ @request_overcapture = request_overcapture
1079
+ @request_three_d_secure = request_three_d_secure
1080
+ @restrictions = restrictions
1081
+ @setup_future_usage = setup_future_usage
1082
+ @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
1083
+ @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
1084
+ end
1085
+ end
1086
+
1087
+ class Cashapp < ::Stripe::RequestParams
1088
+ # Controls when the funds will be captured from the customer's account.
1089
+ attr_accessor :capture_method
1090
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1091
+ #
1092
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1093
+ #
1094
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1095
+ #
1096
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1097
+ attr_accessor :setup_future_usage
1098
+
1099
+ def initialize(capture_method: nil, setup_future_usage: nil)
1100
+ @capture_method = capture_method
1101
+ @setup_future_usage = setup_future_usage
1102
+ end
1103
+ end
1104
+
1105
+ class Crypto < ::Stripe::RequestParams
1106
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1107
+ #
1108
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1109
+ #
1110
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1111
+ #
1112
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1113
+ attr_accessor :setup_future_usage
1114
+
1115
+ def initialize(setup_future_usage: nil)
1116
+ @setup_future_usage = setup_future_usage
1117
+ end
1118
+ end
1119
+
1120
+ class CustomerBalance < ::Stripe::RequestParams
1121
+ class BankTransfer < ::Stripe::RequestParams
1122
+ class EuBankTransfer < ::Stripe::RequestParams
1123
+ # The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
1124
+ attr_accessor :country
1125
+
1126
+ def initialize(country: nil)
1127
+ @country = country
1128
+ end
1129
+ end
1130
+ # Configuration for eu_bank_transfer funding type.
1131
+ attr_accessor :eu_bank_transfer
1132
+ # List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
1133
+ #
1134
+ # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
1135
+ attr_accessor :requested_address_types
1136
+ # The list of bank transfer types that this PaymentIntent is allowed to use for funding.
1137
+ attr_accessor :type
1138
+
1139
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
1140
+ @eu_bank_transfer = eu_bank_transfer
1141
+ @requested_address_types = requested_address_types
1142
+ @type = type
1143
+ end
1144
+ end
1145
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
1146
+ attr_accessor :bank_transfer
1147
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1148
+ attr_accessor :funding_type
1149
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1150
+ #
1151
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1152
+ #
1153
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1154
+ #
1155
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1156
+ attr_accessor :setup_future_usage
1157
+
1158
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
1159
+ @bank_transfer = bank_transfer
1160
+ @funding_type = funding_type
1161
+ @setup_future_usage = setup_future_usage
1162
+ end
1163
+ end
1164
+
1165
+ class DemoPay < ::Stripe::RequestParams
1166
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1167
+ #
1168
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1169
+ #
1170
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1171
+ #
1172
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1173
+ attr_accessor :setup_future_usage
1174
+
1175
+ def initialize(setup_future_usage: nil)
1176
+ @setup_future_usage = setup_future_usage
1177
+ end
1178
+ end
1179
+
1180
+ class Eps < ::Stripe::RequestParams
1181
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1182
+ #
1183
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1184
+ #
1185
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1186
+ #
1187
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1188
+ attr_accessor :setup_future_usage
1189
+
1190
+ def initialize(setup_future_usage: nil)
1191
+ @setup_future_usage = setup_future_usage
1192
+ end
1193
+ end
1194
+
1195
+ class Fpx < ::Stripe::RequestParams
1196
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1197
+ #
1198
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1199
+ #
1200
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1201
+ #
1202
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1203
+ attr_accessor :setup_future_usage
1204
+
1205
+ def initialize(setup_future_usage: nil)
1206
+ @setup_future_usage = setup_future_usage
1207
+ end
1208
+ end
1209
+
1210
+ class Giropay < ::Stripe::RequestParams
1211
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1212
+ #
1213
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1214
+ #
1215
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1216
+ #
1217
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1218
+ attr_accessor :setup_future_usage
1219
+
1220
+ def initialize(setup_future_usage: nil)
1221
+ @setup_future_usage = setup_future_usage
1222
+ end
1223
+ end
1224
+
1225
+ class Grabpay < ::Stripe::RequestParams
1226
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1227
+ #
1228
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1229
+ #
1230
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1231
+ #
1232
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1233
+ attr_accessor :setup_future_usage
1234
+
1235
+ def initialize(setup_future_usage: nil)
1236
+ @setup_future_usage = setup_future_usage
1237
+ end
1238
+ end
1239
+
1240
+ class Ideal < ::Stripe::RequestParams
1241
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1242
+ #
1243
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1244
+ #
1245
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1246
+ #
1247
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1248
+ attr_accessor :setup_future_usage
1249
+
1250
+ def initialize(setup_future_usage: nil)
1251
+ @setup_future_usage = setup_future_usage
1252
+ end
1253
+ end
1254
+
1255
+ class KakaoPay < ::Stripe::RequestParams
1256
+ # Controls when the funds will be captured from the customer's account.
1257
+ attr_accessor :capture_method
1258
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1259
+ #
1260
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1261
+ #
1262
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1263
+ #
1264
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1265
+ attr_accessor :setup_future_usage
1266
+
1267
+ def initialize(capture_method: nil, setup_future_usage: nil)
1268
+ @capture_method = capture_method
1269
+ @setup_future_usage = setup_future_usage
1270
+ end
1271
+ end
1272
+
1273
+ class Klarna < ::Stripe::RequestParams
1274
+ class Subscription < ::Stripe::RequestParams
1275
+ class NextBilling < ::Stripe::RequestParams
1276
+ # The amount of the next charge for the subscription.
1277
+ attr_accessor :amount
1278
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
1279
+ attr_accessor :date
1280
+
1281
+ def initialize(amount: nil, date: nil)
1282
+ @amount = amount
1283
+ @date = date
1284
+ end
1285
+ end
1286
+ # Unit of time between subscription charges.
1287
+ attr_accessor :interval
1288
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1289
+ attr_accessor :interval_count
1290
+ # Name for subscription.
1291
+ attr_accessor :name
1292
+ # Describes the upcoming charge for this subscription.
1293
+ attr_accessor :next_billing
1294
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1295
+ attr_accessor :reference
1296
+
1297
+ def initialize(
1298
+ interval: nil,
1299
+ interval_count: nil,
1300
+ name: nil,
1301
+ next_billing: nil,
1302
+ reference: nil
1303
+ )
1304
+ @interval = interval
1305
+ @interval_count = interval_count
1306
+ @name = name
1307
+ @next_billing = next_billing
1308
+ @reference = reference
1309
+ end
1310
+ end
1311
+ # Controls when the funds will be captured from the customer's account.
1312
+ attr_accessor :capture_method
1313
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1314
+ #
1315
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1316
+ #
1317
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1318
+ #
1319
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1320
+ attr_accessor :setup_future_usage
1321
+ # Subscription details if the Checkout Session sets up a future subscription.
1322
+ attr_accessor :subscriptions
1323
+
1324
+ def initialize(capture_method: nil, setup_future_usage: nil, subscriptions: nil)
1325
+ @capture_method = capture_method
1326
+ @setup_future_usage = setup_future_usage
1327
+ @subscriptions = subscriptions
1328
+ end
1329
+ end
1330
+
1331
+ class Konbini < ::Stripe::RequestParams
1332
+ # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
1333
+ attr_accessor :expires_after_days
1334
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1335
+ #
1336
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1337
+ #
1338
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1339
+ #
1340
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1341
+ attr_accessor :setup_future_usage
1342
+
1343
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1344
+ @expires_after_days = expires_after_days
1345
+ @setup_future_usage = setup_future_usage
1346
+ end
1347
+ end
1348
+
1349
+ class KrCard < ::Stripe::RequestParams
1350
+ # Controls when the funds will be captured from the customer's account.
1351
+ attr_accessor :capture_method
1352
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1353
+ #
1354
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1355
+ #
1356
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1357
+ #
1358
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1359
+ attr_accessor :setup_future_usage
1360
+
1361
+ def initialize(capture_method: nil, setup_future_usage: nil)
1362
+ @capture_method = capture_method
1363
+ @setup_future_usage = setup_future_usage
1364
+ end
1365
+ end
1366
+
1367
+ class Link < ::Stripe::RequestParams
1368
+ # Controls when the funds will be captured from the customer's account.
1369
+ attr_accessor :capture_method
1370
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1371
+ #
1372
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1373
+ #
1374
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1375
+ #
1376
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1377
+ attr_accessor :setup_future_usage
1378
+
1379
+ def initialize(capture_method: nil, setup_future_usage: nil)
1380
+ @capture_method = capture_method
1381
+ @setup_future_usage = setup_future_usage
1382
+ end
1383
+ end
1384
+
1385
+ class Mobilepay < ::Stripe::RequestParams
1386
+ # Controls when the funds will be captured from the customer's account.
1387
+ attr_accessor :capture_method
1388
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1389
+ #
1390
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1391
+ #
1392
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1393
+ #
1394
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1395
+ attr_accessor :setup_future_usage
1396
+
1397
+ def initialize(capture_method: nil, setup_future_usage: nil)
1398
+ @capture_method = capture_method
1399
+ @setup_future_usage = setup_future_usage
1400
+ end
1401
+ end
1402
+
1403
+ class Multibanco < ::Stripe::RequestParams
1404
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1405
+ #
1406
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1407
+ #
1408
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1409
+ #
1410
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1411
+ attr_accessor :setup_future_usage
1412
+
1413
+ def initialize(setup_future_usage: nil)
1414
+ @setup_future_usage = setup_future_usage
1415
+ end
1416
+ end
1417
+
1418
+ class NaverPay < ::Stripe::RequestParams
1419
+ # Controls when the funds will be captured from the customer's account.
1420
+ attr_accessor :capture_method
1421
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1422
+ #
1423
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1424
+ #
1425
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1426
+ #
1427
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1428
+ attr_accessor :setup_future_usage
1429
+
1430
+ def initialize(capture_method: nil, setup_future_usage: nil)
1431
+ @capture_method = capture_method
1432
+ @setup_future_usage = setup_future_usage
1433
+ end
1434
+ end
1435
+
1436
+ class Oxxo < ::Stripe::RequestParams
1437
+ # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
1438
+ attr_accessor :expires_after_days
1439
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1440
+ #
1441
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1442
+ #
1443
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1444
+ #
1445
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1446
+ attr_accessor :setup_future_usage
1447
+
1448
+ def initialize(expires_after_days: nil, setup_future_usage: nil)
1449
+ @expires_after_days = expires_after_days
1450
+ @setup_future_usage = setup_future_usage
1451
+ end
1452
+ end
1453
+
1454
+ class P24 < ::Stripe::RequestParams
1455
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1456
+ #
1457
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1458
+ #
1459
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1460
+ #
1461
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1462
+ attr_accessor :setup_future_usage
1463
+ # Confirm that the payer has accepted the P24 terms and conditions.
1464
+ attr_accessor :tos_shown_and_accepted
1465
+
1466
+ def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
1467
+ @setup_future_usage = setup_future_usage
1468
+ @tos_shown_and_accepted = tos_shown_and_accepted
1469
+ end
1470
+ end
1471
+
1472
+ class PayByBank < ::Stripe::RequestParams; end
1473
+
1474
+ class Payco < ::Stripe::RequestParams
1475
+ # Controls when the funds will be captured from the customer's account.
1476
+ attr_accessor :capture_method
1477
+
1478
+ def initialize(capture_method: nil)
1479
+ @capture_method = capture_method
1480
+ end
1481
+ end
1482
+
1483
+ class Paynow < ::Stripe::RequestParams
1484
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1485
+ #
1486
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1487
+ #
1488
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1489
+ #
1490
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1491
+ attr_accessor :setup_future_usage
1492
+
1493
+ def initialize(setup_future_usage: nil)
1494
+ @setup_future_usage = setup_future_usage
1495
+ end
1496
+ end
1497
+
1498
+ class Paypal < ::Stripe::RequestParams
1499
+ # Controls when the funds will be captured from the customer's account.
1500
+ attr_accessor :capture_method
1501
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1502
+ attr_accessor :preferred_locale
1503
+ # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
1504
+ attr_accessor :reference
1505
+ # The risk correlation ID for an on-session payment using a saved PayPal payment method.
1506
+ attr_accessor :risk_correlation_id
1507
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1508
+ #
1509
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1510
+ #
1511
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1512
+ #
1513
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1514
+ #
1515
+ # If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1516
+ attr_accessor :setup_future_usage
1517
+
1518
+ def initialize(
1519
+ capture_method: nil,
1520
+ preferred_locale: nil,
1521
+ reference: nil,
1522
+ risk_correlation_id: nil,
1523
+ setup_future_usage: nil
1524
+ )
1525
+ @capture_method = capture_method
1526
+ @preferred_locale = preferred_locale
1527
+ @reference = reference
1528
+ @risk_correlation_id = risk_correlation_id
1529
+ @setup_future_usage = setup_future_usage
1530
+ end
1531
+ end
1532
+
1533
+ class Payto < ::Stripe::RequestParams
1534
+ class MandateOptions < ::Stripe::RequestParams
1535
+ # Amount that will be collected. It is required when `amount_type` is `fixed`.
1536
+ attr_accessor :amount
1537
+ # The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
1538
+ attr_accessor :amount_type
1539
+ # Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1540
+ attr_accessor :end_date
1541
+ # The periodicity at which payments will be collected. Defaults to `adhoc`.
1542
+ attr_accessor :payment_schedule
1543
+ # The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1544
+ attr_accessor :payments_per_period
1545
+ # The purpose for which payments are made. Has a default value based on your merchant category code.
1546
+ attr_accessor :purpose
1547
+ # Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1548
+ attr_accessor :start_date
1549
+
1550
+ def initialize(
1551
+ amount: nil,
1552
+ amount_type: nil,
1553
+ end_date: nil,
1554
+ payment_schedule: nil,
1555
+ payments_per_period: nil,
1556
+ purpose: nil,
1557
+ start_date: nil
1558
+ )
1559
+ @amount = amount
1560
+ @amount_type = amount_type
1561
+ @end_date = end_date
1562
+ @payment_schedule = payment_schedule
1563
+ @payments_per_period = payments_per_period
1564
+ @purpose = purpose
1565
+ @start_date = start_date
1566
+ end
1567
+ end
1568
+ # Additional fields for Mandate creation
1569
+ attr_accessor :mandate_options
1570
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1571
+ #
1572
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1573
+ #
1574
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1575
+ #
1576
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1577
+ attr_accessor :setup_future_usage
1578
+
1579
+ def initialize(mandate_options: nil, setup_future_usage: nil)
1580
+ @mandate_options = mandate_options
1581
+ @setup_future_usage = setup_future_usage
1582
+ end
1583
+ end
1584
+
1585
+ class Pix < ::Stripe::RequestParams
1586
+ class MandateOptions < ::Stripe::RequestParams
1587
+ # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
1588
+ attr_accessor :amount
1589
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
1590
+ attr_accessor :amount_includes_iof
1591
+ # Type of amount. Defaults to `maximum`.
1592
+ attr_accessor :amount_type
1593
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
1594
+ attr_accessor :currency
1595
+ # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
1596
+ attr_accessor :end_date
1597
+ # Schedule at which the future payments will be charged. Defaults to `monthly`.
1598
+ attr_accessor :payment_schedule
1599
+ # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
1600
+ attr_accessor :reference
1601
+ # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
1602
+ attr_accessor :start_date
1603
+
1604
+ def initialize(
1605
+ amount: nil,
1606
+ amount_includes_iof: nil,
1607
+ amount_type: nil,
1608
+ currency: nil,
1609
+ end_date: nil,
1610
+ payment_schedule: nil,
1611
+ reference: nil,
1612
+ start_date: nil
1613
+ )
1614
+ @amount = amount
1615
+ @amount_includes_iof = amount_includes_iof
1616
+ @amount_type = amount_type
1617
+ @currency = currency
1618
+ @end_date = end_date
1619
+ @payment_schedule = payment_schedule
1620
+ @reference = reference
1621
+ @start_date = start_date
1622
+ end
1623
+ end
1624
+ # Determines if the amount includes the IOF tax. Defaults to `never`.
1625
+ attr_accessor :amount_includes_iof
1626
+ # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
1627
+ attr_accessor :expires_after_seconds
1628
+ # Additional fields for mandate creation.
1629
+ attr_accessor :mandate_options
1630
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1631
+ #
1632
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1633
+ #
1634
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1635
+ #
1636
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1637
+ attr_accessor :setup_future_usage
1638
+
1639
+ def initialize(
1640
+ amount_includes_iof: nil,
1641
+ expires_after_seconds: nil,
1642
+ mandate_options: nil,
1643
+ setup_future_usage: nil
1644
+ )
1645
+ @amount_includes_iof = amount_includes_iof
1646
+ @expires_after_seconds = expires_after_seconds
1647
+ @mandate_options = mandate_options
1648
+ @setup_future_usage = setup_future_usage
1649
+ end
1650
+ end
1651
+
1652
+ class RevolutPay < ::Stripe::RequestParams
1653
+ # Controls when the funds will be captured from the customer's account.
1654
+ attr_accessor :capture_method
1655
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1656
+ #
1657
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1658
+ #
1659
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1660
+ #
1661
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1662
+ attr_accessor :setup_future_usage
1663
+
1664
+ def initialize(capture_method: nil, setup_future_usage: nil)
1665
+ @capture_method = capture_method
1666
+ @setup_future_usage = setup_future_usage
1667
+ end
1668
+ end
1669
+
1670
+ class SamsungPay < ::Stripe::RequestParams
1671
+ # Controls when the funds will be captured from the customer's account.
1672
+ attr_accessor :capture_method
1673
+
1674
+ def initialize(capture_method: nil)
1675
+ @capture_method = capture_method
1676
+ end
1677
+ end
1678
+
1679
+ class Satispay < ::Stripe::RequestParams
1680
+ # Controls when the funds will be captured from the customer's account.
1681
+ attr_accessor :capture_method
1682
+
1683
+ def initialize(capture_method: nil)
1684
+ @capture_method = capture_method
1685
+ end
1686
+ end
1687
+
1688
+ class Scalapay < ::Stripe::RequestParams
1689
+ # Controls when the funds will be captured from the customer's account.
1690
+ attr_accessor :capture_method
1691
+
1692
+ def initialize(capture_method: nil)
1693
+ @capture_method = capture_method
1694
+ end
1695
+ end
1696
+
1697
+ class SepaDebit < ::Stripe::RequestParams
1698
+ class MandateOptions < ::Stripe::RequestParams
1699
+ # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
1700
+ attr_accessor :reference_prefix
1701
+
1702
+ def initialize(reference_prefix: nil)
1703
+ @reference_prefix = reference_prefix
1704
+ end
1705
+ end
1706
+ # Additional fields for Mandate creation
1707
+ attr_accessor :mandate_options
1708
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1709
+ #
1710
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1711
+ #
1712
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1713
+ #
1714
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1715
+ attr_accessor :setup_future_usage
1716
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1717
+ attr_accessor :target_date
1718
+
1719
+ def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
1720
+ @mandate_options = mandate_options
1721
+ @setup_future_usage = setup_future_usage
1722
+ @target_date = target_date
1723
+ end
1724
+ end
1725
+
1726
+ class Sofort < ::Stripe::RequestParams
1727
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1728
+ #
1729
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1730
+ #
1731
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1732
+ #
1733
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1734
+ attr_accessor :setup_future_usage
1735
+
1736
+ def initialize(setup_future_usage: nil)
1737
+ @setup_future_usage = setup_future_usage
1738
+ end
1739
+ end
1740
+
1741
+ class Sunbit < ::Stripe::RequestParams
1742
+ # Controls when the funds will be captured from the customer's account.
1743
+ attr_accessor :capture_method
1744
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1745
+ #
1746
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1747
+ #
1748
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1749
+ #
1750
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1751
+ attr_accessor :setup_future_usage
1752
+
1753
+ def initialize(capture_method: nil, setup_future_usage: nil)
1754
+ @capture_method = capture_method
1755
+ @setup_future_usage = setup_future_usage
1756
+ end
1757
+ end
1758
+
1759
+ class Swish < ::Stripe::RequestParams
1760
+ # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
1761
+ attr_accessor :reference
1762
+
1763
+ def initialize(reference: nil)
1764
+ @reference = reference
1765
+ end
1766
+ end
1767
+
1768
+ class Twint < ::Stripe::RequestParams
1769
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1770
+ #
1771
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1772
+ #
1773
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1774
+ #
1775
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1776
+ attr_accessor :setup_future_usage
1777
+
1778
+ def initialize(setup_future_usage: nil)
1779
+ @setup_future_usage = setup_future_usage
1780
+ end
1781
+ end
1782
+
1783
+ class Upi < ::Stripe::RequestParams
1784
+ class MandateOptions < ::Stripe::RequestParams
1785
+ # Amount to be charged for future payments.
1786
+ attr_accessor :amount
1787
+ # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
1788
+ attr_accessor :amount_type
1789
+ # A description of the mandate or subscription that is meant to be displayed to the customer.
1790
+ attr_accessor :description
1791
+ # End date of the mandate or subscription.
1792
+ attr_accessor :end_date
1793
+
1794
+ def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
1795
+ @amount = amount
1796
+ @amount_type = amount_type
1797
+ @description = description
1798
+ @end_date = end_date
1799
+ end
1800
+ end
1801
+ # Additional fields for Mandate creation
1802
+ attr_accessor :mandate_options
1803
+ # Attribute for param field setup_future_usage
1804
+ attr_accessor :setup_future_usage
1805
+
1806
+ def initialize(mandate_options: nil, setup_future_usage: nil)
1807
+ @mandate_options = mandate_options
1808
+ @setup_future_usage = setup_future_usage
1809
+ end
1810
+ end
1811
+
1812
+ class UsBankAccount < ::Stripe::RequestParams
1813
+ class FinancialConnections < ::Stripe::RequestParams
1814
+ # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1815
+ attr_accessor :permissions
1816
+ # List of data features that you would like to retrieve upon account creation.
1817
+ attr_accessor :prefetch
1818
+
1819
+ def initialize(permissions: nil, prefetch: nil)
1820
+ @permissions = permissions
1821
+ @prefetch = prefetch
1822
+ end
1823
+ end
1824
+ # Additional fields for Financial Connections Session creation
1825
+ attr_accessor :financial_connections
1826
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1827
+ #
1828
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1829
+ #
1830
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1831
+ #
1832
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1833
+ attr_accessor :setup_future_usage
1834
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1835
+ attr_accessor :target_date
1836
+ # Verification method for the intent
1837
+ attr_accessor :verification_method
1838
+
1839
+ def initialize(
1840
+ financial_connections: nil,
1841
+ setup_future_usage: nil,
1842
+ target_date: nil,
1843
+ verification_method: nil
1844
+ )
1845
+ @financial_connections = financial_connections
1846
+ @setup_future_usage = setup_future_usage
1847
+ @target_date = target_date
1848
+ @verification_method = verification_method
1849
+ end
1850
+ end
1851
+
1852
+ class WechatPay < ::Stripe::RequestParams
1853
+ # The app ID registered with WeChat Pay. Only required when client is ios or android.
1854
+ attr_accessor :app_id
1855
+ # The client type that the end customer will pay from
1856
+ attr_accessor :client
1857
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1858
+ #
1859
+ # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
1860
+ #
1861
+ # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
1862
+ #
1863
+ # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1864
+ attr_accessor :setup_future_usage
1865
+
1866
+ def initialize(app_id: nil, client: nil, setup_future_usage: nil)
1867
+ @app_id = app_id
1868
+ @client = client
1869
+ @setup_future_usage = setup_future_usage
1870
+ end
1871
+ end
1872
+ # contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `elements`.
1873
+ attr_accessor :acss_debit
1874
+ # contains details about the Affirm payment method options.
1875
+ attr_accessor :affirm
1876
+ # contains details about the Afterpay Clearpay payment method options.
1877
+ attr_accessor :afterpay_clearpay
1878
+ # contains details about the Alipay payment method options.
1879
+ attr_accessor :alipay
1880
+ # contains details about the Alma payment method options.
1881
+ attr_accessor :alma
1882
+ # contains details about the AmazonPay payment method options.
1883
+ attr_accessor :amazon_pay
1884
+ # contains details about the AU Becs Debit payment method options.
1885
+ attr_accessor :au_becs_debit
1886
+ # contains details about the Bacs Debit payment method options.
1887
+ attr_accessor :bacs_debit
1888
+ # contains details about the Bancontact payment method options.
1889
+ attr_accessor :bancontact
1890
+ # contains details about the Billie payment method options.
1891
+ attr_accessor :billie
1892
+ # contains details about the Boleto payment method options.
1893
+ attr_accessor :boleto
1894
+ # contains details about the Card payment method options.
1895
+ attr_accessor :card
1896
+ # contains details about the Cashapp Pay payment method options.
1897
+ attr_accessor :cashapp
1898
+ # contains details about the Crypto payment method options.
1899
+ attr_accessor :crypto
1900
+ # contains details about the Customer Balance payment method options.
1901
+ attr_accessor :customer_balance
1902
+ # contains details about the DemoPay payment method options.
1903
+ attr_accessor :demo_pay
1904
+ # contains details about the EPS payment method options.
1905
+ attr_accessor :eps
1906
+ # contains details about the FPX payment method options.
1907
+ attr_accessor :fpx
1908
+ # contains details about the Giropay payment method options.
1909
+ attr_accessor :giropay
1910
+ # contains details about the Grabpay payment method options.
1911
+ attr_accessor :grabpay
1912
+ # contains details about the Ideal payment method options.
1913
+ attr_accessor :ideal
1914
+ # contains details about the Kakao Pay payment method options.
1915
+ attr_accessor :kakao_pay
1916
+ # contains details about the Klarna payment method options.
1917
+ attr_accessor :klarna
1918
+ # contains details about the Konbini payment method options.
1919
+ attr_accessor :konbini
1920
+ # contains details about the Korean card payment method options.
1921
+ attr_accessor :kr_card
1922
+ # contains details about the Link payment method options (Link is also known as Onelink in the UK).
1923
+ attr_accessor :link
1924
+ # contains details about the Mobilepay payment method options.
1925
+ attr_accessor :mobilepay
1926
+ # contains details about the Multibanco payment method options.
1927
+ attr_accessor :multibanco
1928
+ # contains details about the Naver Pay payment method options.
1929
+ attr_accessor :naver_pay
1930
+ # contains details about the OXXO payment method options.
1931
+ attr_accessor :oxxo
1932
+ # contains details about the P24 payment method options.
1933
+ attr_accessor :p24
1934
+ # contains details about the Pay By Bank payment method options.
1935
+ attr_accessor :pay_by_bank
1936
+ # contains details about the PAYCO payment method options.
1937
+ attr_accessor :payco
1938
+ # contains details about the PayNow payment method options.
1939
+ attr_accessor :paynow
1940
+ # contains details about the PayPal payment method options.
1941
+ attr_accessor :paypal
1942
+ # contains details about the PayTo payment method options.
1943
+ attr_accessor :payto
1944
+ # contains details about the Pix payment method options.
1945
+ attr_accessor :pix
1946
+ # contains details about the RevolutPay payment method options.
1947
+ attr_accessor :revolut_pay
1948
+ # contains details about the Samsung Pay payment method options.
1949
+ attr_accessor :samsung_pay
1950
+ # contains details about the Satispay payment method options.
1951
+ attr_accessor :satispay
1952
+ # contains details about the Scalapay payment method options.
1953
+ attr_accessor :scalapay
1954
+ # contains details about the Sepa Debit payment method options.
1955
+ attr_accessor :sepa_debit
1956
+ # contains details about the Sofort payment method options.
1957
+ attr_accessor :sofort
1958
+ # contains details about the Sunbit payment method options.
1959
+ attr_accessor :sunbit
1960
+ # contains details about the Swish payment method options.
1961
+ attr_accessor :swish
1962
+ # contains details about the TWINT payment method options.
1963
+ attr_accessor :twint
1964
+ # contains details about the UPI payment method options.
1965
+ attr_accessor :upi
1966
+ # contains details about the Us Bank Account payment method options.
1967
+ attr_accessor :us_bank_account
1968
+ # contains details about the WeChat Pay payment method options.
1969
+ attr_accessor :wechat_pay
1970
+
1971
+ def initialize(
1972
+ acss_debit: nil,
1973
+ affirm: nil,
1974
+ afterpay_clearpay: nil,
1975
+ alipay: nil,
1976
+ alma: nil,
1977
+ amazon_pay: nil,
1978
+ au_becs_debit: nil,
1979
+ bacs_debit: nil,
1980
+ bancontact: nil,
1981
+ billie: nil,
1982
+ boleto: nil,
1983
+ card: nil,
1984
+ cashapp: nil,
1985
+ crypto: nil,
1986
+ customer_balance: nil,
1987
+ demo_pay: nil,
1988
+ eps: nil,
1989
+ fpx: nil,
1990
+ giropay: nil,
1991
+ grabpay: nil,
1992
+ ideal: nil,
1993
+ kakao_pay: nil,
1994
+ klarna: nil,
1995
+ konbini: nil,
1996
+ kr_card: nil,
1997
+ link: nil,
1998
+ mobilepay: nil,
1999
+ multibanco: nil,
2000
+ naver_pay: nil,
2001
+ oxxo: nil,
2002
+ p24: nil,
2003
+ pay_by_bank: nil,
2004
+ payco: nil,
2005
+ paynow: nil,
2006
+ paypal: nil,
2007
+ payto: nil,
2008
+ pix: nil,
2009
+ revolut_pay: nil,
2010
+ samsung_pay: nil,
2011
+ satispay: nil,
2012
+ scalapay: nil,
2013
+ sepa_debit: nil,
2014
+ sofort: nil,
2015
+ sunbit: nil,
2016
+ swish: nil,
2017
+ twint: nil,
2018
+ upi: nil,
2019
+ us_bank_account: nil,
2020
+ wechat_pay: nil
2021
+ )
2022
+ @acss_debit = acss_debit
2023
+ @affirm = affirm
2024
+ @afterpay_clearpay = afterpay_clearpay
2025
+ @alipay = alipay
2026
+ @alma = alma
2027
+ @amazon_pay = amazon_pay
2028
+ @au_becs_debit = au_becs_debit
2029
+ @bacs_debit = bacs_debit
2030
+ @bancontact = bancontact
2031
+ @billie = billie
2032
+ @boleto = boleto
2033
+ @card = card
2034
+ @cashapp = cashapp
2035
+ @crypto = crypto
2036
+ @customer_balance = customer_balance
2037
+ @demo_pay = demo_pay
2038
+ @eps = eps
2039
+ @fpx = fpx
2040
+ @giropay = giropay
2041
+ @grabpay = grabpay
2042
+ @ideal = ideal
2043
+ @kakao_pay = kakao_pay
2044
+ @klarna = klarna
2045
+ @konbini = konbini
2046
+ @kr_card = kr_card
2047
+ @link = link
2048
+ @mobilepay = mobilepay
2049
+ @multibanco = multibanco
2050
+ @naver_pay = naver_pay
2051
+ @oxxo = oxxo
2052
+ @p24 = p24
2053
+ @pay_by_bank = pay_by_bank
2054
+ @payco = payco
2055
+ @paynow = paynow
2056
+ @paypal = paypal
2057
+ @payto = payto
2058
+ @pix = pix
2059
+ @revolut_pay = revolut_pay
2060
+ @samsung_pay = samsung_pay
2061
+ @satispay = satispay
2062
+ @scalapay = scalapay
2063
+ @sepa_debit = sepa_debit
2064
+ @sofort = sofort
2065
+ @sunbit = sunbit
2066
+ @swish = swish
2067
+ @twint = twint
2068
+ @upi = upi
2069
+ @us_bank_account = us_bank_account
2070
+ @wechat_pay = wechat_pay
2071
+ end
2072
+ end
2073
+
2074
+ class Permissions < ::Stripe::RequestParams
2075
+ # Determines which entity is allowed to update the shipping details.
2076
+ #
2077
+ # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2078
+ #
2079
+ # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2080
+ attr_accessor :update_shipping_details
2081
+
2082
+ def initialize(update_shipping_details: nil)
2083
+ @update_shipping_details = update_shipping_details
2084
+ end
2085
+ end
2086
+
2087
+ class PhoneNumberCollection < ::Stripe::RequestParams
2088
+ # Set to `true` to enable phone number collection.
2089
+ #
2090
+ # Can only be set in `payment` and `subscription` mode.
2091
+ attr_accessor :enabled
2092
+
2093
+ def initialize(enabled: nil)
2094
+ @enabled = enabled
2095
+ end
2096
+ end
2097
+
2098
+ class SavedPaymentMethodOptions < ::Stripe::RequestParams
2099
+ # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
2100
+ attr_accessor :allow_redisplay_filters
2101
+ # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
2102
+ attr_accessor :payment_method_remove
2103
+ # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
2104
+ attr_accessor :payment_method_save
2105
+
2106
+ def initialize(
2107
+ allow_redisplay_filters: nil,
2108
+ payment_method_remove: nil,
2109
+ payment_method_save: nil
2110
+ )
2111
+ @allow_redisplay_filters = allow_redisplay_filters
2112
+ @payment_method_remove = payment_method_remove
2113
+ @payment_method_save = payment_method_save
2114
+ end
2115
+ end
2116
+
2117
+ class SetupIntentData < ::Stripe::RequestParams
2118
+ # An arbitrary string attached to the object. Often useful for displaying to users.
2119
+ attr_accessor :description
2120
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2121
+ attr_accessor :metadata
2122
+ # The Stripe account for which the setup is intended.
2123
+ attr_accessor :on_behalf_of
2124
+
2125
+ def initialize(description: nil, metadata: nil, on_behalf_of: nil)
2126
+ @description = description
2127
+ @metadata = metadata
2128
+ @on_behalf_of = on_behalf_of
2129
+ end
2130
+ end
2131
+
2132
+ class ShippingAddressCollection < ::Stripe::RequestParams
2133
+ # An array of two-letter ISO country codes representing which countries Checkout should provide as options for
2134
+ # shipping locations.
2135
+ attr_accessor :allowed_countries
2136
+
2137
+ def initialize(allowed_countries: nil)
2138
+ @allowed_countries = allowed_countries
2139
+ end
2140
+ end
2141
+
2142
+ class ShippingOption < ::Stripe::RequestParams
2143
+ class ShippingRateData < ::Stripe::RequestParams
2144
+ class DeliveryEstimate < ::Stripe::RequestParams
2145
+ class Maximum < ::Stripe::RequestParams
2146
+ # A unit of time.
2147
+ attr_accessor :unit
2148
+ # Must be greater than 0.
2149
+ attr_accessor :value
2150
+
2151
+ def initialize(unit: nil, value: nil)
2152
+ @unit = unit
2153
+ @value = value
2154
+ end
2155
+ end
2156
+
2157
+ class Minimum < ::Stripe::RequestParams
2158
+ # A unit of time.
2159
+ attr_accessor :unit
2160
+ # Must be greater than 0.
2161
+ attr_accessor :value
2162
+
2163
+ def initialize(unit: nil, value: nil)
2164
+ @unit = unit
2165
+ @value = value
2166
+ end
2167
+ end
2168
+ # The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
2169
+ attr_accessor :maximum
2170
+ # The lower bound of the estimated range. If empty, represents no lower bound.
2171
+ attr_accessor :minimum
2172
+
2173
+ def initialize(maximum: nil, minimum: nil)
2174
+ @maximum = maximum
2175
+ @minimum = minimum
2176
+ end
2177
+ end
2178
+
2179
+ class FixedAmount < ::Stripe::RequestParams
2180
+ class CurrencyOptions < ::Stripe::RequestParams
2181
+ # A non-negative integer in cents representing how much to charge.
2182
+ attr_accessor :amount
2183
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2184
+ attr_accessor :tax_behavior
2185
+
2186
+ def initialize(amount: nil, tax_behavior: nil)
2187
+ @amount = amount
2188
+ @tax_behavior = tax_behavior
2189
+ end
2190
+ end
2191
+ # A non-negative integer in cents representing how much to charge.
2192
+ attr_accessor :amount
2193
+ # 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).
2194
+ attr_accessor :currency
2195
+ # Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
2196
+ attr_accessor :currency_options
2197
+
2198
+ def initialize(amount: nil, currency: nil, currency_options: nil)
2199
+ @amount = amount
2200
+ @currency = currency
2201
+ @currency_options = currency_options
2202
+ end
2203
+ end
2204
+ # The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
2205
+ attr_accessor :delivery_estimate
2206
+ # The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
2207
+ attr_accessor :display_name
2208
+ # Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
2209
+ attr_accessor :fixed_amount
2210
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2211
+ attr_accessor :metadata
2212
+ # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
2213
+ attr_accessor :tax_behavior
2214
+ # A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
2215
+ attr_accessor :tax_code
2216
+ # The type of calculation to use on the shipping rate.
2217
+ attr_accessor :type
2218
+
2219
+ def initialize(
2220
+ delivery_estimate: nil,
2221
+ display_name: nil,
2222
+ fixed_amount: nil,
2223
+ metadata: nil,
2224
+ tax_behavior: nil,
2225
+ tax_code: nil,
2226
+ type: nil
2227
+ )
2228
+ @delivery_estimate = delivery_estimate
2229
+ @display_name = display_name
2230
+ @fixed_amount = fixed_amount
2231
+ @metadata = metadata
2232
+ @tax_behavior = tax_behavior
2233
+ @tax_code = tax_code
2234
+ @type = type
2235
+ end
2236
+ end
2237
+ # The ID of the Shipping Rate to use for this shipping option.
2238
+ attr_accessor :shipping_rate
2239
+ # Parameters to be passed to Shipping Rate creation for this shipping option.
2240
+ attr_accessor :shipping_rate_data
2241
+
2242
+ def initialize(shipping_rate: nil, shipping_rate_data: nil)
2243
+ @shipping_rate = shipping_rate
2244
+ @shipping_rate_data = shipping_rate_data
2245
+ end
2246
+ end
2247
+
2248
+ class SubscriptionData < ::Stripe::RequestParams
2249
+ class BillingCycleAnchorConfig < ::Stripe::RequestParams
2250
+ # The day of the month the anchor should be. Ranges from 1 to 31.
2251
+ attr_accessor :day_of_month
2252
+ # The hour of the day the anchor should be. Ranges from 0 to 23.
2253
+ attr_accessor :hour
2254
+ # The minute of the hour the anchor should be. Ranges from 0 to 59.
2255
+ attr_accessor :minute
2256
+ # The month to start full cycle periods. Ranges from 1 to 12.
2257
+ attr_accessor :month
2258
+ # The second of the minute the anchor should be. Ranges from 0 to 59.
2259
+ attr_accessor :second
2260
+
2261
+ def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
2262
+ @day_of_month = day_of_month
2263
+ @hour = hour
2264
+ @minute = minute
2265
+ @month = month
2266
+ @second = second
2267
+ end
2268
+ end
2269
+
2270
+ class BillingMode < ::Stripe::RequestParams
2271
+ class Flexible < ::Stripe::RequestParams
2272
+ # Controls how invoices and invoice items display proration amounts and discount amounts.
2273
+ attr_accessor :proration_discounts
2274
+
2275
+ def initialize(proration_discounts: nil)
2276
+ @proration_discounts = proration_discounts
2277
+ end
2278
+ end
2279
+ # Configure behavior for flexible billing mode.
2280
+ attr_accessor :flexible
2281
+ # Controls the calculation and orchestration of prorations and invoices for subscriptions. If no value is passed, the default is `flexible`.
2282
+ attr_accessor :type
2283
+
2284
+ def initialize(flexible: nil, type: nil)
2285
+ @flexible = flexible
2286
+ @type = type
2287
+ end
2288
+ end
2289
+
2290
+ class InvoiceSettings < ::Stripe::RequestParams
2291
+ class Issuer < ::Stripe::RequestParams
2292
+ # The connected account being referenced when `type` is `account`.
2293
+ attr_accessor :account
2294
+ # Type of the account referenced in the request.
2295
+ attr_accessor :type
2296
+
2297
+ def initialize(account: nil, type: nil)
2298
+ @account = account
2299
+ @type = type
2300
+ end
2301
+ end
2302
+ # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
2303
+ attr_accessor :issuer
2304
+
2305
+ def initialize(issuer: nil)
2306
+ @issuer = issuer
2307
+ end
2308
+ end
2309
+
2310
+ class PendingInvoiceItemInterval < ::Stripe::RequestParams
2311
+ # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`.
2312
+ attr_accessor :interval
2313
+ # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
2314
+ attr_accessor :interval_count
2315
+
2316
+ def initialize(interval: nil, interval_count: nil)
2317
+ @interval = interval
2318
+ @interval_count = interval_count
2319
+ end
2320
+ end
2321
+
2322
+ class TransferData < ::Stripe::RequestParams
2323
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
2324
+ attr_accessor :amount_percent
2325
+ # ID of an existing, connected Stripe account.
2326
+ attr_accessor :destination
2327
+
2328
+ def initialize(amount_percent: nil, destination: nil)
2329
+ @amount_percent = amount_percent
2330
+ @destination = destination
2331
+ end
2332
+ end
2333
+
2334
+ class TrialSettings < ::Stripe::RequestParams
2335
+ class EndBehavior < ::Stripe::RequestParams
2336
+ # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
2337
+ attr_accessor :missing_payment_method
2338
+
2339
+ def initialize(missing_payment_method: nil)
2340
+ @missing_payment_method = missing_payment_method
2341
+ end
2342
+ end
2343
+ # Defines how the subscription should behave when the user's free trial ends.
2344
+ attr_accessor :end_behavior
2345
+
2346
+ def initialize(end_behavior: nil)
2347
+ @end_behavior = end_behavior
2348
+ end
2349
+ end
2350
+ # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
2351
+ attr_accessor :application_fee_percent
2352
+ # A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `elements`.
2353
+ attr_accessor :billing_cycle_anchor
2354
+ # Configures when the subscription schedule's billing cycle anchors to a specific day of the week or month.
2355
+ attr_accessor :billing_cycle_anchor_config
2356
+ # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
2357
+ attr_accessor :billing_mode
2358
+ # The tax rates that will apply to any subscription item that does not have
2359
+ # `tax_rates` set. Invoices created will have their `default_tax_rates` populated
2360
+ # from the subscription.
2361
+ attr_accessor :default_tax_rates
2362
+ # The subscription's description, meant to be displayable to the customer.
2363
+ # Use this field to optionally store an explanation of the subscription
2364
+ # for rendering in the [customer portal](https://docs.stripe.com/customer-management).
2365
+ attr_accessor :description
2366
+ # All invoices will be billed using the specified settings.
2367
+ attr_accessor :invoice_settings
2368
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2369
+ attr_accessor :metadata
2370
+ # The account on behalf of which to charge, for each of the subscription's invoices.
2371
+ attr_accessor :on_behalf_of
2372
+ # Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api#create_invoice) for the given subscription at the specified interval.
2373
+ attr_accessor :pending_invoice_item_interval
2374
+ # Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
2375
+ attr_accessor :proration_behavior
2376
+ # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
2377
+ attr_accessor :transfer_data
2378
+ # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
2379
+ attr_accessor :trial_end
2380
+ # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
2381
+ attr_accessor :trial_period_days
2382
+ # Settings related to subscription trials.
2383
+ attr_accessor :trial_settings
2384
+
2385
+ def initialize(
2386
+ application_fee_percent: nil,
2387
+ billing_cycle_anchor: nil,
2388
+ billing_cycle_anchor_config: nil,
2389
+ billing_mode: nil,
2390
+ default_tax_rates: nil,
2391
+ description: nil,
2392
+ invoice_settings: nil,
2393
+ metadata: nil,
2394
+ on_behalf_of: nil,
2395
+ pending_invoice_item_interval: nil,
2396
+ proration_behavior: nil,
2397
+ transfer_data: nil,
2398
+ trial_end: nil,
2399
+ trial_period_days: nil,
2400
+ trial_settings: nil
2401
+ )
2402
+ @application_fee_percent = application_fee_percent
2403
+ @billing_cycle_anchor = billing_cycle_anchor
2404
+ @billing_cycle_anchor_config = billing_cycle_anchor_config
2405
+ @billing_mode = billing_mode
2406
+ @default_tax_rates = default_tax_rates
2407
+ @description = description
2408
+ @invoice_settings = invoice_settings
2409
+ @metadata = metadata
2410
+ @on_behalf_of = on_behalf_of
2411
+ @pending_invoice_item_interval = pending_invoice_item_interval
2412
+ @proration_behavior = proration_behavior
2413
+ @transfer_data = transfer_data
2414
+ @trial_end = trial_end
2415
+ @trial_period_days = trial_period_days
2416
+ @trial_settings = trial_settings
2417
+ end
2418
+ end
2419
+
2420
+ class TaxIdCollection < ::Stripe::RequestParams
2421
+ # Enable tax ID collection during checkout. Defaults to `false`.
2422
+ attr_accessor :enabled
2423
+ # Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
2424
+ attr_accessor :required
2425
+
2426
+ def initialize(enabled: nil, required: nil)
2427
+ @enabled = enabled
2428
+ @required = required
2429
+ end
2430
+ end
2431
+
2432
+ class WalletOptions < ::Stripe::RequestParams
2433
+ class Link < ::Stripe::RequestParams
2434
+ # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
2435
+ attr_accessor :display
2436
+
2437
+ def initialize(display: nil)
2438
+ @display = display
2439
+ end
2440
+ end
2441
+ # contains details about the Link wallet options (Link is also known as Onelink in the UK).
2442
+ attr_accessor :link
2443
+
2444
+ def initialize(link: nil)
2445
+ @link = link
2446
+ end
2447
+ end
2448
+ # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
2449
+ attr_accessor :adaptive_pricing
2450
+ # Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `elements`.
2451
+ attr_accessor :after_expiration
2452
+ # Enables user redeemable promotion codes.
2453
+ attr_accessor :allow_promotion_codes
2454
+ # Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
2455
+ attr_accessor :automatic_tax
2456
+ # Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.
2457
+ attr_accessor :billing_address_collection
2458
+ # The branding settings for the Checkout Session. This parameter is not allowed if ui_mode is `elements`.
2459
+ attr_accessor :branding_settings
2460
+ # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded_page` or `elements`.
2461
+ attr_accessor :cancel_url
2462
+ # A unique string to reference the Checkout Session. This can be a
2463
+ # customer ID, a cart ID, or similar, and can be used to reconcile the
2464
+ # session with your internal systems.
2465
+ attr_accessor :client_reference_id
2466
+ # Configure fields for the Checkout Session to gather active consent from customers.
2467
+ attr_accessor :consent_collection
2468
+ # 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). Required in `setup` mode when `payment_method_types` is not set.
2469
+ attr_accessor :currency
2470
+ # Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
2471
+ attr_accessor :custom_fields
2472
+ # Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.
2473
+ attr_accessor :custom_text
2474
+ # ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card
2475
+ # payment method will be used to prefill the email, name, card details, and billing address
2476
+ # on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method)
2477
+ # will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
2478
+ #
2479
+ # If the Customer already has a valid [email](https://docs.stripe.com/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
2480
+ # If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
2481
+ #
2482
+ # If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
2483
+ #
2484
+ # You can set [`payment_intent_data.setup_future_usage`](https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
2485
+ attr_accessor :customer
2486
+ # ID of an existing Account, if one exists. Has the same behavior as `customer`.
2487
+ attr_accessor :customer_account
2488
+ # Configure whether a Checkout Session creates a [Customer](https://docs.stripe.com/api/customers) during Session confirmation.
2489
+ #
2490
+ # When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
2491
+ # with [customer_details](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-customer_details).
2492
+ #
2493
+ # Sessions that don't create Customers instead are grouped by [guest customers](https://docs.stripe.com/payments/checkout/guest-customers)
2494
+ # in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
2495
+ #
2496
+ # Can only be set in `payment` and `setup` mode.
2497
+ attr_accessor :customer_creation
2498
+ # If provided, this value will be used when the Customer object is created.
2499
+ # If not provided, customers will be asked to enter their email address.
2500
+ # Use this parameter to prefill customer data if you already have an email
2501
+ # on file. To access information about the customer once a session is
2502
+ # complete, use the `customer` field.
2503
+ attr_accessor :customer_email
2504
+ # Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.
2505
+ attr_accessor :customer_update
2506
+ # The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.
2507
+ attr_accessor :discounts
2508
+ # A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
2509
+ attr_accessor :excluded_payment_method_types
2510
+ # Specifies which fields in the response should be expanded.
2511
+ attr_accessor :expand
2512
+ # The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
2513
+ attr_accessor :expires_at
2514
+ # The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.
2515
+ attr_accessor :integration_identifier
2516
+ # Generate a post-purchase Invoice for one-time payments.
2517
+ attr_accessor :invoice_creation
2518
+ # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices). The parameter is required for `payment` and `subscription` mode.
2519
+ #
2520
+ # For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
2521
+ #
2522
+ # For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.
2523
+ attr_accessor :line_items
2524
+ # The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
2525
+ attr_accessor :locale
2526
+ # Settings for Managed Payments for this Checkout Session and resulting [PaymentIntents](/api/payment_intents/object), [Invoices](/api/invoices/object), and [Subscriptions](/api/subscriptions/object).
2527
+ attr_accessor :managed_payments
2528
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2529
+ attr_accessor :metadata
2530
+ # The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
2531
+ attr_accessor :mode
2532
+ # Controls name collection settings for the session.
2533
+ #
2534
+ # You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
2535
+ #
2536
+ # If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
2537
+ attr_accessor :name_collection
2538
+ # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
2539
+ #
2540
+ # There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
2541
+ #
2542
+ # For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
2543
+ #
2544
+ # For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
2545
+ #
2546
+ # You can't set this parameter if `ui_mode` is `custom`.
2547
+ attr_accessor :optional_items
2548
+ # Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `elements`.
2549
+ attr_accessor :origin_context
2550
+ # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
2551
+ attr_accessor :payment_intent_data
2552
+ # Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
2553
+ # This may occur if the Checkout Session includes a free trial or a discount.
2554
+ #
2555
+ # Can only be set in `subscription` mode. Defaults to `always`.
2556
+ #
2557
+ # If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
2558
+ attr_accessor :payment_method_collection
2559
+ # The ID of the payment method configuration to use with this Checkout session.
2560
+ attr_accessor :payment_method_configuration
2561
+ # This parameter allows you to set some attributes on the payment method created during a Checkout session.
2562
+ attr_accessor :payment_method_data
2563
+ # Payment-method-specific configuration.
2564
+ attr_accessor :payment_method_options
2565
+ # A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
2566
+ #
2567
+ # You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
2568
+ # See [Dynamic Payment Methods](https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
2569
+ #
2570
+ # Read more about the supported payment methods and their requirements in our [payment
2571
+ # method details guide](/docs/payments/checkout/payment-methods).
2572
+ #
2573
+ # If multiple payment methods are passed, Checkout will dynamically reorder them to
2574
+ # prioritize the most relevant payment methods based on the customer's location and
2575
+ # other characteristics.
2576
+ attr_accessor :payment_method_types
2577
+ # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
2578
+ #
2579
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
2580
+ attr_accessor :permissions
2581
+ # Controls phone number collection settings for the session.
2582
+ #
2583
+ # We recommend that you review your privacy policy and check with your legal contacts
2584
+ # before using this feature. Learn more about [collecting phone numbers with Checkout](https://docs.stripe.com/payments/checkout/phone-numbers).
2585
+ attr_accessor :phone_number_collection
2586
+ # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2587
+ attr_accessor :redirect_on_completion
2588
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the
2589
+ # payment method's app or site. This parameter is required if `ui_mode` is `embedded_page` or `elements`
2590
+ # and redirect-based payment methods are enabled on the session.
2591
+ attr_accessor :return_url
2592
+ # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
2593
+ attr_accessor :saved_payment_method_options
2594
+ # A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
2595
+ attr_accessor :setup_intent_data
2596
+ # When set, provides configuration for Checkout to collect a shipping address from a customer.
2597
+ attr_accessor :shipping_address_collection
2598
+ # The shipping rate options to apply to this Session. Up to a maximum of 5.
2599
+ attr_accessor :shipping_options
2600
+ # Describes the type of transaction being performed by Checkout in order
2601
+ # to customize relevant text on the page, such as the submit button.
2602
+ # `submit_type` can only be specified on Checkout Sessions in
2603
+ # `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
2604
+ # You can't set this parameter if `ui_mode` is `elements`.
2605
+ attr_accessor :submit_type
2606
+ # A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
2607
+ attr_accessor :subscription_data
2608
+ # The URL to which Stripe should send customers when payment or setup
2609
+ # is complete.
2610
+ # This parameter is not allowed if ui_mode is `embedded_page` or `elements`. If you'd like to use
2611
+ # information from the successful Checkout Session on your page, read the
2612
+ # guide on [customizing your success page](https://docs.stripe.com/payments/checkout/custom-success-page).
2613
+ attr_accessor :success_url
2614
+ # Controls tax ID collection during checkout.
2615
+ attr_accessor :tax_id_collection
2616
+ # The UI mode of the Session. Defaults to `hosted_page`.
2617
+ attr_accessor :ui_mode
2618
+ # Wallet-specific configuration.
2619
+ attr_accessor :wallet_options
2620
+
2621
+ def initialize(
2622
+ adaptive_pricing: nil,
2623
+ after_expiration: nil,
2624
+ allow_promotion_codes: nil,
2625
+ automatic_tax: nil,
2626
+ billing_address_collection: nil,
2627
+ branding_settings: nil,
2628
+ cancel_url: nil,
2629
+ client_reference_id: nil,
2630
+ consent_collection: nil,
2631
+ currency: nil,
2632
+ custom_fields: nil,
2633
+ custom_text: nil,
2634
+ customer: nil,
2635
+ customer_account: nil,
2636
+ customer_creation: nil,
2637
+ customer_email: nil,
2638
+ customer_update: nil,
2639
+ discounts: nil,
2640
+ excluded_payment_method_types: nil,
2641
+ expand: nil,
2642
+ expires_at: nil,
2643
+ integration_identifier: nil,
2644
+ invoice_creation: nil,
2645
+ line_items: nil,
2646
+ locale: nil,
2647
+ managed_payments: nil,
2648
+ metadata: nil,
2649
+ mode: nil,
2650
+ name_collection: nil,
2651
+ optional_items: nil,
2652
+ origin_context: nil,
2653
+ payment_intent_data: nil,
2654
+ payment_method_collection: nil,
2655
+ payment_method_configuration: nil,
2656
+ payment_method_data: nil,
2657
+ payment_method_options: nil,
2658
+ payment_method_types: nil,
2659
+ permissions: nil,
2660
+ phone_number_collection: nil,
2661
+ redirect_on_completion: nil,
2662
+ return_url: nil,
2663
+ saved_payment_method_options: nil,
2664
+ setup_intent_data: nil,
2665
+ shipping_address_collection: nil,
2666
+ shipping_options: nil,
2667
+ submit_type: nil,
2668
+ subscription_data: nil,
2669
+ success_url: nil,
2670
+ tax_id_collection: nil,
2671
+ ui_mode: nil,
2672
+ wallet_options: nil
2673
+ )
2674
+ @adaptive_pricing = adaptive_pricing
2675
+ @after_expiration = after_expiration
2676
+ @allow_promotion_codes = allow_promotion_codes
2677
+ @automatic_tax = automatic_tax
2678
+ @billing_address_collection = billing_address_collection
2679
+ @branding_settings = branding_settings
2680
+ @cancel_url = cancel_url
2681
+ @client_reference_id = client_reference_id
2682
+ @consent_collection = consent_collection
2683
+ @currency = currency
2684
+ @custom_fields = custom_fields
2685
+ @custom_text = custom_text
2686
+ @customer = customer
2687
+ @customer_account = customer_account
2688
+ @customer_creation = customer_creation
2689
+ @customer_email = customer_email
2690
+ @customer_update = customer_update
2691
+ @discounts = discounts
2692
+ @excluded_payment_method_types = excluded_payment_method_types
2693
+ @expand = expand
2694
+ @expires_at = expires_at
2695
+ @integration_identifier = integration_identifier
2696
+ @invoice_creation = invoice_creation
2697
+ @line_items = line_items
2698
+ @locale = locale
2699
+ @managed_payments = managed_payments
2700
+ @metadata = metadata
2701
+ @mode = mode
2702
+ @name_collection = name_collection
2703
+ @optional_items = optional_items
2704
+ @origin_context = origin_context
2705
+ @payment_intent_data = payment_intent_data
2706
+ @payment_method_collection = payment_method_collection
2707
+ @payment_method_configuration = payment_method_configuration
2708
+ @payment_method_data = payment_method_data
2709
+ @payment_method_options = payment_method_options
2710
+ @payment_method_types = payment_method_types
2711
+ @permissions = permissions
2712
+ @phone_number_collection = phone_number_collection
2713
+ @redirect_on_completion = redirect_on_completion
2714
+ @return_url = return_url
2715
+ @saved_payment_method_options = saved_payment_method_options
2716
+ @setup_intent_data = setup_intent_data
2717
+ @shipping_address_collection = shipping_address_collection
2718
+ @shipping_options = shipping_options
2719
+ @submit_type = submit_type
2720
+ @subscription_data = subscription_data
2721
+ @success_url = success_url
2722
+ @tax_id_collection = tax_id_collection
2723
+ @ui_mode = ui_mode
2724
+ @wallet_options = wallet_options
2725
+ end
2726
+
2727
+ def self.field_encodings
2728
+ @field_encodings = {
2729
+ line_items: {
2730
+ kind: :array,
2731
+ element: {
2732
+ kind: :object,
2733
+ fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
2734
+ },
2735
+ },
2736
+ }
2737
+ end
2738
+ end
2739
+ end
2740
+ end