stripe 19.2.0.pre.beta.2 → 19.2.0

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 (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -36
  3. data/lib/stripe/api_version.rb +2 -1
  4. data/lib/stripe/errors.rb +0 -87
  5. data/lib/stripe/event_types.rb +0 -228
  6. data/lib/stripe/object_types.rb +0 -61
  7. data/lib/stripe/params/account_create_params.rb +17 -364
  8. data/lib/stripe/params/account_session_create_params.rb +1 -226
  9. data/lib/stripe/params/account_update_params.rb +16 -326
  10. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  11. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  12. data/lib/stripe/params/charge_create_params.rb +4 -1
  13. data/lib/stripe/params/charge_update_params.rb +0 -1646
  14. data/lib/stripe/params/checkout/session_create_params.rb +31 -141
  15. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  16. data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
  17. data/lib/stripe/params/coupon_create_params.rb +1 -17
  18. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  19. data/lib/stripe/params/dispute_update_params.rb +1 -10
  20. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  21. data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
  22. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  23. data/lib/stripe/params/invoice_create_params.rb +2 -70
  24. data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
  25. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  26. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  27. data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
  28. data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
  29. data/lib/stripe/params/invoice_update_params.rb +2 -70
  30. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  31. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  32. data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
  33. data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
  34. data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
  35. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
  36. data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
  37. data/lib/stripe/params/payment_link_create_params.rb +30 -16
  38. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  39. data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
  40. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  41. data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
  42. data/lib/stripe/params/payment_method_create_params.rb +11 -75
  43. data/lib/stripe/params/payout_create_params.rb +1 -1
  44. data/lib/stripe/params/plan_create_params.rb +0 -15
  45. data/lib/stripe/params/price_create_params.rb +0 -15
  46. data/lib/stripe/params/price_update_params.rb +0 -19
  47. data/lib/stripe/params/product_create_params.rb +0 -16
  48. data/lib/stripe/params/product_update_params.rb +0 -16
  49. data/lib/stripe/params/quote_create_params.rb +3 -809
  50. data/lib/stripe/params/quote_list_params.rb +0 -4
  51. data/lib/stripe/params/quote_update_params.rb +4 -817
  52. data/lib/stripe/params/setup_intent_confirm_params.rb +21 -110
  53. data/lib/stripe/params/setup_intent_create_params.rb +21 -110
  54. data/lib/stripe/params/setup_intent_update_params.rb +21 -110
  55. data/lib/stripe/params/subscription_create_params.rb +11 -181
  56. data/lib/stripe/params/subscription_item_create_params.rb +3 -69
  57. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  58. data/lib/stripe/params/subscription_item_update_params.rb +2 -52
  59. data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
  60. data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
  61. data/lib/stripe/params/subscription_update_params.rb +11 -161
  62. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  63. data/lib/stripe/params/tax/registration_create_params.rb +0 -104
  64. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -13
  65. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
  66. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
  67. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  68. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  69. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  70. data/lib/stripe/params/transfer_create_params.rb +0 -4
  71. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  72. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  73. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  74. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  75. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
  76. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  77. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  78. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  79. data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
  80. data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
  81. data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
  82. data/lib/stripe/params.rb +1342 -795
  83. data/lib/stripe/railtie.rb +8 -0
  84. data/lib/stripe/resources/account.rb +5 -259
  85. data/lib/stripe/resources/account_session.rb +0 -81
  86. data/lib/stripe/resources/balance.rb +0 -83
  87. data/lib/stripe/resources/balance_settings.rb +42 -2
  88. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  89. data/lib/stripe/resources/card.rb +0 -2
  90. data/lib/stripe/resources/charge.rb +36 -211
  91. data/lib/stripe/resources/checkout/session.rb +26 -82
  92. data/lib/stripe/resources/confirmation_token.rb +20 -125
  93. data/lib/stripe/resources/coupon.rb +1 -26
  94. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  95. data/lib/stripe/resources/customer_session.rb +0 -36
  96. data/lib/stripe/resources/discount.rb +2 -2
  97. data/lib/stripe/resources/dispute.rb +0 -22
  98. data/lib/stripe/resources/event.rb +1 -64
  99. data/lib/stripe/resources/financial_connections/account.rb +0 -57
  100. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  101. data/lib/stripe/resources/invoice.rb +3 -117
  102. data/lib/stripe/resources/invoice_item.rb +34 -3
  103. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  104. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  105. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  106. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  107. data/lib/stripe/resources/line_item.rb +0 -42
  108. data/lib/stripe/resources/mandate.rb +13 -12
  109. data/lib/stripe/resources/payment_attempt_record.rb +41 -187
  110. data/lib/stripe/resources/payment_intent.rb +96 -1583
  111. data/lib/stripe/resources/payment_link.rb +40 -0
  112. data/lib/stripe/resources/payment_method.rb +21 -130
  113. data/lib/stripe/resources/payment_method_configuration.rb +20 -122
  114. data/lib/stripe/resources/payment_record.rb +41 -187
  115. data/lib/stripe/resources/price.rb +0 -20
  116. data/lib/stripe/resources/product.rb +0 -18
  117. data/lib/stripe/resources/quote.rb +2 -569
  118. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  119. data/lib/stripe/resources/refund.rb +13 -18
  120. data/lib/stripe/resources/reserve/hold.rb +0 -7
  121. data/lib/stripe/resources/reserve/release.rb +0 -12
  122. data/lib/stripe/resources/setup_attempt.rb +4 -26
  123. data/lib/stripe/resources/setup_intent.rb +27 -22
  124. data/lib/stripe/resources/source.rb +0 -38
  125. data/lib/stripe/resources/subscription.rb +10 -107
  126. data/lib/stripe/resources/subscription_item.rb +1 -41
  127. data/lib/stripe/resources/subscription_schedule.rb +5 -198
  128. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  129. data/lib/stripe/resources/tax/registration.rb +0 -128
  130. data/lib/stripe/resources/tax_code.rb +1 -15
  131. data/lib/stripe/resources/terminal/configuration.rb +64 -16
  132. data/lib/stripe/resources/terminal/reader.rb +116 -8
  133. data/lib/stripe/resources/transfer.rb +0 -2
  134. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  135. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  136. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  137. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  139. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  140. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
  141. data/lib/stripe/resources/v2/core/account.rb +40 -607
  142. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  143. data/lib/stripe/resources/v2/core/event.rb +1 -0
  144. data/lib/stripe/resources.rb +500 -301
  145. data/lib/stripe/services/account_service.rb +0 -15
  146. data/lib/stripe/services/billing_service.rb +1 -2
  147. data/lib/stripe/services/credit_note_service.rb +0 -14
  148. data/lib/stripe/services/customer_service.rb +0 -15
  149. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  150. data/lib/stripe/services/financial_connections_service.rb +1 -3
  151. data/lib/stripe/services/invoice_service.rb +0 -41
  152. data/lib/stripe/services/issuing_service.rb +1 -5
  153. data/lib/stripe/services/mandate_service.rb +0 -5
  154. data/lib/stripe/services/payment_intent_service.rb +3 -38
  155. data/lib/stripe/services/promotion_code_service.rb +0 -29
  156. data/lib/stripe/services/quote_service.rb +1 -49
  157. data/lib/stripe/services/subscription_schedule_service.rb +0 -55
  158. data/lib/stripe/services/subscription_service.rb +2 -32
  159. data/lib/stripe/services/tax_service.rb +1 -3
  160. data/lib/stripe/services/terminal_service.rb +1 -2
  161. data/lib/stripe/services/test_helpers_service.rb +1 -2
  162. data/lib/stripe/services/v1_services.rb +1 -11
  163. data/lib/stripe/services/v2/billing_service.rb +1 -5
  164. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  165. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  166. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  167. data/lib/stripe/services/v2/core_service.rb +1 -3
  168. data/lib/stripe/services/v2_services.rb +1 -8
  169. data/lib/stripe/services.rb +469 -268
  170. data/lib/stripe/stripe_client.rb +1 -8
  171. data/lib/stripe/stripe_configuration.rb +1 -3
  172. data/lib/stripe/stripe_object.rb +1 -1
  173. data/lib/stripe/util.rb +1 -7
  174. data/lib/stripe/version.rb +1 -1
  175. data/lib/stripe.rb +25 -58
  176. data/rbi/stripe/stripe_client.rbi +0 -13
  177. data/rbi/stripe.rbi +53183 -118054
  178. metadata +5 -377
  179. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  180. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  185. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  186. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  187. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  188. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  189. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  190. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  191. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  192. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  193. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
  194. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  195. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  196. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  197. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  198. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  203. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  205. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  223. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  225. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  230. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  232. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  233. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
  234. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  235. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  236. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  237. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  238. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  239. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  240. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  241. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  242. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  243. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  244. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  246. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  248. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  249. data/lib/stripe/params/external_account_create_params.rb +0 -134
  250. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  251. data/lib/stripe/params/external_account_list_params.rb +0 -25
  252. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  253. data/lib/stripe/params/external_account_update_params.rb +0 -91
  254. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  257. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  258. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  259. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  260. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  261. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  262. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  263. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  264. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  265. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  266. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  267. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  269. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  271. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  272. data/lib/stripe/params/mandate_list_params.rb +0 -39
  273. data/lib/stripe/params/margin_create_params.rb +0 -25
  274. data/lib/stripe/params/margin_list_params.rb +0 -25
  275. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  276. data/lib/stripe/params/margin_update_params.rb +0 -22
  277. data/lib/stripe/params/order_create_params.rb +0 -2083
  278. data/lib/stripe/params/order_list_params.rb +0 -25
  279. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  280. data/lib/stripe/params/order_submit_params.rb +0 -16
  281. data/lib/stripe/params/order_update_params.rb +0 -2087
  282. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  283. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  284. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  285. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  286. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  287. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  288. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  290. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  291. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  292. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  293. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  294. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  295. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  296. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  297. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  298. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  299. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  300. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  301. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  302. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  303. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  305. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  307. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  308. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  310. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  311. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  312. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  313. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  314. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  315. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  316. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  317. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  318. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  321. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  322. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  323. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  324. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  325. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  326. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  327. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  328. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  329. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  330. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  331. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  332. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  333. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  334. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  335. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  336. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  337. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  338. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  339. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  340. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  341. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  342. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  343. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  344. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
  345. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  346. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  347. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  348. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
  349. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  350. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  351. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  352. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  353. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  354. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
  355. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  356. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  357. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  358. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  359. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  360. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  361. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  362. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  363. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  364. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  365. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  366. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  367. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  368. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  369. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  370. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  371. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  372. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  373. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  374. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  375. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  376. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  377. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  378. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  379. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  380. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  381. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
  382. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  383. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  384. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  385. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  386. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  387. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
  388. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  389. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  390. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
  391. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  392. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  393. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  394. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  395. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  396. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  397. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  398. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  399. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  400. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  401. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  402. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  403. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  404. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  405. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  406. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  407. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  408. data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
  409. data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
  410. data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
  411. data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
  412. data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
  413. data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
  414. data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
  415. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  416. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  417. data/lib/stripe/resources/account_notice.rb +0 -94
  418. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  419. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  420. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  421. data/lib/stripe/resources/capital/financing_summary.rb +0 -82
  422. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  423. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  424. data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
  425. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  426. data/lib/stripe/resources/fx_quote.rb +0 -147
  427. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  428. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  429. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  430. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  431. data/lib/stripe/resources/margin.rb +0 -64
  432. data/lib/stripe/resources/order.rb +0 -927
  433. data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
  434. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  435. data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
  436. data/lib/stripe/resources/quote_line.rb +0 -525
  437. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
  438. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
  439. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
  440. data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
  441. data/lib/stripe/resources/tax/form.rb +0 -264
  442. data/lib/stripe/resources/tax/location.rb +0 -72
  443. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  444. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  445. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
  446. data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
  447. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
  448. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
  449. data/lib/stripe/resources/v2/billing/profile.rb +0 -47
  450. data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
  451. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
  452. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
  453. data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
  454. data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
  455. data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
  456. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
  457. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
  458. data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
  459. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  460. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  461. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
  462. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
  463. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
  464. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  465. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  466. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  467. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
  468. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
  469. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
  470. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  471. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
  472. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  473. data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
  474. data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
  475. data/lib/stripe/services/account_notice_service.rb +0 -39
  476. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  477. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  478. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  479. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  480. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  481. data/lib/stripe/services/capital_service.rb +0 -15
  482. data/lib/stripe/services/external_account_service.rb +0 -68
  483. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  484. data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
  485. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  486. data/lib/stripe/services/fx_quote_service.rb +0 -27
  487. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  488. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  489. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  490. data/lib/stripe/services/margin_service.rb +0 -50
  491. data/lib/stripe/services/order_service.rb +0 -53
  492. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  493. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  494. data/lib/stripe/services/privacy_service.rb +0 -13
  495. data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
  496. data/lib/stripe/services/product_catalog_service.rb +0 -13
  497. data/lib/stripe/services/quote_line_service.rb +0 -17
  498. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  499. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  500. data/lib/stripe/services/reserve/hold_service.rb +0 -30
  501. data/lib/stripe/services/reserve/plan_service.rb +0 -19
  502. data/lib/stripe/services/reserve/release_service.rb +0 -30
  503. data/lib/stripe/services/reserve_service.rb +0 -15
  504. data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
  505. data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
  506. data/lib/stripe/services/shared_payment_service.rb +0 -14
  507. data/lib/stripe/services/tax/form_service.rb +0 -37
  508. data/lib/stripe/services/tax/location_service.rb +0 -45
  509. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  510. data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
  511. data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
  512. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  513. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  514. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  515. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
  516. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  517. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  518. data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
  519. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  520. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  521. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  522. data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
  523. data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
  524. data/lib/stripe/services/v2/datum_service.rb +0 -15
  525. data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
  526. data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
  527. data/lib/stripe/services/v2/extend_service.rb +0 -16
  528. data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -21
  529. data/lib/stripe/services/v2/iam_service.rb +0 -15
  530. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  531. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  532. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  533. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  534. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  535. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  536. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
  537. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  538. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
  539. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  540. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  541. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  542. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  543. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  544. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  545. data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
  546. data/lib/stripe/services/v2/network_service.rb +0 -15
  547. data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
  548. data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
  549. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  550. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
  551. data/lib/stripe/stripe_event_notification_handler.rb +0 -581
@@ -133,9 +133,9 @@ module Stripe
133
133
  class Shipping < ::Stripe::RequestParams
134
134
  # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
- # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
136
+ # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
137
137
  attr_accessor :from_postal_code
138
- # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
138
+ # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
139
139
  attr_accessor :to_postal_code
140
140
 
141
141
  def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
@@ -145,1781 +145,139 @@ module Stripe
145
145
  end
146
146
  end
147
147
 
148
- class Surcharge < ::Stripe::RequestParams
149
- # Portion of the amount that corresponds to a surcharge.
150
- attr_accessor :amount
151
- # Indicate whether to enforce validations on the surcharge amount.
152
- attr_accessor :enforce_validation
153
-
154
- def initialize(amount: nil, enforce_validation: nil)
155
- @amount = amount
156
- @enforce_validation = enforce_validation
157
- end
158
- end
159
-
160
- class Tax < ::Stripe::RequestParams
161
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
162
- #
163
- # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
164
- attr_accessor :total_tax_amount
165
-
166
- def initialize(total_tax_amount: nil)
167
- @total_tax_amount = total_tax_amount
168
- end
169
- end
170
- # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
171
- #
172
- # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
173
- attr_accessor :discount_amount
174
- # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
175
- #
176
- # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
177
- #
178
- # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
179
- attr_accessor :enforce_arithmetic_validation
180
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
181
- attr_accessor :line_items
182
- # Contains information about the shipping portion of the amount.
183
- attr_accessor :shipping
184
- # Contains information about the surcharge portion of the amount.
185
- attr_accessor :surcharge
186
- # Contains information about the tax portion of the amount.
187
- attr_accessor :tax
188
-
189
- def initialize(
190
- discount_amount: nil,
191
- enforce_arithmetic_validation: nil,
192
- line_items: nil,
193
- shipping: nil,
194
- surcharge: nil,
195
- tax: nil
196
- )
197
- @discount_amount = discount_amount
198
- @enforce_arithmetic_validation = enforce_arithmetic_validation
199
- @line_items = line_items
200
- @shipping = shipping
201
- @surcharge = surcharge
202
- @tax = tax
203
- end
204
- end
205
-
206
- class AutomaticPaymentMethods < ::Stripe::RequestParams
207
- # Controls whether this PaymentIntent will accept redirect-based payment methods.
208
- #
209
- # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
210
- attr_accessor :allow_redirects
211
- # Whether this feature is enabled.
212
- attr_accessor :enabled
213
-
214
- def initialize(allow_redirects: nil, enabled: nil)
215
- @allow_redirects = allow_redirects
216
- @enabled = enabled
217
- end
218
- end
219
-
220
- class Hooks < ::Stripe::RequestParams
221
- class Inputs < ::Stripe::RequestParams
222
- class Tax < ::Stripe::RequestParams
223
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
224
- attr_accessor :calculation
225
-
226
- def initialize(calculation: nil)
227
- @calculation = calculation
228
- end
229
- end
230
- # Tax arguments for automations
231
- attr_accessor :tax
232
-
233
- def initialize(tax: nil)
234
- @tax = tax
235
- end
236
- end
237
- # Arguments passed in automations
238
- attr_accessor :inputs
239
-
240
- def initialize(inputs: nil)
241
- @inputs = inputs
242
- end
243
- end
244
-
245
- class MandateData < ::Stripe::RequestParams
246
- class CustomerAcceptance < ::Stripe::RequestParams
247
- class Offline < ::Stripe::RequestParams; end
248
-
249
- class Online < ::Stripe::RequestParams
250
- # The IP address from which the Mandate was accepted by the customer.
251
- attr_accessor :ip_address
252
- # The user agent of the browser from which the Mandate was accepted by the customer.
253
- attr_accessor :user_agent
254
-
255
- def initialize(ip_address: nil, user_agent: nil)
256
- @ip_address = ip_address
257
- @user_agent = user_agent
258
- end
259
- end
260
- # The time at which the customer accepted the Mandate.
261
- attr_accessor :accepted_at
262
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
263
- attr_accessor :offline
264
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
265
- attr_accessor :online
266
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
267
- attr_accessor :type
268
-
269
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
270
- @accepted_at = accepted_at
271
- @offline = offline
272
- @online = online
273
- @type = type
274
- end
275
- end
276
- # This hash contains details about the customer acceptance of the Mandate.
277
- attr_accessor :customer_acceptance
278
-
279
- def initialize(customer_acceptance: nil)
280
- @customer_acceptance = customer_acceptance
281
- end
282
- end
283
-
284
- class PaymentDetails < ::Stripe::RequestParams
285
- class CarRental < ::Stripe::RequestParams
286
- class Affiliate < ::Stripe::RequestParams
287
- # The name of the affiliate that originated the purchase.
288
- attr_accessor :name
289
-
290
- def initialize(name: nil)
291
- @name = name
292
- end
293
- end
294
-
295
- class Delivery < ::Stripe::RequestParams
296
- class Recipient < ::Stripe::RequestParams
297
- # The email of the recipient the ticket is delivered to.
298
- attr_accessor :email
299
- # The name of the recipient the ticket is delivered to.
300
- attr_accessor :name
301
- # The phone number of the recipient the ticket is delivered to.
302
- attr_accessor :phone
303
-
304
- def initialize(email: nil, name: nil, phone: nil)
305
- @email = email
306
- @name = name
307
- @phone = phone
308
- end
309
- end
310
- # The delivery method for the payment
311
- attr_accessor :mode
312
- # Details of the recipient.
313
- attr_accessor :recipient
314
-
315
- def initialize(mode: nil, recipient: nil)
316
- @mode = mode
317
- @recipient = recipient
318
- end
319
- end
320
-
321
- class Distance < ::Stripe::RequestParams
322
- # Distance traveled.
323
- attr_accessor :amount
324
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
325
- attr_accessor :unit
326
-
327
- def initialize(amount: nil, unit: nil)
328
- @amount = amount
329
- @unit = unit
330
- end
331
- end
332
-
333
- class Driver < ::Stripe::RequestParams
334
- # Driver's identification number.
335
- attr_accessor :driver_identification_number
336
- # Driver's tax number.
337
- attr_accessor :driver_tax_number
338
- # Full name of the person or entity on the car reservation.
339
- attr_accessor :name
340
-
341
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
342
- @driver_identification_number = driver_identification_number
343
- @driver_tax_number = driver_tax_number
344
- @name = name
345
- end
346
- end
347
-
348
- class PickupAddress < ::Stripe::RequestParams
349
- # City, district, suburb, town, or village.
350
- attr_accessor :city
351
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
352
- attr_accessor :country
353
- # Address line 1, such as the street, PO Box, or company name.
354
- attr_accessor :line1
355
- # Address line 2, such as the apartment, suite, unit, or building.
356
- attr_accessor :line2
357
- # ZIP or postal code.
358
- attr_accessor :postal_code
359
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
360
- attr_accessor :state
361
-
362
- def initialize(
363
- city: nil,
364
- country: nil,
365
- line1: nil,
366
- line2: nil,
367
- postal_code: nil,
368
- state: nil
369
- )
370
- @city = city
371
- @country = country
372
- @line1 = line1
373
- @line2 = line2
374
- @postal_code = postal_code
375
- @state = state
376
- end
377
- end
378
-
379
- class ReturnAddress < ::Stripe::RequestParams
380
- # City, district, suburb, town, or village.
381
- attr_accessor :city
382
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
383
- attr_accessor :country
384
- # Address line 1, such as the street, PO Box, or company name.
385
- attr_accessor :line1
386
- # Address line 2, such as the apartment, suite, unit, or building.
387
- attr_accessor :line2
388
- # ZIP or postal code.
389
- attr_accessor :postal_code
390
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
391
- attr_accessor :state
392
-
393
- def initialize(
394
- city: nil,
395
- country: nil,
396
- line1: nil,
397
- line2: nil,
398
- postal_code: nil,
399
- state: nil
400
- )
401
- @city = city
402
- @country = country
403
- @line1 = line1
404
- @line2 = line2
405
- @postal_code = postal_code
406
- @state = state
407
- end
408
- end
409
- # Affiliate details for this purchase.
410
- attr_accessor :affiliate
411
- # The booking number associated with the car rental.
412
- attr_accessor :booking_number
413
- # Class code of the car.
414
- attr_accessor :car_class_code
415
- # Make of the car.
416
- attr_accessor :car_make
417
- # Model of the car.
418
- attr_accessor :car_model
419
- # The name of the rental car company.
420
- attr_accessor :company
421
- # The customer service phone number of the car rental company.
422
- attr_accessor :customer_service_phone_number
423
- # Number of days the car is being rented.
424
- attr_accessor :days_rented
425
- # Delivery details for this purchase.
426
- attr_accessor :delivery
427
- # The details of the distance traveled during the rental period.
428
- attr_accessor :distance
429
- # The details of the passengers in the travel reservation
430
- attr_accessor :drivers
431
- # List of additional charges being billed.
432
- attr_accessor :extra_charges
433
- # Indicates if the customer did not keep nor cancel their booking.
434
- attr_accessor :no_show
435
- # Car pick-up address.
436
- attr_accessor :pickup_address
437
- # Car pick-up time. Measured in seconds since the Unix epoch.
438
- attr_accessor :pickup_at
439
- # Name of the pickup location.
440
- attr_accessor :pickup_location_name
441
- # Rental rate.
442
- attr_accessor :rate_amount
443
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
444
- attr_accessor :rate_interval
445
- # The name of the person or entity renting the car.
446
- attr_accessor :renter_name
447
- # Car return address.
448
- attr_accessor :return_address
449
- # Car return time. Measured in seconds since the Unix epoch.
450
- attr_accessor :return_at
451
- # Name of the return location.
452
- attr_accessor :return_location_name
453
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
454
- attr_accessor :tax_exempt
455
- # The vehicle identification number.
456
- attr_accessor :vehicle_identification_number
457
-
458
- def initialize(
459
- affiliate: nil,
460
- booking_number: nil,
461
- car_class_code: nil,
462
- car_make: nil,
463
- car_model: nil,
464
- company: nil,
465
- customer_service_phone_number: nil,
466
- days_rented: nil,
467
- delivery: nil,
468
- distance: nil,
469
- drivers: nil,
470
- extra_charges: nil,
471
- no_show: nil,
472
- pickup_address: nil,
473
- pickup_at: nil,
474
- pickup_location_name: nil,
475
- rate_amount: nil,
476
- rate_interval: nil,
477
- renter_name: nil,
478
- return_address: nil,
479
- return_at: nil,
480
- return_location_name: nil,
481
- tax_exempt: nil,
482
- vehicle_identification_number: nil
483
- )
484
- @affiliate = affiliate
485
- @booking_number = booking_number
486
- @car_class_code = car_class_code
487
- @car_make = car_make
488
- @car_model = car_model
489
- @company = company
490
- @customer_service_phone_number = customer_service_phone_number
491
- @days_rented = days_rented
492
- @delivery = delivery
493
- @distance = distance
494
- @drivers = drivers
495
- @extra_charges = extra_charges
496
- @no_show = no_show
497
- @pickup_address = pickup_address
498
- @pickup_at = pickup_at
499
- @pickup_location_name = pickup_location_name
500
- @rate_amount = rate_amount
501
- @rate_interval = rate_interval
502
- @renter_name = renter_name
503
- @return_address = return_address
504
- @return_at = return_at
505
- @return_location_name = return_location_name
506
- @tax_exempt = tax_exempt
507
- @vehicle_identification_number = vehicle_identification_number
508
- end
509
- end
510
-
511
- class CarRentalDatum < ::Stripe::RequestParams
512
- class Affiliate < ::Stripe::RequestParams
513
- # Affiliate partner code.
514
- attr_accessor :code
515
- # Name of affiliate partner.
516
- attr_accessor :name
517
-
518
- def initialize(code: nil, name: nil)
519
- @code = code
520
- @name = name
521
- end
522
- end
523
-
524
- class Distance < ::Stripe::RequestParams
525
- # Distance traveled.
526
- attr_accessor :amount
527
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
528
- attr_accessor :unit
529
-
530
- def initialize(amount: nil, unit: nil)
531
- @amount = amount
532
- @unit = unit
533
- end
534
- end
535
-
536
- class Driver < ::Stripe::RequestParams
537
- class DateOfBirth < ::Stripe::RequestParams
538
- # Day of birth (1-31).
539
- attr_accessor :day
540
- # Month of birth (1-12).
541
- attr_accessor :month
542
- # Year of birth (must be greater than 1900).
543
- attr_accessor :year
544
-
545
- def initialize(day: nil, month: nil, year: nil)
546
- @day = day
547
- @month = month
548
- @year = year
549
- end
550
- end
551
- # Driver's date of birth.
552
- attr_accessor :date_of_birth
553
- # Driver's identification number.
554
- attr_accessor :driver_identification_number
555
- # Driver's tax number.
556
- attr_accessor :driver_tax_number
557
- # Driver's full name.
558
- attr_accessor :name
559
-
560
- def initialize(
561
- date_of_birth: nil,
562
- driver_identification_number: nil,
563
- driver_tax_number: nil,
564
- name: nil
565
- )
566
- @date_of_birth = date_of_birth
567
- @driver_identification_number = driver_identification_number
568
- @driver_tax_number = driver_tax_number
569
- @name = name
570
- end
571
- end
572
-
573
- class DropOff < ::Stripe::RequestParams
574
- class Address < ::Stripe::RequestParams
575
- # City, district, suburb, town, or village.
576
- attr_accessor :city
577
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
578
- attr_accessor :country
579
- # Address line 1, such as the street, PO Box, or company name.
580
- attr_accessor :line1
581
- # Address line 2, such as the apartment, suite, unit, or building.
582
- attr_accessor :line2
583
- # ZIP or postal code.
584
- attr_accessor :postal_code
585
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
586
- attr_accessor :state
587
-
588
- def initialize(
589
- city: nil,
590
- country: nil,
591
- line1: nil,
592
- line2: nil,
593
- postal_code: nil,
594
- state: nil
595
- )
596
- @city = city
597
- @country = country
598
- @line1 = line1
599
- @line2 = line2
600
- @postal_code = postal_code
601
- @state = state
602
- end
603
- end
604
- # Address of the rental location.
605
- attr_accessor :address
606
- # Location name.
607
- attr_accessor :location_name
608
- # Timestamp for the location.
609
- attr_accessor :time
610
-
611
- def initialize(address: nil, location_name: nil, time: nil)
612
- @address = address
613
- @location_name = location_name
614
- @time = time
615
- end
616
- end
617
-
618
- class Insurance < ::Stripe::RequestParams
619
- # Amount of the insurance coverage in cents.
620
- attr_accessor :amount
621
- # Currency of the insurance amount.
622
- attr_accessor :currency
623
- # Name of the insurance company.
624
- attr_accessor :insurance_company_name
625
- # Type of insurance coverage.
626
- attr_accessor :insurance_type
627
-
628
- def initialize(
629
- amount: nil,
630
- currency: nil,
631
- insurance_company_name: nil,
632
- insurance_type: nil
633
- )
634
- @amount = amount
635
- @currency = currency
636
- @insurance_company_name = insurance_company_name
637
- @insurance_type = insurance_type
638
- end
639
- end
640
-
641
- class Pickup < ::Stripe::RequestParams
642
- class Address < ::Stripe::RequestParams
643
- # City, district, suburb, town, or village.
644
- attr_accessor :city
645
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
646
- attr_accessor :country
647
- # Address line 1, such as the street, PO Box, or company name.
648
- attr_accessor :line1
649
- # Address line 2, such as the apartment, suite, unit, or building.
650
- attr_accessor :line2
651
- # ZIP or postal code.
652
- attr_accessor :postal_code
653
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
654
- attr_accessor :state
655
-
656
- def initialize(
657
- city: nil,
658
- country: nil,
659
- line1: nil,
660
- line2: nil,
661
- postal_code: nil,
662
- state: nil
663
- )
664
- @city = city
665
- @country = country
666
- @line1 = line1
667
- @line2 = line2
668
- @postal_code = postal_code
669
- @state = state
670
- end
671
- end
672
- # Address of the rental location.
673
- attr_accessor :address
674
- # Location name.
675
- attr_accessor :location_name
676
- # Timestamp for the location.
677
- attr_accessor :time
678
-
679
- def initialize(address: nil, location_name: nil, time: nil)
680
- @address = address
681
- @location_name = location_name
682
- @time = time
683
- end
684
- end
685
-
686
- class Total < ::Stripe::RequestParams
687
- class Discounts < ::Stripe::RequestParams
688
- # Corporate client discount code.
689
- attr_accessor :corporate_client_code
690
- # Coupon code applied to the rental.
691
- attr_accessor :coupon
692
- # Maximum number of free miles or kilometers included.
693
- attr_accessor :maximum_free_miles_or_kilometers
694
-
695
- def initialize(
696
- corporate_client_code: nil,
697
- coupon: nil,
698
- maximum_free_miles_or_kilometers: nil
699
- )
700
- @corporate_client_code = corporate_client_code
701
- @coupon = coupon
702
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
703
- end
704
- end
705
-
706
- class ExtraCharge < ::Stripe::RequestParams
707
- # Amount of the extra charge in cents.
708
- attr_accessor :amount
709
- # Type of extra charge.
710
- attr_accessor :type
711
-
712
- def initialize(amount: nil, type: nil)
713
- @amount = amount
714
- @type = type
715
- end
716
- end
717
-
718
- class Tax < ::Stripe::RequestParams
719
- class Tax < ::Stripe::RequestParams
720
- # Tax amount.
721
- attr_accessor :amount
722
- # Tax rate applied.
723
- attr_accessor :rate
724
- # Type of tax applied.
725
- attr_accessor :type
726
-
727
- def initialize(amount: nil, rate: nil, type: nil)
728
- @amount = amount
729
- @rate = rate
730
- @type = type
731
- end
732
- end
733
- # Indicates if the transaction is tax exempt.
734
- attr_accessor :tax_exempt_indicator
735
- # Array of tax details.
736
- attr_accessor :taxes
737
-
738
- def initialize(tax_exempt_indicator: nil, taxes: nil)
739
- @tax_exempt_indicator = tax_exempt_indicator
740
- @taxes = taxes
741
- end
742
- end
743
- # Total amount in cents.
744
- attr_accessor :amount
745
- # Currency of the amount.
746
- attr_accessor :currency
747
- # Discount details for the rental.
748
- attr_accessor :discounts
749
- # Additional charges for the rental.
750
- attr_accessor :extra_charges
751
- # Rate per unit for the rental.
752
- attr_accessor :rate_per_unit
753
- # Unit of measurement for the rate.
754
- attr_accessor :rate_unit
755
- # Tax breakdown for the rental.
756
- attr_accessor :tax
757
-
758
- def initialize(
759
- amount: nil,
760
- currency: nil,
761
- discounts: nil,
762
- extra_charges: nil,
763
- rate_per_unit: nil,
764
- rate_unit: nil,
765
- tax: nil
766
- )
767
- @amount = amount
768
- @currency = currency
769
- @discounts = discounts
770
- @extra_charges = extra_charges
771
- @rate_per_unit = rate_per_unit
772
- @rate_unit = rate_unit
773
- @tax = tax
774
- end
775
- end
776
-
777
- class Vehicle < ::Stripe::RequestParams
778
- # Make of the rental vehicle.
779
- attr_accessor :make
780
- # Model of the rental vehicle.
781
- attr_accessor :model
782
- # Odometer reading at the time of rental.
783
- attr_accessor :odometer
784
- # Type of the rental vehicle.
785
- attr_accessor :type
786
- # Class of the rental vehicle.
787
- attr_accessor :vehicle_class
788
- # Vehicle identification number (VIN).
789
- attr_accessor :vehicle_identification_number
790
-
791
- def initialize(
792
- make: nil,
793
- model: nil,
794
- odometer: nil,
795
- type: nil,
796
- vehicle_class: nil,
797
- vehicle_identification_number: nil
798
- )
799
- @make = make
800
- @model = model
801
- @odometer = odometer
802
- @type = type
803
- @vehicle_class = vehicle_class
804
- @vehicle_identification_number = vehicle_identification_number
805
- end
806
- end
807
- # Affiliate (such as travel agency) details for the rental.
808
- attr_accessor :affiliate
809
- # Booking confirmation number for the car rental.
810
- attr_accessor :booking_number
811
- # Name of the car rental company.
812
- attr_accessor :carrier_name
813
- # Customer service phone number for the car rental company.
814
- attr_accessor :customer_service_phone_number
815
- # Number of days the car is being rented.
816
- attr_accessor :days_rented
817
- # Distance details for the rental.
818
- attr_accessor :distance
819
- # List of drivers for the rental.
820
- attr_accessor :drivers
821
- # Drop-off location details.
822
- attr_accessor :drop_off
823
- # Insurance details for the rental.
824
- attr_accessor :insurances
825
- # Indicates if the customer was a no-show.
826
- attr_accessor :no_show_indicator
827
- # Pickup location details.
828
- attr_accessor :pickup
829
- # Name of the person renting the vehicle.
830
- attr_accessor :renter_name
831
- # Total cost breakdown for the rental.
832
- attr_accessor :total
833
- # Vehicle details for the rental.
834
- attr_accessor :vehicle
835
-
836
- def initialize(
837
- affiliate: nil,
838
- booking_number: nil,
839
- carrier_name: nil,
840
- customer_service_phone_number: nil,
841
- days_rented: nil,
842
- distance: nil,
843
- drivers: nil,
844
- drop_off: nil,
845
- insurances: nil,
846
- no_show_indicator: nil,
847
- pickup: nil,
848
- renter_name: nil,
849
- total: nil,
850
- vehicle: nil
851
- )
852
- @affiliate = affiliate
853
- @booking_number = booking_number
854
- @carrier_name = carrier_name
855
- @customer_service_phone_number = customer_service_phone_number
856
- @days_rented = days_rented
857
- @distance = distance
858
- @drivers = drivers
859
- @drop_off = drop_off
860
- @insurances = insurances
861
- @no_show_indicator = no_show_indicator
862
- @pickup = pickup
863
- @renter_name = renter_name
864
- @total = total
865
- @vehicle = vehicle
866
- end
867
- end
868
-
869
- class EventDetails < ::Stripe::RequestParams
870
- class Address < ::Stripe::RequestParams
871
- # City, district, suburb, town, or village.
872
- attr_accessor :city
873
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
874
- attr_accessor :country
875
- # Address line 1, such as the street, PO Box, or company name.
876
- attr_accessor :line1
877
- # Address line 2, such as the apartment, suite, unit, or building.
878
- attr_accessor :line2
879
- # ZIP or postal code.
880
- attr_accessor :postal_code
881
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
882
- attr_accessor :state
883
-
884
- def initialize(
885
- city: nil,
886
- country: nil,
887
- line1: nil,
888
- line2: nil,
889
- postal_code: nil,
890
- state: nil
891
- )
892
- @city = city
893
- @country = country
894
- @line1 = line1
895
- @line2 = line2
896
- @postal_code = postal_code
897
- @state = state
898
- end
899
- end
900
-
901
- class Affiliate < ::Stripe::RequestParams
902
- # The name of the affiliate that originated the purchase.
903
- attr_accessor :name
904
-
905
- def initialize(name: nil)
906
- @name = name
907
- end
908
- end
909
-
910
- class Delivery < ::Stripe::RequestParams
911
- class Recipient < ::Stripe::RequestParams
912
- # The email of the recipient the ticket is delivered to.
913
- attr_accessor :email
914
- # The name of the recipient the ticket is delivered to.
915
- attr_accessor :name
916
- # The phone number of the recipient the ticket is delivered to.
917
- attr_accessor :phone
918
-
919
- def initialize(email: nil, name: nil, phone: nil)
920
- @email = email
921
- @name = name
922
- @phone = phone
923
- end
924
- end
925
- # The delivery method for the payment
926
- attr_accessor :mode
927
- # Details of the recipient.
928
- attr_accessor :recipient
929
-
930
- def initialize(mode: nil, recipient: nil)
931
- @mode = mode
932
- @recipient = recipient
933
- end
934
- end
935
- # Indicates if the tickets are digitally checked when entering the venue.
936
- attr_accessor :access_controlled_venue
937
- # The event location's address.
938
- attr_accessor :address
939
- # Affiliate details for this purchase.
940
- attr_accessor :affiliate
941
- # The name of the company
942
- attr_accessor :company
943
- # Delivery details for this purchase.
944
- attr_accessor :delivery
945
- # Event end time. Measured in seconds since the Unix epoch.
946
- attr_accessor :ends_at
947
- # Type of the event entertainment (concert, sports event etc)
948
- attr_accessor :genre
949
- # The name of the event.
950
- attr_accessor :name
951
- # Event start time. Measured in seconds since the Unix epoch.
952
- attr_accessor :starts_at
953
-
954
- def initialize(
955
- access_controlled_venue: nil,
956
- address: nil,
957
- affiliate: nil,
958
- company: nil,
959
- delivery: nil,
960
- ends_at: nil,
961
- genre: nil,
962
- name: nil,
963
- starts_at: nil
964
- )
965
- @access_controlled_venue = access_controlled_venue
966
- @address = address
967
- @affiliate = affiliate
968
- @company = company
969
- @delivery = delivery
970
- @ends_at = ends_at
971
- @genre = genre
972
- @name = name
973
- @starts_at = starts_at
974
- end
975
- end
976
-
977
- class Flight < ::Stripe::RequestParams
978
- class Affiliate < ::Stripe::RequestParams
979
- # The name of the affiliate that originated the purchase.
980
- attr_accessor :name
981
-
982
- def initialize(name: nil)
983
- @name = name
984
- end
985
- end
986
-
987
- class Delivery < ::Stripe::RequestParams
988
- class Recipient < ::Stripe::RequestParams
989
- # The email of the recipient the ticket is delivered to.
990
- attr_accessor :email
991
- # The name of the recipient the ticket is delivered to.
992
- attr_accessor :name
993
- # The phone number of the recipient the ticket is delivered to.
994
- attr_accessor :phone
995
-
996
- def initialize(email: nil, name: nil, phone: nil)
997
- @email = email
998
- @name = name
999
- @phone = phone
1000
- end
1001
- end
1002
- # The delivery method for the payment
1003
- attr_accessor :mode
1004
- # Details of the recipient.
1005
- attr_accessor :recipient
1006
-
1007
- def initialize(mode: nil, recipient: nil)
1008
- @mode = mode
1009
- @recipient = recipient
1010
- end
1011
- end
1012
-
1013
- class Passenger < ::Stripe::RequestParams
1014
- # Full name of the person or entity on the flight reservation.
1015
- attr_accessor :name
1016
-
1017
- def initialize(name: nil)
1018
- @name = name
1019
- end
1020
- end
1021
-
1022
- class Segment < ::Stripe::RequestParams
1023
- # The flight segment amount.
1024
- attr_accessor :amount
1025
- # The International Air Transport Association (IATA) airport code for the arrival airport.
1026
- attr_accessor :arrival_airport
1027
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1028
- attr_accessor :arrives_at
1029
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1030
- attr_accessor :carrier
1031
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1032
- attr_accessor :departs_at
1033
- # The International Air Transport Association (IATA) airport code for the departure airport.
1034
- attr_accessor :departure_airport
1035
- # The flight number associated with the segment
1036
- attr_accessor :flight_number
1037
- # The fare class for the segment.
1038
- attr_accessor :service_class
1039
-
1040
- def initialize(
1041
- amount: nil,
1042
- arrival_airport: nil,
1043
- arrives_at: nil,
1044
- carrier: nil,
1045
- departs_at: nil,
1046
- departure_airport: nil,
1047
- flight_number: nil,
1048
- service_class: nil
1049
- )
1050
- @amount = amount
1051
- @arrival_airport = arrival_airport
1052
- @arrives_at = arrives_at
1053
- @carrier = carrier
1054
- @departs_at = departs_at
1055
- @departure_airport = departure_airport
1056
- @flight_number = flight_number
1057
- @service_class = service_class
1058
- end
1059
- end
1060
- # Affiliate details for this purchase.
1061
- attr_accessor :affiliate
1062
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1063
- attr_accessor :agency_number
1064
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1065
- attr_accessor :carrier
1066
- # Delivery details for this purchase.
1067
- attr_accessor :delivery
1068
- # The name of the person or entity on the reservation.
1069
- attr_accessor :passenger_name
1070
- # The details of the passengers in the travel reservation.
1071
- attr_accessor :passengers
1072
- # The individual flight segments associated with the trip.
1073
- attr_accessor :segments
1074
- # The ticket number associated with the travel reservation.
1075
- attr_accessor :ticket_number
1076
-
1077
- def initialize(
1078
- affiliate: nil,
1079
- agency_number: nil,
1080
- carrier: nil,
1081
- delivery: nil,
1082
- passenger_name: nil,
1083
- passengers: nil,
1084
- segments: nil,
1085
- ticket_number: nil
1086
- )
1087
- @affiliate = affiliate
1088
- @agency_number = agency_number
1089
- @carrier = carrier
1090
- @delivery = delivery
1091
- @passenger_name = passenger_name
1092
- @passengers = passengers
1093
- @segments = segments
1094
- @ticket_number = ticket_number
1095
- end
1096
- end
1097
-
1098
- class FlightDatum < ::Stripe::RequestParams
1099
- class Affiliate < ::Stripe::RequestParams
1100
- # Affiliate partner code.
1101
- attr_accessor :code
1102
- # Name of affiliate partner.
1103
- attr_accessor :name
1104
- # Code provided by the company to a travel agent authorizing ticket issuance.
1105
- attr_accessor :travel_authorization_code
1106
-
1107
- def initialize(code: nil, name: nil, travel_authorization_code: nil)
1108
- @code = code
1109
- @name = name
1110
- @travel_authorization_code = travel_authorization_code
1111
- end
1112
- end
1113
-
1114
- class Insurance < ::Stripe::RequestParams
1115
- # Insurance cost.
1116
- attr_accessor :amount
1117
- # Insurance currency.
1118
- attr_accessor :currency
1119
- # Insurance company name.
1120
- attr_accessor :insurance_company_name
1121
- # Type of insurance.
1122
- attr_accessor :insurance_type
1123
-
1124
- def initialize(
1125
- amount: nil,
1126
- currency: nil,
1127
- insurance_company_name: nil,
1128
- insurance_type: nil
1129
- )
1130
- @amount = amount
1131
- @currency = currency
1132
- @insurance_company_name = insurance_company_name
1133
- @insurance_type = insurance_type
1134
- end
1135
- end
1136
-
1137
- class Passenger < ::Stripe::RequestParams
1138
- # Passenger's full name.
1139
- attr_accessor :name
1140
-
1141
- def initialize(name: nil)
1142
- @name = name
1143
- end
1144
- end
1145
-
1146
- class Segment < ::Stripe::RequestParams
1147
- class Arrival < ::Stripe::RequestParams
1148
- # Arrival airport IATA code.
1149
- attr_accessor :airport
1150
- # Arrival date/time.
1151
- attr_accessor :arrives_at
1152
- # Arrival city.
1153
- attr_accessor :city
1154
- # Arrival country.
1155
- attr_accessor :country
1156
-
1157
- def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1158
- @airport = airport
1159
- @arrives_at = arrives_at
1160
- @city = city
1161
- @country = country
1162
- end
1163
- end
1164
-
1165
- class Departure < ::Stripe::RequestParams
1166
- # Departure airport IATA code.
1167
- attr_accessor :airport
1168
- # Departure city.
1169
- attr_accessor :city
1170
- # Departure country.
1171
- attr_accessor :country
1172
- # Departure date/time.
1173
- attr_accessor :departs_at
1174
-
1175
- def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1176
- @airport = airport
1177
- @city = city
1178
- @country = country
1179
- @departs_at = departs_at
1180
- end
1181
- end
1182
- # Segment fare amount.
1183
- attr_accessor :amount
1184
- # Arrival details.
1185
- attr_accessor :arrival
1186
- # Airline carrier code.
1187
- attr_accessor :carrier_code
1188
- # Carrier name.
1189
- attr_accessor :carrier_name
1190
- # Segment currency.
1191
- attr_accessor :currency
1192
- # Departure details.
1193
- attr_accessor :departure
1194
- # Exchange ticket number.
1195
- attr_accessor :exchange_ticket_number
1196
- # Fare basis code.
1197
- attr_accessor :fare_basis_code
1198
- # Additional fees.
1199
- attr_accessor :fees
1200
- # Flight number.
1201
- attr_accessor :flight_number
1202
- # Stopover indicator.
1203
- attr_accessor :is_stop_over_indicator
1204
- # Refundable ticket indicator.
1205
- attr_accessor :refundable
1206
- # Class of service.
1207
- attr_accessor :service_class
1208
- # Tax amount for segment.
1209
- attr_accessor :tax_amount
1210
- # Ticket number.
1211
- attr_accessor :ticket_number
1212
-
1213
- def initialize(
1214
- amount: nil,
1215
- arrival: nil,
1216
- carrier_code: nil,
1217
- carrier_name: nil,
1218
- currency: nil,
1219
- departure: nil,
1220
- exchange_ticket_number: nil,
1221
- fare_basis_code: nil,
1222
- fees: nil,
1223
- flight_number: nil,
1224
- is_stop_over_indicator: nil,
1225
- refundable: nil,
1226
- service_class: nil,
1227
- tax_amount: nil,
1228
- ticket_number: nil
1229
- )
1230
- @amount = amount
1231
- @arrival = arrival
1232
- @carrier_code = carrier_code
1233
- @carrier_name = carrier_name
1234
- @currency = currency
1235
- @departure = departure
1236
- @exchange_ticket_number = exchange_ticket_number
1237
- @fare_basis_code = fare_basis_code
1238
- @fees = fees
1239
- @flight_number = flight_number
1240
- @is_stop_over_indicator = is_stop_over_indicator
1241
- @refundable = refundable
1242
- @service_class = service_class
1243
- @tax_amount = tax_amount
1244
- @ticket_number = ticket_number
1245
- end
1246
- end
1247
-
1248
- class Total < ::Stripe::RequestParams
1249
- class Discounts < ::Stripe::RequestParams
1250
- # Corporate client discount code.
1251
- attr_accessor :corporate_client_code
1252
-
1253
- def initialize(corporate_client_code: nil)
1254
- @corporate_client_code = corporate_client_code
1255
- end
1256
- end
1257
-
1258
- class ExtraCharge < ::Stripe::RequestParams
1259
- # Amount of additional charges.
1260
- attr_accessor :amount
1261
- # Type of additional charges.
1262
- attr_accessor :type
1263
-
1264
- def initialize(amount: nil, type: nil)
1265
- @amount = amount
1266
- @type = type
1267
- end
1268
- end
1269
-
1270
- class Tax < ::Stripe::RequestParams
1271
- class Tax < ::Stripe::RequestParams
1272
- # Tax amount.
1273
- attr_accessor :amount
1274
- # Tax rate.
1275
- attr_accessor :rate
1276
- # Type of tax.
1277
- attr_accessor :type
1278
-
1279
- def initialize(amount: nil, rate: nil, type: nil)
1280
- @amount = amount
1281
- @rate = rate
1282
- @type = type
1283
- end
1284
- end
1285
- # Array of tax details.
1286
- attr_accessor :taxes
1287
-
1288
- def initialize(taxes: nil)
1289
- @taxes = taxes
1290
- end
1291
- end
1292
- # Total flight amount.
1293
- attr_accessor :amount
1294
- # Reason for credit.
1295
- attr_accessor :credit_reason
1296
- # Total currency.
1297
- attr_accessor :currency
1298
- # Discount details.
1299
- attr_accessor :discounts
1300
- # Additional charges.
1301
- attr_accessor :extra_charges
1302
- # Tax breakdown.
1303
- attr_accessor :tax
1304
-
1305
- def initialize(
1306
- amount: nil,
1307
- credit_reason: nil,
1308
- currency: nil,
1309
- discounts: nil,
1310
- extra_charges: nil,
1311
- tax: nil
1312
- )
1313
- @amount = amount
1314
- @credit_reason = credit_reason
1315
- @currency = currency
1316
- @discounts = discounts
1317
- @extra_charges = extra_charges
1318
- @tax = tax
1319
- end
1320
- end
1321
- # Affiliate details if applicable.
1322
- attr_accessor :affiliate
1323
- # Reservation reference.
1324
- attr_accessor :booking_number
1325
- # Computerized reservation system used to make the reservation and purchase the ticket.
1326
- attr_accessor :computerized_reservation_system
1327
- # Ticket restrictions.
1328
- attr_accessor :endorsements_and_restrictions
1329
- # List of insurances.
1330
- attr_accessor :insurances
1331
- # List of passengers.
1332
- attr_accessor :passengers
1333
- # List of flight segments.
1334
- attr_accessor :segments
1335
- # Electronic ticket indicator.
1336
- attr_accessor :ticket_electronically_issued_indicator
1337
- # Total cost breakdown.
1338
- attr_accessor :total
1339
- # Type of flight transaction.
1340
- attr_accessor :transaction_type
1341
-
1342
- def initialize(
1343
- affiliate: nil,
1344
- booking_number: nil,
1345
- computerized_reservation_system: nil,
1346
- endorsements_and_restrictions: nil,
1347
- insurances: nil,
1348
- passengers: nil,
1349
- segments: nil,
1350
- ticket_electronically_issued_indicator: nil,
1351
- total: nil,
1352
- transaction_type: nil
1353
- )
1354
- @affiliate = affiliate
1355
- @booking_number = booking_number
1356
- @computerized_reservation_system = computerized_reservation_system
1357
- @endorsements_and_restrictions = endorsements_and_restrictions
1358
- @insurances = insurances
1359
- @passengers = passengers
1360
- @segments = segments
1361
- @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1362
- @total = total
1363
- @transaction_type = transaction_type
1364
- end
1365
- end
1366
-
1367
- class Lodging < ::Stripe::RequestParams
1368
- class Address < ::Stripe::RequestParams
1369
- # City, district, suburb, town, or village.
1370
- attr_accessor :city
1371
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1372
- attr_accessor :country
1373
- # Address line 1, such as the street, PO Box, or company name.
1374
- attr_accessor :line1
1375
- # Address line 2, such as the apartment, suite, unit, or building.
1376
- attr_accessor :line2
1377
- # ZIP or postal code.
1378
- attr_accessor :postal_code
1379
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1380
- attr_accessor :state
1381
-
1382
- def initialize(
1383
- city: nil,
1384
- country: nil,
1385
- line1: nil,
1386
- line2: nil,
1387
- postal_code: nil,
1388
- state: nil
1389
- )
1390
- @city = city
1391
- @country = country
1392
- @line1 = line1
1393
- @line2 = line2
1394
- @postal_code = postal_code
1395
- @state = state
1396
- end
1397
- end
1398
-
1399
- class Affiliate < ::Stripe::RequestParams
1400
- # The name of the affiliate that originated the purchase.
1401
- attr_accessor :name
1402
-
1403
- def initialize(name: nil)
1404
- @name = name
1405
- end
1406
- end
1407
-
1408
- class Delivery < ::Stripe::RequestParams
1409
- class Recipient < ::Stripe::RequestParams
1410
- # The email of the recipient the ticket is delivered to.
1411
- attr_accessor :email
1412
- # The name of the recipient the ticket is delivered to.
1413
- attr_accessor :name
1414
- # The phone number of the recipient the ticket is delivered to.
1415
- attr_accessor :phone
1416
-
1417
- def initialize(email: nil, name: nil, phone: nil)
1418
- @email = email
1419
- @name = name
1420
- @phone = phone
1421
- end
1422
- end
1423
- # The delivery method for the payment
1424
- attr_accessor :mode
1425
- # Details of the recipient.
1426
- attr_accessor :recipient
1427
-
1428
- def initialize(mode: nil, recipient: nil)
1429
- @mode = mode
1430
- @recipient = recipient
1431
- end
1432
- end
1433
-
1434
- class Passenger < ::Stripe::RequestParams
1435
- # Full name of the person or entity on the lodging reservation.
1436
- attr_accessor :name
1437
-
1438
- def initialize(name: nil)
1439
- @name = name
1440
- end
1441
- end
1442
- # The lodging location's address.
1443
- attr_accessor :address
1444
- # The number of adults on the booking
1445
- attr_accessor :adults
1446
- # Affiliate details for this purchase.
1447
- attr_accessor :affiliate
1448
- # The booking number associated with the lodging reservation.
1449
- attr_accessor :booking_number
1450
- # The lodging category
1451
- attr_accessor :category
1452
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1453
- attr_accessor :checkin_at
1454
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1455
- attr_accessor :checkout_at
1456
- # The customer service phone number of the lodging company.
1457
- attr_accessor :customer_service_phone_number
1458
- # The daily lodging room rate.
1459
- attr_accessor :daily_room_rate_amount
1460
- # Delivery details for this purchase.
1461
- attr_accessor :delivery
1462
- # List of additional charges being billed.
1463
- attr_accessor :extra_charges
1464
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
1465
- attr_accessor :fire_safety_act_compliance
1466
- # The name of the lodging location.
1467
- attr_accessor :name
1468
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1469
- attr_accessor :no_show
1470
- # The number of rooms on the booking
1471
- attr_accessor :number_of_rooms
1472
- # The details of the passengers in the travel reservation
1473
- attr_accessor :passengers
1474
- # The phone number of the lodging location.
1475
- attr_accessor :property_phone_number
1476
- # The room class for this purchase.
1477
- attr_accessor :room_class
1478
- # The number of room nights
1479
- attr_accessor :room_nights
1480
- # The total tax amount associating with the room reservation.
1481
- attr_accessor :total_room_tax_amount
1482
- # The total tax amount
148
+ class Tax < ::Stripe::RequestParams
149
+ # The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
150
+ #
151
+ # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
1483
152
  attr_accessor :total_tax_amount
1484
153
 
1485
- def initialize(
1486
- address: nil,
1487
- adults: nil,
1488
- affiliate: nil,
1489
- booking_number: nil,
1490
- category: nil,
1491
- checkin_at: nil,
1492
- checkout_at: nil,
1493
- customer_service_phone_number: nil,
1494
- daily_room_rate_amount: nil,
1495
- delivery: nil,
1496
- extra_charges: nil,
1497
- fire_safety_act_compliance: nil,
1498
- name: nil,
1499
- no_show: nil,
1500
- number_of_rooms: nil,
1501
- passengers: nil,
1502
- property_phone_number: nil,
1503
- room_class: nil,
1504
- room_nights: nil,
1505
- total_room_tax_amount: nil,
1506
- total_tax_amount: nil
1507
- )
1508
- @address = address
1509
- @adults = adults
1510
- @affiliate = affiliate
1511
- @booking_number = booking_number
1512
- @category = category
1513
- @checkin_at = checkin_at
1514
- @checkout_at = checkout_at
1515
- @customer_service_phone_number = customer_service_phone_number
1516
- @daily_room_rate_amount = daily_room_rate_amount
1517
- @delivery = delivery
1518
- @extra_charges = extra_charges
1519
- @fire_safety_act_compliance = fire_safety_act_compliance
1520
- @name = name
1521
- @no_show = no_show
1522
- @number_of_rooms = number_of_rooms
1523
- @passengers = passengers
1524
- @property_phone_number = property_phone_number
1525
- @room_class = room_class
1526
- @room_nights = room_nights
1527
- @total_room_tax_amount = total_room_tax_amount
154
+ def initialize(total_tax_amount: nil)
1528
155
  @total_tax_amount = total_tax_amount
1529
156
  end
1530
157
  end
158
+ # The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
159
+ #
160
+ # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
+ attr_accessor :discount_amount
162
+ # Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
163
+ #
164
+ # Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
165
+ #
166
+ # For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
167
+ attr_accessor :enforce_arithmetic_validation
168
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
169
+ attr_accessor :line_items
170
+ # Contains information about the shipping portion of the amount.
171
+ attr_accessor :shipping
172
+ # Contains information about the tax portion of the amount.
173
+ attr_accessor :tax
1531
174
 
1532
- class LodgingDatum < ::Stripe::RequestParams
1533
- class Accommodation < ::Stripe::RequestParams
1534
- # Type of accommodation.
1535
- attr_accessor :accommodation_type
1536
- # Bed type.
1537
- attr_accessor :bed_type
1538
- # Daily accommodation rate in cents.
1539
- attr_accessor :daily_rate_amount
1540
- # Number of nights.
1541
- attr_accessor :nights
1542
- # Number of rooms, cabanas, apartments, and so on.
1543
- attr_accessor :number_of_rooms
1544
- # Rate type.
1545
- attr_accessor :rate_type
1546
- # Whether smoking is allowed.
1547
- attr_accessor :smoking_indicator
1548
-
1549
- def initialize(
1550
- accommodation_type: nil,
1551
- bed_type: nil,
1552
- daily_rate_amount: nil,
1553
- nights: nil,
1554
- number_of_rooms: nil,
1555
- rate_type: nil,
1556
- smoking_indicator: nil
1557
- )
1558
- @accommodation_type = accommodation_type
1559
- @bed_type = bed_type
1560
- @daily_rate_amount = daily_rate_amount
1561
- @nights = nights
1562
- @number_of_rooms = number_of_rooms
1563
- @rate_type = rate_type
1564
- @smoking_indicator = smoking_indicator
1565
- end
1566
- end
1567
-
1568
- class Affiliate < ::Stripe::RequestParams
1569
- # Affiliate partner code.
1570
- attr_accessor :code
1571
- # Affiliate partner name.
1572
- attr_accessor :name
1573
-
1574
- def initialize(code: nil, name: nil)
1575
- @code = code
1576
- @name = name
1577
- end
1578
- end
1579
-
1580
- class Guest < ::Stripe::RequestParams
1581
- # Guest's full name.
1582
- attr_accessor :name
175
+ def initialize(
176
+ discount_amount: nil,
177
+ enforce_arithmetic_validation: nil,
178
+ line_items: nil,
179
+ shipping: nil,
180
+ tax: nil
181
+ )
182
+ @discount_amount = discount_amount
183
+ @enforce_arithmetic_validation = enforce_arithmetic_validation
184
+ @line_items = line_items
185
+ @shipping = shipping
186
+ @tax = tax
187
+ end
188
+ end
1583
189
 
1584
- def initialize(name: nil)
1585
- @name = name
1586
- end
1587
- end
190
+ class AutomaticPaymentMethods < ::Stripe::RequestParams
191
+ # Controls whether this PaymentIntent will accept redirect-based payment methods.
192
+ #
193
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
194
+ attr_accessor :allow_redirects
195
+ # Whether this feature is enabled.
196
+ attr_accessor :enabled
1588
197
 
1589
- class Host < ::Stripe::RequestParams
1590
- class Address < ::Stripe::RequestParams
1591
- # City, district, suburb, town, or village.
1592
- attr_accessor :city
1593
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1594
- attr_accessor :country
1595
- # Address line 1, such as the street, PO Box, or company name.
1596
- attr_accessor :line1
1597
- # Address line 2, such as the apartment, suite, unit, or building.
1598
- attr_accessor :line2
1599
- # ZIP or postal code.
1600
- attr_accessor :postal_code
1601
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1602
- attr_accessor :state
198
+ def initialize(allow_redirects: nil, enabled: nil)
199
+ @allow_redirects = allow_redirects
200
+ @enabled = enabled
201
+ end
202
+ end
1603
203
 
1604
- def initialize(
1605
- city: nil,
1606
- country: nil,
1607
- line1: nil,
1608
- line2: nil,
1609
- postal_code: nil,
1610
- state: nil
1611
- )
1612
- @city = city
1613
- @country = country
1614
- @line1 = line1
1615
- @line2 = line2
1616
- @postal_code = postal_code
1617
- @state = state
1618
- end
1619
- end
1620
- # Address of the host.
1621
- attr_accessor :address
1622
- # Host's country of domicile.
1623
- attr_accessor :country_of_domicile
1624
- # Reference number for the host.
1625
- attr_accessor :host_reference
1626
- # Type of host.
1627
- attr_accessor :host_type
1628
- # Name of the lodging property or host.
1629
- attr_accessor :name
1630
- # Total number of reservations for the host.
1631
- attr_accessor :number_of_reservations
1632
- # Property phone number.
1633
- attr_accessor :property_phone_number
1634
- # Host's registration date.
1635
- attr_accessor :registered_at
204
+ class Hooks < ::Stripe::RequestParams
205
+ class Inputs < ::Stripe::RequestParams
206
+ class Tax < ::Stripe::RequestParams
207
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
208
+ attr_accessor :calculation
1636
209
 
1637
- def initialize(
1638
- address: nil,
1639
- country_of_domicile: nil,
1640
- host_reference: nil,
1641
- host_type: nil,
1642
- name: nil,
1643
- number_of_reservations: nil,
1644
- property_phone_number: nil,
1645
- registered_at: nil
1646
- )
1647
- @address = address
1648
- @country_of_domicile = country_of_domicile
1649
- @host_reference = host_reference
1650
- @host_type = host_type
1651
- @name = name
1652
- @number_of_reservations = number_of_reservations
1653
- @property_phone_number = property_phone_number
1654
- @registered_at = registered_at
210
+ def initialize(calculation: nil)
211
+ @calculation = calculation
1655
212
  end
1656
213
  end
214
+ # Tax arguments for automations
215
+ attr_accessor :tax
1657
216
 
1658
- class Insurance < ::Stripe::RequestParams
1659
- # Price of the insurance coverage in cents.
1660
- attr_accessor :amount
1661
- # Currency of the insurance amount.
1662
- attr_accessor :currency
1663
- # Name of the insurance company.
1664
- attr_accessor :insurance_company_name
1665
- # Type of insurance coverage.
1666
- attr_accessor :insurance_type
1667
-
1668
- def initialize(
1669
- amount: nil,
1670
- currency: nil,
1671
- insurance_company_name: nil,
1672
- insurance_type: nil
1673
- )
1674
- @amount = amount
1675
- @currency = currency
1676
- @insurance_company_name = insurance_company_name
1677
- @insurance_type = insurance_type
1678
- end
217
+ def initialize(tax: nil)
218
+ @tax = tax
1679
219
  end
220
+ end
221
+ # Arguments passed in automations
222
+ attr_accessor :inputs
1680
223
 
1681
- class Total < ::Stripe::RequestParams
1682
- class Discounts < ::Stripe::RequestParams
1683
- # Corporate client discount code.
1684
- attr_accessor :corporate_client_code
1685
- # Coupon code.
1686
- attr_accessor :coupon
1687
-
1688
- def initialize(corporate_client_code: nil, coupon: nil)
1689
- @corporate_client_code = corporate_client_code
1690
- @coupon = coupon
1691
- end
1692
- end
1693
-
1694
- class ExtraCharge < ::Stripe::RequestParams
1695
- # Amount of the extra charge in cents.
1696
- attr_accessor :amount
1697
- # Type of extra charge.
1698
- attr_accessor :type
224
+ def initialize(inputs: nil)
225
+ @inputs = inputs
226
+ end
227
+ end
1699
228
 
1700
- def initialize(amount: nil, type: nil)
1701
- @amount = amount
1702
- @type = type
1703
- end
1704
- end
229
+ class MandateData < ::Stripe::RequestParams
230
+ class CustomerAcceptance < ::Stripe::RequestParams
231
+ class Offline < ::Stripe::RequestParams; end
1705
232
 
1706
- class Tax < ::Stripe::RequestParams
1707
- class Tax < ::Stripe::RequestParams
1708
- # Tax amount in cents.
1709
- attr_accessor :amount
1710
- # Tax rate.
1711
- attr_accessor :rate
1712
- # Type of tax applied.
1713
- attr_accessor :type
1714
-
1715
- def initialize(amount: nil, rate: nil, type: nil)
1716
- @amount = amount
1717
- @rate = rate
1718
- @type = type
1719
- end
1720
- end
1721
- # Indicates whether the transaction is tax exempt.
1722
- attr_accessor :tax_exempt_indicator
1723
- # Tax details.
1724
- attr_accessor :taxes
1725
-
1726
- def initialize(tax_exempt_indicator: nil, taxes: nil)
1727
- @tax_exempt_indicator = tax_exempt_indicator
1728
- @taxes = taxes
1729
- end
1730
- end
1731
- # Total price of the lodging reservation in cents.
1732
- attr_accessor :amount
1733
- # Cash advances in cents.
1734
- attr_accessor :cash_advances
1735
- # Currency of the total amount.
1736
- attr_accessor :currency
1737
- # Discount details for the lodging.
1738
- attr_accessor :discounts
1739
- # Additional charges for the lodging.
1740
- attr_accessor :extra_charges
1741
- # Prepaid amount in cents.
1742
- attr_accessor :prepaid_amount
1743
- # Tax breakdown for the lodging reservation.
1744
- attr_accessor :tax
233
+ class Online < ::Stripe::RequestParams
234
+ # The IP address from which the Mandate was accepted by the customer.
235
+ attr_accessor :ip_address
236
+ # The user agent of the browser from which the Mandate was accepted by the customer.
237
+ attr_accessor :user_agent
1745
238
 
1746
- def initialize(
1747
- amount: nil,
1748
- cash_advances: nil,
1749
- currency: nil,
1750
- discounts: nil,
1751
- extra_charges: nil,
1752
- prepaid_amount: nil,
1753
- tax: nil
1754
- )
1755
- @amount = amount
1756
- @cash_advances = cash_advances
1757
- @currency = currency
1758
- @discounts = discounts
1759
- @extra_charges = extra_charges
1760
- @prepaid_amount = prepaid_amount
1761
- @tax = tax
239
+ def initialize(ip_address: nil, user_agent: nil)
240
+ @ip_address = ip_address
241
+ @user_agent = user_agent
1762
242
  end
1763
243
  end
1764
- # Accommodation details for the lodging.
1765
- attr_accessor :accommodation
1766
- # Affiliate details if applicable.
1767
- attr_accessor :affiliate
1768
- # Booking confirmation number for the lodging.
1769
- attr_accessor :booking_number
1770
- # Check-in date.
1771
- attr_accessor :checkin_at
1772
- # Check-out date.
1773
- attr_accessor :checkout_at
1774
- # Customer service phone number for the lodging company.
1775
- attr_accessor :customer_service_phone_number
1776
- # Whether the lodging is compliant with any hotel fire safety regulations.
1777
- attr_accessor :fire_safety_act_compliance_indicator
1778
- # List of guests for the lodging.
1779
- attr_accessor :guests
1780
- # Host details for the lodging.
1781
- attr_accessor :host
1782
- # List of insurances for the lodging.
1783
- attr_accessor :insurances
1784
- # Whether the renter is a no-show.
1785
- attr_accessor :no_show_indicator
1786
- # Renter ID number for the lodging.
1787
- attr_accessor :renter_id_number
1788
- # Renter name for the lodging.
1789
- attr_accessor :renter_name
1790
- # Total details for the lodging.
1791
- attr_accessor :total
244
+ # The time at which the customer accepted the Mandate.
245
+ attr_accessor :accepted_at
246
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
247
+ attr_accessor :offline
248
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
249
+ attr_accessor :online
250
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
251
+ attr_accessor :type
1792
252
 
1793
- def initialize(
1794
- accommodation: nil,
1795
- affiliate: nil,
1796
- booking_number: nil,
1797
- checkin_at: nil,
1798
- checkout_at: nil,
1799
- customer_service_phone_number: nil,
1800
- fire_safety_act_compliance_indicator: nil,
1801
- guests: nil,
1802
- host: nil,
1803
- insurances: nil,
1804
- no_show_indicator: nil,
1805
- renter_id_number: nil,
1806
- renter_name: nil,
1807
- total: nil
1808
- )
1809
- @accommodation = accommodation
1810
- @affiliate = affiliate
1811
- @booking_number = booking_number
1812
- @checkin_at = checkin_at
1813
- @checkout_at = checkout_at
1814
- @customer_service_phone_number = customer_service_phone_number
1815
- @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1816
- @guests = guests
1817
- @host = host
1818
- @insurances = insurances
1819
- @no_show_indicator = no_show_indicator
1820
- @renter_id_number = renter_id_number
1821
- @renter_name = renter_name
1822
- @total = total
253
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
254
+ @accepted_at = accepted_at
255
+ @offline = offline
256
+ @online = online
257
+ @type = type
1823
258
  end
1824
259
  end
260
+ # This hash contains details about the customer acceptance of the Mandate.
261
+ attr_accessor :customer_acceptance
1825
262
 
1826
- class Subscription < ::Stripe::RequestParams
1827
- class Affiliate < ::Stripe::RequestParams
1828
- # The name of the affiliate that originated the purchase.
1829
- attr_accessor :name
1830
-
1831
- def initialize(name: nil)
1832
- @name = name
1833
- end
1834
- end
1835
-
1836
- class BillingInterval < ::Stripe::RequestParams
1837
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1838
- attr_accessor :count
1839
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1840
- attr_accessor :interval
1841
-
1842
- def initialize(count: nil, interval: nil)
1843
- @count = count
1844
- @interval = interval
1845
- end
1846
- end
1847
- # Affiliate details for this purchase.
1848
- attr_accessor :affiliate
1849
- # Info whether the subscription will be auto renewed upon expiry.
1850
- attr_accessor :auto_renewal
1851
- # Subscription billing details for this purchase.
1852
- attr_accessor :billing_interval
1853
- # Subscription end time. Measured in seconds since the Unix epoch.
1854
- attr_accessor :ends_at
1855
- # Name of the product on subscription. e.g. Apple Music Subscription
1856
- attr_accessor :name
1857
- # Subscription start time. Measured in seconds since the Unix epoch.
1858
- attr_accessor :starts_at
1859
-
1860
- def initialize(
1861
- affiliate: nil,
1862
- auto_renewal: nil,
1863
- billing_interval: nil,
1864
- ends_at: nil,
1865
- name: nil,
1866
- starts_at: nil
1867
- )
1868
- @affiliate = affiliate
1869
- @auto_renewal = auto_renewal
1870
- @billing_interval = billing_interval
1871
- @ends_at = ends_at
1872
- @name = name
1873
- @starts_at = starts_at
1874
- end
263
+ def initialize(customer_acceptance: nil)
264
+ @customer_acceptance = customer_acceptance
1875
265
  end
1876
- # Car rental details for this PaymentIntent.
1877
- attr_accessor :car_rental
1878
- # Car rental data for this PaymentIntent.
1879
- attr_accessor :car_rental_data
266
+ end
267
+
268
+ class PaymentDetails < ::Stripe::RequestParams
1880
269
  # A unique value to identify the customer. This field is available only for card payments.
1881
270
  #
1882
271
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1883
272
  attr_accessor :customer_reference
1884
- # Event details for this PaymentIntent
1885
- attr_accessor :event_details
1886
- # Flight reservation details for this PaymentIntent
1887
- attr_accessor :flight
1888
- # Flight data for this PaymentIntent.
1889
- attr_accessor :flight_data
1890
- # Lodging reservation details for this PaymentIntent
1891
- attr_accessor :lodging
1892
- # Lodging data for this PaymentIntent.
1893
- attr_accessor :lodging_data
1894
273
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1895
274
  #
1896
275
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1897
276
  attr_accessor :order_reference
1898
- # Subscription details for this PaymentIntent
1899
- attr_accessor :subscription
1900
277
 
1901
- def initialize(
1902
- car_rental: nil,
1903
- car_rental_data: nil,
1904
- customer_reference: nil,
1905
- event_details: nil,
1906
- flight: nil,
1907
- flight_data: nil,
1908
- lodging: nil,
1909
- lodging_data: nil,
1910
- order_reference: nil,
1911
- subscription: nil
1912
- )
1913
- @car_rental = car_rental
1914
- @car_rental_data = car_rental_data
278
+ def initialize(customer_reference: nil, order_reference: nil)
1915
279
  @customer_reference = customer_reference
1916
- @event_details = event_details
1917
- @flight = flight
1918
- @flight_data = flight_data
1919
- @lodging = lodging
1920
- @lodging_data = lodging_data
1921
280
  @order_reference = order_reference
1922
- @subscription = subscription
1923
281
  end
1924
282
  end
1925
283
 
@@ -2023,6 +381,7 @@ module Stripe
2023
381
  end
2024
382
  end
2025
383
 
384
+ class Bizum < ::Stripe::RequestParams; end
2026
385
  class Blik < ::Stripe::RequestParams; end
2027
386
 
2028
387
  class Boleto < ::Stripe::RequestParams
@@ -2060,18 +419,8 @@ module Stripe
2060
419
  end
2061
420
 
2062
421
  class Giropay < ::Stripe::RequestParams; end
2063
- class Gopay < ::Stripe::RequestParams; end
2064
422
  class Grabpay < ::Stripe::RequestParams; end
2065
423
 
2066
- class IdBankTransfer < ::Stripe::RequestParams
2067
- # Bank where the account is held.
2068
- attr_accessor :bank
2069
-
2070
- def initialize(bank: nil)
2071
- @bank = bank
2072
- end
2073
- end
2074
-
2075
424
  class Ideal < ::Stripe::RequestParams
2076
425
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2077
426
  attr_accessor :bank
@@ -2169,7 +518,6 @@ module Stripe
2169
518
  class Payco < ::Stripe::RequestParams; end
2170
519
  class Paynow < ::Stripe::RequestParams; end
2171
520
  class Paypal < ::Stripe::RequestParams; end
2172
- class Paypay < ::Stripe::RequestParams; end
2173
521
 
2174
522
  class Payto < ::Stripe::RequestParams
2175
523
  # The account number for the bank account.
@@ -2188,7 +536,6 @@ module Stripe
2188
536
 
2189
537
  class Pix < ::Stripe::RequestParams; end
2190
538
  class Promptpay < ::Stripe::RequestParams; end
2191
- class Qris < ::Stripe::RequestParams; end
2192
539
 
2193
540
  class RadarOptions < ::Stripe::RequestParams
2194
541
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -2199,32 +546,10 @@ module Stripe
2199
546
  end
2200
547
  end
2201
548
 
2202
- class Rechnung < ::Stripe::RequestParams
2203
- class Dob < ::Stripe::RequestParams
2204
- # The day of birth, between 1 and 31.
2205
- attr_accessor :day
2206
- # The month of birth, between 1 and 12.
2207
- attr_accessor :month
2208
- # The four-digit year of birth.
2209
- attr_accessor :year
2210
-
2211
- def initialize(day: nil, month: nil, year: nil)
2212
- @day = day
2213
- @month = month
2214
- @year = year
2215
- end
2216
- end
2217
- # Customer's date of birth
2218
- attr_accessor :dob
2219
-
2220
- def initialize(dob: nil)
2221
- @dob = dob
2222
- end
2223
- end
2224
-
2225
549
  class RevolutPay < ::Stripe::RequestParams; end
2226
550
  class SamsungPay < ::Stripe::RequestParams; end
2227
551
  class Satispay < ::Stripe::RequestParams; end
552
+ class Scalapay < ::Stripe::RequestParams; end
2228
553
 
2229
554
  class SepaDebit < ::Stripe::RequestParams
2230
555
  # IBAN of the bank account.
@@ -2235,8 +560,6 @@ module Stripe
2235
560
  end
2236
561
  end
2237
562
 
2238
- class Shopeepay < ::Stripe::RequestParams; end
2239
-
2240
563
  class Sofort < ::Stripe::RequestParams
2241
564
  # Two-letter ISO code representing the country the bank account is located in.
2242
565
  attr_accessor :country
@@ -2246,15 +569,6 @@ module Stripe
2246
569
  end
2247
570
  end
2248
571
 
2249
- class StripeBalance < ::Stripe::RequestParams
2250
- # The connected account ID whose Stripe balance to use as the source of payment
2251
- attr_accessor :account
2252
-
2253
- def initialize(account: nil)
2254
- @account = account
2255
- end
2256
- end
2257
-
2258
572
  class Sunbit < ::Stripe::RequestParams; end
2259
573
  class Swish < ::Stripe::RequestParams; end
2260
574
  class Twint < ::Stripe::RequestParams; end
@@ -2338,6 +652,8 @@ module Stripe
2338
652
  attr_accessor :billie
2339
653
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2340
654
  attr_accessor :billing_details
655
+ # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
656
+ attr_accessor :bizum
2341
657
  # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2342
658
  attr_accessor :blik
2343
659
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
@@ -2354,12 +670,8 @@ module Stripe
2354
670
  attr_accessor :fpx
2355
671
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2356
672
  attr_accessor :giropay
2357
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2358
- attr_accessor :gopay
2359
673
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2360
674
  attr_accessor :grabpay
2361
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2362
- attr_accessor :id_bank_transfer
2363
675
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2364
676
  attr_accessor :ideal
2365
677
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2372,7 +684,7 @@ module Stripe
2372
684
  attr_accessor :konbini
2373
685
  # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2374
686
  attr_accessor :kr_card
2375
- # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
687
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
2376
688
  attr_accessor :link
2377
689
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2378
690
  attr_accessor :mb_way
@@ -2398,36 +710,26 @@ module Stripe
2398
710
  attr_accessor :paynow
2399
711
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2400
712
  attr_accessor :paypal
2401
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2402
- attr_accessor :paypay
2403
713
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2404
714
  attr_accessor :payto
2405
715
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2406
716
  attr_accessor :pix
2407
717
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2408
718
  attr_accessor :promptpay
2409
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2410
- attr_accessor :qris
2411
719
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2412
720
  attr_accessor :radar_options
2413
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2414
- attr_accessor :rechnung
2415
721
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2416
722
  attr_accessor :revolut_pay
2417
723
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
2418
724
  attr_accessor :samsung_pay
2419
725
  # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2420
726
  attr_accessor :satispay
727
+ # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
728
+ attr_accessor :scalapay
2421
729
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2422
730
  attr_accessor :sepa_debit
2423
- # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2424
- attr_accessor :shared_payment_granted_token
2425
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2426
- attr_accessor :shopeepay
2427
731
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2428
732
  attr_accessor :sofort
2429
- # This hash contains details about the Stripe balance payment method.
2430
- attr_accessor :stripe_balance
2431
733
  # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
2432
734
  attr_accessor :sunbit
2433
735
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -2458,6 +760,7 @@ module Stripe
2458
760
  bancontact: nil,
2459
761
  billie: nil,
2460
762
  billing_details: nil,
763
+ bizum: nil,
2461
764
  blik: nil,
2462
765
  boleto: nil,
2463
766
  cashapp: nil,
@@ -2466,9 +769,7 @@ module Stripe
2466
769
  eps: nil,
2467
770
  fpx: nil,
2468
771
  giropay: nil,
2469
- gopay: nil,
2470
772
  grabpay: nil,
2471
- id_bank_transfer: nil,
2472
773
  ideal: nil,
2473
774
  interac_present: nil,
2474
775
  kakao_pay: nil,
@@ -2488,21 +789,16 @@ module Stripe
2488
789
  payco: nil,
2489
790
  paynow: nil,
2490
791
  paypal: nil,
2491
- paypay: nil,
2492
792
  payto: nil,
2493
793
  pix: nil,
2494
794
  promptpay: nil,
2495
- qris: nil,
2496
795
  radar_options: nil,
2497
- rechnung: nil,
2498
796
  revolut_pay: nil,
2499
797
  samsung_pay: nil,
2500
798
  satispay: nil,
799
+ scalapay: nil,
2501
800
  sepa_debit: nil,
2502
- shared_payment_granted_token: nil,
2503
- shopeepay: nil,
2504
801
  sofort: nil,
2505
- stripe_balance: nil,
2506
802
  sunbit: nil,
2507
803
  swish: nil,
2508
804
  twint: nil,
@@ -2524,6 +820,7 @@ module Stripe
2524
820
  @bancontact = bancontact
2525
821
  @billie = billie
2526
822
  @billing_details = billing_details
823
+ @bizum = bizum
2527
824
  @blik = blik
2528
825
  @boleto = boleto
2529
826
  @cashapp = cashapp
@@ -2532,9 +829,7 @@ module Stripe
2532
829
  @eps = eps
2533
830
  @fpx = fpx
2534
831
  @giropay = giropay
2535
- @gopay = gopay
2536
832
  @grabpay = grabpay
2537
- @id_bank_transfer = id_bank_transfer
2538
833
  @ideal = ideal
2539
834
  @interac_present = interac_present
2540
835
  @kakao_pay = kakao_pay
@@ -2554,21 +849,16 @@ module Stripe
2554
849
  @payco = payco
2555
850
  @paynow = paynow
2556
851
  @paypal = paypal
2557
- @paypay = paypay
2558
852
  @payto = payto
2559
853
  @pix = pix
2560
854
  @promptpay = promptpay
2561
- @qris = qris
2562
855
  @radar_options = radar_options
2563
- @rechnung = rechnung
2564
856
  @revolut_pay = revolut_pay
2565
857
  @samsung_pay = samsung_pay
2566
858
  @satispay = satispay
859
+ @scalapay = scalapay
2567
860
  @sepa_debit = sepa_debit
2568
- @shared_payment_granted_token = shared_payment_granted_token
2569
- @shopeepay = shopeepay
2570
861
  @sofort = sofort
2571
- @stripe_balance = stripe_balance
2572
862
  @sunbit = sunbit
2573
863
  @swish = swish
2574
864
  @twint = twint
@@ -2827,6 +1117,8 @@ module Stripe
2827
1117
  end
2828
1118
  end
2829
1119
 
1120
+ class Bizum < ::Stripe::RequestParams; end
1121
+
2830
1122
  class Blik < ::Stripe::RequestParams
2831
1123
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
2832
1124
  attr_accessor :code
@@ -2937,49 +1229,7 @@ module Stripe
2937
1229
  @interval_count = interval_count
2938
1230
  @reference = reference
2939
1231
  @start_date = start_date
2940
- @supported_types = supported_types
2941
- end
2942
- end
2943
-
2944
- class StatementDetails < ::Stripe::RequestParams
2945
- class Address < ::Stripe::RequestParams
2946
- # City, district, suburb, town, or village.
2947
- attr_accessor :city
2948
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2949
- attr_accessor :country
2950
- # Address line 1, such as the street, PO Box, or company name.
2951
- attr_accessor :line1
2952
- # Address line 2, such as the apartment, suite, unit, or building.
2953
- attr_accessor :line2
2954
- # ZIP or postal code.
2955
- attr_accessor :postal_code
2956
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2957
- attr_accessor :state
2958
-
2959
- def initialize(
2960
- city: nil,
2961
- country: nil,
2962
- line1: nil,
2963
- line2: nil,
2964
- postal_code: nil,
2965
- state: nil
2966
- )
2967
- @city = city
2968
- @country = country
2969
- @line1 = line1
2970
- @line2 = line2
2971
- @postal_code = postal_code
2972
- @state = state
2973
- end
2974
- end
2975
- # Please pass in an address that is within your Stripe user account country
2976
- attr_accessor :address
2977
- # Phone number (e.g., a toll-free number that customers can call)
2978
- attr_accessor :phone
2979
-
2980
- def initialize(address: nil, phone: nil)
2981
- @address = address
2982
- @phone = phone
1232
+ @supported_types = supported_types
2983
1233
  end
2984
1234
  end
2985
1235
 
@@ -3077,8 +1327,6 @@ module Stripe
3077
1327
  attr_accessor :moto
3078
1328
  # Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
3079
1329
  attr_accessor :network
3080
- # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3081
- attr_accessor :request_decremental_authorization
3082
1330
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
3083
1331
  attr_accessor :request_extended_authorization
3084
1332
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -3087,8 +1335,6 @@ module Stripe
3087
1335
  attr_accessor :request_multicapture
3088
1336
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
3089
1337
  attr_accessor :request_overcapture
3090
- # Request partial authorization on this PaymentIntent.
3091
- attr_accessor :request_partial_authorization
3092
1338
  # 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.
3093
1339
  attr_accessor :request_three_d_secure
3094
1340
  # When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
@@ -3107,8 +1353,6 @@ module Stripe
3107
1353
  attr_accessor :statement_descriptor_suffix_kana
3108
1354
  # 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.
3109
1355
  attr_accessor :statement_descriptor_suffix_kanji
3110
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3111
- attr_accessor :statement_details
3112
1356
  # If 3D Secure authentication was performed with a third-party provider,
3113
1357
  # the authentication details to use for this payment.
3114
1358
  attr_accessor :three_d_secure
@@ -3120,18 +1364,15 @@ module Stripe
3120
1364
  mandate_options: nil,
3121
1365
  moto: nil,
3122
1366
  network: nil,
3123
- request_decremental_authorization: nil,
3124
1367
  request_extended_authorization: nil,
3125
1368
  request_incremental_authorization: nil,
3126
1369
  request_multicapture: nil,
3127
1370
  request_overcapture: nil,
3128
- request_partial_authorization: nil,
3129
1371
  request_three_d_secure: nil,
3130
1372
  require_cvc_recollection: nil,
3131
1373
  setup_future_usage: nil,
3132
1374
  statement_descriptor_suffix_kana: nil,
3133
1375
  statement_descriptor_suffix_kanji: nil,
3134
- statement_details: nil,
3135
1376
  three_d_secure: nil
3136
1377
  )
3137
1378
  @capture_method = capture_method
@@ -3140,18 +1381,15 @@ module Stripe
3140
1381
  @mandate_options = mandate_options
3141
1382
  @moto = moto
3142
1383
  @network = network
3143
- @request_decremental_authorization = request_decremental_authorization
3144
1384
  @request_extended_authorization = request_extended_authorization
3145
1385
  @request_incremental_authorization = request_incremental_authorization
3146
1386
  @request_multicapture = request_multicapture
3147
1387
  @request_overcapture = request_overcapture
3148
- @request_partial_authorization = request_partial_authorization
3149
1388
  @request_three_d_secure = request_three_d_secure
3150
1389
  @require_cvc_recollection = require_cvc_recollection
3151
1390
  @setup_future_usage = setup_future_usage
3152
1391
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
3153
1392
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3154
- @statement_details = statement_details
3155
1393
  @three_d_secure = three_d_secure
3156
1394
  end
3157
1395
  end
@@ -3330,23 +1568,6 @@ module Stripe
3330
1568
  end
3331
1569
  end
3332
1570
 
3333
- class Gopay < ::Stripe::RequestParams
3334
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3335
- #
3336
- # 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.
3337
- #
3338
- # 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.
3339
- #
3340
- # 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).
3341
- #
3342
- # 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`.
3343
- attr_accessor :setup_future_usage
3344
-
3345
- def initialize(setup_future_usage: nil)
3346
- @setup_future_usage = setup_future_usage
3347
- end
3348
- end
3349
-
3350
1571
  class Grabpay < ::Stripe::RequestParams
3351
1572
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3352
1573
  #
@@ -3364,29 +1585,6 @@ module Stripe
3364
1585
  end
3365
1586
  end
3366
1587
 
3367
- class IdBankTransfer < ::Stripe::RequestParams
3368
- # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
3369
- attr_accessor :expires_after
3370
- # The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
3371
- attr_accessor :expires_at
3372
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3373
- #
3374
- # 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.
3375
- #
3376
- # 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.
3377
- #
3378
- # 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).
3379
- #
3380
- # 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`.
3381
- attr_accessor :setup_future_usage
3382
-
3383
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3384
- @expires_after = expires_after
3385
- @expires_at = expires_at
3386
- @setup_future_usage = setup_future_usage
3387
- end
3388
- end
3389
-
3390
1588
  class Ideal < ::Stripe::RequestParams
3391
1589
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3392
1590
  #
@@ -3493,939 +1691,6 @@ module Stripe
3493
1691
  @reference = reference
3494
1692
  end
3495
1693
  end
3496
-
3497
- class SupplementaryPurchaseData < ::Stripe::RequestParams
3498
- class BusReservationDetail < ::Stripe::RequestParams
3499
- class Arrival < ::Stripe::RequestParams
3500
- class Address < ::Stripe::RequestParams
3501
- # The city or town.
3502
- attr_accessor :city
3503
- # The country in ISO 3166-1 alpha-2 format.
3504
- attr_accessor :country
3505
- # The postal code formatted according to country.
3506
- attr_accessor :postal_code
3507
- # The state, county, province, or region formatted according to country.
3508
- attr_accessor :region
3509
- # Line 1 of the street address.
3510
- attr_accessor :street_address
3511
- # Line 2 of the street address.
3512
- attr_accessor :street_address2
3513
-
3514
- def initialize(
3515
- city: nil,
3516
- country: nil,
3517
- postal_code: nil,
3518
- region: nil,
3519
- street_address: nil,
3520
- street_address2: nil
3521
- )
3522
- @city = city
3523
- @country = country
3524
- @postal_code = postal_code
3525
- @region = region
3526
- @street_address = street_address
3527
- @street_address2 = street_address2
3528
- end
3529
- end
3530
- # Address of the arrival location.
3531
- attr_accessor :address
3532
- # Identifier name or reference for the arrival location.
3533
- attr_accessor :arrival_location
3534
-
3535
- def initialize(address: nil, arrival_location: nil)
3536
- @address = address
3537
- @arrival_location = arrival_location
3538
- end
3539
- end
3540
-
3541
- class Departure < ::Stripe::RequestParams
3542
- class Address < ::Stripe::RequestParams
3543
- # The city or town.
3544
- attr_accessor :city
3545
- # The country in ISO 3166-1 alpha-2 format.
3546
- attr_accessor :country
3547
- # The postal code formatted according to country.
3548
- attr_accessor :postal_code
3549
- # The state, county, province, or region formatted according to country.
3550
- attr_accessor :region
3551
- # Line 1 of the street address.
3552
- attr_accessor :street_address
3553
- # Line 2 of the street address.
3554
- attr_accessor :street_address2
3555
-
3556
- def initialize(
3557
- city: nil,
3558
- country: nil,
3559
- postal_code: nil,
3560
- region: nil,
3561
- street_address: nil,
3562
- street_address2: nil
3563
- )
3564
- @city = city
3565
- @country = country
3566
- @postal_code = postal_code
3567
- @region = region
3568
- @street_address = street_address
3569
- @street_address2 = street_address2
3570
- end
3571
- end
3572
- # Address of the departure location.
3573
- attr_accessor :address
3574
- # Timestamp of departure.
3575
- attr_accessor :departs_at
3576
- # Identifier name or reference for the origin location.
3577
- attr_accessor :departure_location
3578
-
3579
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3580
- @address = address
3581
- @departs_at = departs_at
3582
- @departure_location = departure_location
3583
- end
3584
- end
3585
-
3586
- class Insurance < ::Stripe::RequestParams
3587
- # Insurance currency.
3588
- attr_accessor :currency
3589
- # Name of the company providing the insurance.
3590
- attr_accessor :insurance_company_name
3591
- # Type of insurance.
3592
- attr_accessor :insurance_type
3593
- # Price of insurance in cents.
3594
- attr_accessor :price
3595
-
3596
- def initialize(
3597
- currency: nil,
3598
- insurance_company_name: nil,
3599
- insurance_type: nil,
3600
- price: nil
3601
- )
3602
- @currency = currency
3603
- @insurance_company_name = insurance_company_name
3604
- @insurance_type = insurance_type
3605
- @price = price
3606
- end
3607
- end
3608
-
3609
- class Passenger < ::Stripe::RequestParams
3610
- # The family name of the person.
3611
- attr_accessor :family_name
3612
- # The given name of the person.
3613
- attr_accessor :given_name
3614
-
3615
- def initialize(family_name: nil, given_name: nil)
3616
- @family_name = family_name
3617
- @given_name = given_name
3618
- end
3619
- end
3620
- # Name of associated or partner company for the service.
3621
- attr_accessor :affiliate_name
3622
- # Arrival details.
3623
- attr_accessor :arrival
3624
- # Name of transportation company.
3625
- attr_accessor :carrier_name
3626
- # Currency.
3627
- attr_accessor :currency
3628
- # Departure details.
3629
- attr_accessor :departure
3630
- # List of insurances for this reservation.
3631
- attr_accessor :insurances
3632
- # List of passengers that this reservation applies to.
3633
- attr_accessor :passengers
3634
- # Price in cents.
3635
- attr_accessor :price
3636
- # Ticket class.
3637
- attr_accessor :ticket_class
3638
-
3639
- def initialize(
3640
- affiliate_name: nil,
3641
- arrival: nil,
3642
- carrier_name: nil,
3643
- currency: nil,
3644
- departure: nil,
3645
- insurances: nil,
3646
- passengers: nil,
3647
- price: nil,
3648
- ticket_class: nil
3649
- )
3650
- @affiliate_name = affiliate_name
3651
- @arrival = arrival
3652
- @carrier_name = carrier_name
3653
- @currency = currency
3654
- @departure = departure
3655
- @insurances = insurances
3656
- @passengers = passengers
3657
- @price = price
3658
- @ticket_class = ticket_class
3659
- end
3660
- end
3661
-
3662
- class EventReservationDetail < ::Stripe::RequestParams
3663
- class Address < ::Stripe::RequestParams
3664
- # The city or town.
3665
- attr_accessor :city
3666
- # The country in ISO 3166-1 alpha-2 format.
3667
- attr_accessor :country
3668
- # The postal code formatted according to country.
3669
- attr_accessor :postal_code
3670
- # The state, county, province, or region formatted according to country.
3671
- attr_accessor :region
3672
- # Line 1 of the street address.
3673
- attr_accessor :street_address
3674
- # Line 2 of the street address.
3675
- attr_accessor :street_address2
3676
-
3677
- def initialize(
3678
- city: nil,
3679
- country: nil,
3680
- postal_code: nil,
3681
- region: nil,
3682
- street_address: nil,
3683
- street_address2: nil
3684
- )
3685
- @city = city
3686
- @country = country
3687
- @postal_code = postal_code
3688
- @region = region
3689
- @street_address = street_address
3690
- @street_address2 = street_address2
3691
- end
3692
- end
3693
-
3694
- class Insurance < ::Stripe::RequestParams
3695
- # Insurance currency.
3696
- attr_accessor :currency
3697
- # Name of the company providing the insurance.
3698
- attr_accessor :insurance_company_name
3699
- # Type of insurance.
3700
- attr_accessor :insurance_type
3701
- # Price of insurance in cents.
3702
- attr_accessor :price
3703
-
3704
- def initialize(
3705
- currency: nil,
3706
- insurance_company_name: nil,
3707
- insurance_type: nil,
3708
- price: nil
3709
- )
3710
- @currency = currency
3711
- @insurance_company_name = insurance_company_name
3712
- @insurance_type = insurance_type
3713
- @price = price
3714
- end
3715
- end
3716
- # Indicates if the tickets are digitally checked when entering the venue.
3717
- attr_accessor :access_controlled_venue
3718
- # Address of the event.
3719
- attr_accessor :address
3720
- # Name of associated or partner company for the service.
3721
- attr_accessor :affiliate_name
3722
- # End timestamp of the event.
3723
- attr_accessor :ends_at
3724
- # Company selling the ticket.
3725
- attr_accessor :event_company_name
3726
- # Name of the event.
3727
- attr_accessor :event_name
3728
- # Type of the event.
3729
- attr_accessor :event_type
3730
- # List of insurances for this event.
3731
- attr_accessor :insurances
3732
- # Start timestamp of the event.
3733
- attr_accessor :starts_at
3734
- # Name of the venue where the event takes place.
3735
- attr_accessor :venue_name
3736
-
3737
- def initialize(
3738
- access_controlled_venue: nil,
3739
- address: nil,
3740
- affiliate_name: nil,
3741
- ends_at: nil,
3742
- event_company_name: nil,
3743
- event_name: nil,
3744
- event_type: nil,
3745
- insurances: nil,
3746
- starts_at: nil,
3747
- venue_name: nil
3748
- )
3749
- @access_controlled_venue = access_controlled_venue
3750
- @address = address
3751
- @affiliate_name = affiliate_name
3752
- @ends_at = ends_at
3753
- @event_company_name = event_company_name
3754
- @event_name = event_name
3755
- @event_type = event_type
3756
- @insurances = insurances
3757
- @starts_at = starts_at
3758
- @venue_name = venue_name
3759
- end
3760
- end
3761
-
3762
- class FerryReservationDetail < ::Stripe::RequestParams
3763
- class Arrival < ::Stripe::RequestParams
3764
- class Address < ::Stripe::RequestParams
3765
- # The city or town.
3766
- attr_accessor :city
3767
- # The country in ISO 3166-1 alpha-2 format.
3768
- attr_accessor :country
3769
- # The postal code formatted according to country.
3770
- attr_accessor :postal_code
3771
- # The state, county, province, or region formatted according to country.
3772
- attr_accessor :region
3773
- # Line 1 of the street address.
3774
- attr_accessor :street_address
3775
- # Line 2 of the street address.
3776
- attr_accessor :street_address2
3777
-
3778
- def initialize(
3779
- city: nil,
3780
- country: nil,
3781
- postal_code: nil,
3782
- region: nil,
3783
- street_address: nil,
3784
- street_address2: nil
3785
- )
3786
- @city = city
3787
- @country = country
3788
- @postal_code = postal_code
3789
- @region = region
3790
- @street_address = street_address
3791
- @street_address2 = street_address2
3792
- end
3793
- end
3794
- # Address of the arrival location.
3795
- attr_accessor :address
3796
- # Identifier name or reference for the arrival location.
3797
- attr_accessor :arrival_location
3798
-
3799
- def initialize(address: nil, arrival_location: nil)
3800
- @address = address
3801
- @arrival_location = arrival_location
3802
- end
3803
- end
3804
-
3805
- class Departure < ::Stripe::RequestParams
3806
- class Address < ::Stripe::RequestParams
3807
- # The city or town.
3808
- attr_accessor :city
3809
- # The country in ISO 3166-1 alpha-2 format.
3810
- attr_accessor :country
3811
- # The postal code formatted according to country.
3812
- attr_accessor :postal_code
3813
- # The state, county, province, or region formatted according to country.
3814
- attr_accessor :region
3815
- # Line 1 of the street address.
3816
- attr_accessor :street_address
3817
- # Line 2 of the street address.
3818
- attr_accessor :street_address2
3819
-
3820
- def initialize(
3821
- city: nil,
3822
- country: nil,
3823
- postal_code: nil,
3824
- region: nil,
3825
- street_address: nil,
3826
- street_address2: nil
3827
- )
3828
- @city = city
3829
- @country = country
3830
- @postal_code = postal_code
3831
- @region = region
3832
- @street_address = street_address
3833
- @street_address2 = street_address2
3834
- end
3835
- end
3836
- # Address of the departure location.
3837
- attr_accessor :address
3838
- # Timestamp of departure.
3839
- attr_accessor :departs_at
3840
- # Identifier name or reference for the origin location.
3841
- attr_accessor :departure_location
3842
-
3843
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3844
- @address = address
3845
- @departs_at = departs_at
3846
- @departure_location = departure_location
3847
- end
3848
- end
3849
-
3850
- class Insurance < ::Stripe::RequestParams
3851
- # Insurance currency.
3852
- attr_accessor :currency
3853
- # Name of the company providing the insurance.
3854
- attr_accessor :insurance_company_name
3855
- # Type of insurance.
3856
- attr_accessor :insurance_type
3857
- # Price of insurance in cents.
3858
- attr_accessor :price
3859
-
3860
- def initialize(
3861
- currency: nil,
3862
- insurance_company_name: nil,
3863
- insurance_type: nil,
3864
- price: nil
3865
- )
3866
- @currency = currency
3867
- @insurance_company_name = insurance_company_name
3868
- @insurance_type = insurance_type
3869
- @price = price
3870
- end
3871
- end
3872
-
3873
- class Passenger < ::Stripe::RequestParams
3874
- # The family name of the person.
3875
- attr_accessor :family_name
3876
- # The given name of the person.
3877
- attr_accessor :given_name
3878
-
3879
- def initialize(family_name: nil, given_name: nil)
3880
- @family_name = family_name
3881
- @given_name = given_name
3882
- end
3883
- end
3884
- # Name of associated or partner company for the service.
3885
- attr_accessor :affiliate_name
3886
- # Arrival details.
3887
- attr_accessor :arrival
3888
- # Name of transportation company.
3889
- attr_accessor :carrier_name
3890
- # Currency.
3891
- attr_accessor :currency
3892
- # Departure details.
3893
- attr_accessor :departure
3894
- # List of insurances for this reservation.
3895
- attr_accessor :insurances
3896
- # List of passengers that this reservation applies to.
3897
- attr_accessor :passengers
3898
- # Price in cents.
3899
- attr_accessor :price
3900
- # Ticket class.
3901
- attr_accessor :ticket_class
3902
-
3903
- def initialize(
3904
- affiliate_name: nil,
3905
- arrival: nil,
3906
- carrier_name: nil,
3907
- currency: nil,
3908
- departure: nil,
3909
- insurances: nil,
3910
- passengers: nil,
3911
- price: nil,
3912
- ticket_class: nil
3913
- )
3914
- @affiliate_name = affiliate_name
3915
- @arrival = arrival
3916
- @carrier_name = carrier_name
3917
- @currency = currency
3918
- @departure = departure
3919
- @insurances = insurances
3920
- @passengers = passengers
3921
- @price = price
3922
- @ticket_class = ticket_class
3923
- end
3924
- end
3925
-
3926
- class Insurance < ::Stripe::RequestParams
3927
- # Insurance currency.
3928
- attr_accessor :currency
3929
- # Name of the company providing the insurance.
3930
- attr_accessor :insurance_company_name
3931
- # Type of insurance
3932
- attr_accessor :insurance_type
3933
- # Price of insurance in cents.
3934
- attr_accessor :price
3935
-
3936
- def initialize(
3937
- currency: nil,
3938
- insurance_company_name: nil,
3939
- insurance_type: nil,
3940
- price: nil
3941
- )
3942
- @currency = currency
3943
- @insurance_company_name = insurance_company_name
3944
- @insurance_type = insurance_type
3945
- @price = price
3946
- end
3947
- end
3948
-
3949
- class MarketplaceSeller < ::Stripe::RequestParams
3950
- class MarketplaceSellerAddress < ::Stripe::RequestParams
3951
- # The city or town.
3952
- attr_accessor :city
3953
- # The country in ISO 3166-1 alpha-2 format.
3954
- attr_accessor :country
3955
- # The postal code formatted according to country.
3956
- attr_accessor :postal_code
3957
- # The state, county, province, or region formatted according to country.
3958
- attr_accessor :region
3959
- # Line 1 of the street address.
3960
- attr_accessor :street_address
3961
- # Line 2 of the street address.
3962
- attr_accessor :street_address2
3963
-
3964
- def initialize(
3965
- city: nil,
3966
- country: nil,
3967
- postal_code: nil,
3968
- region: nil,
3969
- street_address: nil,
3970
- street_address2: nil
3971
- )
3972
- @city = city
3973
- @country = country
3974
- @postal_code = postal_code
3975
- @region = region
3976
- @street_address = street_address
3977
- @street_address2 = street_address2
3978
- end
3979
- end
3980
- # The references to line items for purchases with multiple associated sub-sellers.
3981
- attr_accessor :line_item_references
3982
- # The address of the selling or delivering merchant.
3983
- attr_accessor :marketplace_seller_address
3984
- # The name of the marketplace seller.
3985
- attr_accessor :marketplace_seller_name
3986
- # The unique identifier for the marketplace seller.
3987
- attr_accessor :marketplace_seller_reference
3988
- # The number of transactions the sub-seller completed in the last 12 months.
3989
- attr_accessor :number_of_transactions
3990
- # The category of the product.
3991
- attr_accessor :product_category
3992
- # The date when the seller's account with the marketplace was last logged in.
3993
- attr_accessor :seller_last_login_at
3994
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3995
- attr_accessor :seller_rating
3996
- # The date when the seller's account with the marketplace was created.
3997
- attr_accessor :seller_registered_at
3998
- # The date when the seller's account with the marketplace was last updated.
3999
- attr_accessor :seller_updated_at
4000
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
4001
- attr_accessor :shipping_references
4002
- # The accumulated amount of sales transactions made by the sub-merchant or sub-seller within the past 12 months in the payment currency. These transactions are in minor currency units.
4003
- attr_accessor :volume_of_transactions
4004
-
4005
- def initialize(
4006
- line_item_references: nil,
4007
- marketplace_seller_address: nil,
4008
- marketplace_seller_name: nil,
4009
- marketplace_seller_reference: nil,
4010
- number_of_transactions: nil,
4011
- product_category: nil,
4012
- seller_last_login_at: nil,
4013
- seller_rating: nil,
4014
- seller_registered_at: nil,
4015
- seller_updated_at: nil,
4016
- shipping_references: nil,
4017
- volume_of_transactions: nil
4018
- )
4019
- @line_item_references = line_item_references
4020
- @marketplace_seller_address = marketplace_seller_address
4021
- @marketplace_seller_name = marketplace_seller_name
4022
- @marketplace_seller_reference = marketplace_seller_reference
4023
- @number_of_transactions = number_of_transactions
4024
- @product_category = product_category
4025
- @seller_last_login_at = seller_last_login_at
4026
- @seller_rating = seller_rating
4027
- @seller_registered_at = seller_registered_at
4028
- @seller_updated_at = seller_updated_at
4029
- @shipping_references = shipping_references
4030
- @volume_of_transactions = volume_of_transactions
4031
- end
4032
- end
4033
-
4034
- class RoundTripReservationDetail < ::Stripe::RequestParams
4035
- class Arrival < ::Stripe::RequestParams
4036
- class Address < ::Stripe::RequestParams
4037
- # The city or town.
4038
- attr_accessor :city
4039
- # The country in ISO 3166-1 alpha-2 format.
4040
- attr_accessor :country
4041
- # The postal code formatted according to country.
4042
- attr_accessor :postal_code
4043
- # The state, county, province, or region formatted according to country.
4044
- attr_accessor :region
4045
- # Line 1 of the street address.
4046
- attr_accessor :street_address
4047
- # Line 2 of the street address.
4048
- attr_accessor :street_address2
4049
-
4050
- def initialize(
4051
- city: nil,
4052
- country: nil,
4053
- postal_code: nil,
4054
- region: nil,
4055
- street_address: nil,
4056
- street_address2: nil
4057
- )
4058
- @city = city
4059
- @country = country
4060
- @postal_code = postal_code
4061
- @region = region
4062
- @street_address = street_address
4063
- @street_address2 = street_address2
4064
- end
4065
- end
4066
- # Address of the arrival location.
4067
- attr_accessor :address
4068
- # Identifier name or reference for the arrival location.
4069
- attr_accessor :arrival_location
4070
-
4071
- def initialize(address: nil, arrival_location: nil)
4072
- @address = address
4073
- @arrival_location = arrival_location
4074
- end
4075
- end
4076
-
4077
- class Departure < ::Stripe::RequestParams
4078
- class Address < ::Stripe::RequestParams
4079
- # The city or town.
4080
- attr_accessor :city
4081
- # The country in ISO 3166-1 alpha-2 format.
4082
- attr_accessor :country
4083
- # The postal code formatted according to country.
4084
- attr_accessor :postal_code
4085
- # The state, county, province, or region formatted according to country.
4086
- attr_accessor :region
4087
- # Line 1 of the street address.
4088
- attr_accessor :street_address
4089
- # Line 2 of the street address.
4090
- attr_accessor :street_address2
4091
-
4092
- def initialize(
4093
- city: nil,
4094
- country: nil,
4095
- postal_code: nil,
4096
- region: nil,
4097
- street_address: nil,
4098
- street_address2: nil
4099
- )
4100
- @city = city
4101
- @country = country
4102
- @postal_code = postal_code
4103
- @region = region
4104
- @street_address = street_address
4105
- @street_address2 = street_address2
4106
- end
4107
- end
4108
- # Address of the departure location.
4109
- attr_accessor :address
4110
- # Timestamp of departure.
4111
- attr_accessor :departs_at
4112
- # Identifier name or reference for the origin location.
4113
- attr_accessor :departure_location
4114
-
4115
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4116
- @address = address
4117
- @departs_at = departs_at
4118
- @departure_location = departure_location
4119
- end
4120
- end
4121
-
4122
- class Insurance < ::Stripe::RequestParams
4123
- # Insurance currency.
4124
- attr_accessor :currency
4125
- # Name of the company providing the insurance.
4126
- attr_accessor :insurance_company_name
4127
- # Type of insurance.
4128
- attr_accessor :insurance_type
4129
- # Price of insurance in cents.
4130
- attr_accessor :price
4131
-
4132
- def initialize(
4133
- currency: nil,
4134
- insurance_company_name: nil,
4135
- insurance_type: nil,
4136
- price: nil
4137
- )
4138
- @currency = currency
4139
- @insurance_company_name = insurance_company_name
4140
- @insurance_type = insurance_type
4141
- @price = price
4142
- end
4143
- end
4144
-
4145
- class Passenger < ::Stripe::RequestParams
4146
- # The family name of the person.
4147
- attr_accessor :family_name
4148
- # The given name of the person.
4149
- attr_accessor :given_name
4150
-
4151
- def initialize(family_name: nil, given_name: nil)
4152
- @family_name = family_name
4153
- @given_name = given_name
4154
- end
4155
- end
4156
- # Name of associated or partner company for the service.
4157
- attr_accessor :affiliate_name
4158
- # Arrival details.
4159
- attr_accessor :arrival
4160
- # Name of transportation company.
4161
- attr_accessor :carrier_name
4162
- # Currency.
4163
- attr_accessor :currency
4164
- # Departure details.
4165
- attr_accessor :departure
4166
- # List of insurances for this reservation.
4167
- attr_accessor :insurances
4168
- # List of passengers that this reservation applies to.
4169
- attr_accessor :passengers
4170
- # Price in cents.
4171
- attr_accessor :price
4172
- # Ticket class.
4173
- attr_accessor :ticket_class
4174
-
4175
- def initialize(
4176
- affiliate_name: nil,
4177
- arrival: nil,
4178
- carrier_name: nil,
4179
- currency: nil,
4180
- departure: nil,
4181
- insurances: nil,
4182
- passengers: nil,
4183
- price: nil,
4184
- ticket_class: nil
4185
- )
4186
- @affiliate_name = affiliate_name
4187
- @arrival = arrival
4188
- @carrier_name = carrier_name
4189
- @currency = currency
4190
- @departure = departure
4191
- @insurances = insurances
4192
- @passengers = passengers
4193
- @price = price
4194
- @ticket_class = ticket_class
4195
- end
4196
- end
4197
-
4198
- class TrainReservationDetail < ::Stripe::RequestParams
4199
- class Arrival < ::Stripe::RequestParams
4200
- class Address < ::Stripe::RequestParams
4201
- # The city or town.
4202
- attr_accessor :city
4203
- # The country in ISO 3166-1 alpha-2 format.
4204
- attr_accessor :country
4205
- # The postal code formatted according to country.
4206
- attr_accessor :postal_code
4207
- # The state, county, province, or region formatted according to country.
4208
- attr_accessor :region
4209
- # Line 1 of the street address.
4210
- attr_accessor :street_address
4211
- # Line 2 of the street address.
4212
- attr_accessor :street_address2
4213
-
4214
- def initialize(
4215
- city: nil,
4216
- country: nil,
4217
- postal_code: nil,
4218
- region: nil,
4219
- street_address: nil,
4220
- street_address2: nil
4221
- )
4222
- @city = city
4223
- @country = country
4224
- @postal_code = postal_code
4225
- @region = region
4226
- @street_address = street_address
4227
- @street_address2 = street_address2
4228
- end
4229
- end
4230
- # Address of the arrival location.
4231
- attr_accessor :address
4232
- # Identifier name or reference for the arrival location.
4233
- attr_accessor :arrival_location
4234
-
4235
- def initialize(address: nil, arrival_location: nil)
4236
- @address = address
4237
- @arrival_location = arrival_location
4238
- end
4239
- end
4240
-
4241
- class Departure < ::Stripe::RequestParams
4242
- class Address < ::Stripe::RequestParams
4243
- # The city or town.
4244
- attr_accessor :city
4245
- # The country in ISO 3166-1 alpha-2 format.
4246
- attr_accessor :country
4247
- # The postal code formatted according to country.
4248
- attr_accessor :postal_code
4249
- # The state, county, province, or region formatted according to country.
4250
- attr_accessor :region
4251
- # Line 1 of the street address.
4252
- attr_accessor :street_address
4253
- # Line 2 of the street address.
4254
- attr_accessor :street_address2
4255
-
4256
- def initialize(
4257
- city: nil,
4258
- country: nil,
4259
- postal_code: nil,
4260
- region: nil,
4261
- street_address: nil,
4262
- street_address2: nil
4263
- )
4264
- @city = city
4265
- @country = country
4266
- @postal_code = postal_code
4267
- @region = region
4268
- @street_address = street_address
4269
- @street_address2 = street_address2
4270
- end
4271
- end
4272
- # Address of the departure location.
4273
- attr_accessor :address
4274
- # Timestamp of departure.
4275
- attr_accessor :departs_at
4276
- # Identifier name or reference for the origin location.
4277
- attr_accessor :departure_location
4278
-
4279
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4280
- @address = address
4281
- @departs_at = departs_at
4282
- @departure_location = departure_location
4283
- end
4284
- end
4285
-
4286
- class Insurance < ::Stripe::RequestParams
4287
- # Insurance currency.
4288
- attr_accessor :currency
4289
- # Name of the company providing the insurance.
4290
- attr_accessor :insurance_company_name
4291
- # Type of insurance.
4292
- attr_accessor :insurance_type
4293
- # Price of insurance in cents.
4294
- attr_accessor :price
4295
-
4296
- def initialize(
4297
- currency: nil,
4298
- insurance_company_name: nil,
4299
- insurance_type: nil,
4300
- price: nil
4301
- )
4302
- @currency = currency
4303
- @insurance_company_name = insurance_company_name
4304
- @insurance_type = insurance_type
4305
- @price = price
4306
- end
4307
- end
4308
-
4309
- class Passenger < ::Stripe::RequestParams
4310
- # The family name of the person.
4311
- attr_accessor :family_name
4312
- # The given name of the person.
4313
- attr_accessor :given_name
4314
-
4315
- def initialize(family_name: nil, given_name: nil)
4316
- @family_name = family_name
4317
- @given_name = given_name
4318
- end
4319
- end
4320
- # Name of associated or partner company for the service.
4321
- attr_accessor :affiliate_name
4322
- # Arrival details.
4323
- attr_accessor :arrival
4324
- # Name of transportation company.
4325
- attr_accessor :carrier_name
4326
- # Currency.
4327
- attr_accessor :currency
4328
- # Departure details.
4329
- attr_accessor :departure
4330
- # List of insurances for this reservation.
4331
- attr_accessor :insurances
4332
- # List of passengers that this reservation applies to.
4333
- attr_accessor :passengers
4334
- # Price in cents.
4335
- attr_accessor :price
4336
- # Ticket class.
4337
- attr_accessor :ticket_class
4338
-
4339
- def initialize(
4340
- affiliate_name: nil,
4341
- arrival: nil,
4342
- carrier_name: nil,
4343
- currency: nil,
4344
- departure: nil,
4345
- insurances: nil,
4346
- passengers: nil,
4347
- price: nil,
4348
- ticket_class: nil
4349
- )
4350
- @affiliate_name = affiliate_name
4351
- @arrival = arrival
4352
- @carrier_name = carrier_name
4353
- @currency = currency
4354
- @departure = departure
4355
- @insurances = insurances
4356
- @passengers = passengers
4357
- @price = price
4358
- @ticket_class = ticket_class
4359
- end
4360
- end
4361
-
4362
- class Voucher < ::Stripe::RequestParams
4363
- # Name of associated or partner company for this voucher.
4364
- attr_accessor :affiliate_name
4365
- # The voucher validity end time.
4366
- attr_accessor :ends_at
4367
- # The voucher validity start time.
4368
- attr_accessor :starts_at
4369
- # The issuer or provider of this voucher.
4370
- attr_accessor :voucher_company
4371
- # The name or reference to identify the voucher.
4372
- attr_accessor :voucher_name
4373
- # The type of this voucher.
4374
- attr_accessor :voucher_type
4375
-
4376
- def initialize(
4377
- affiliate_name: nil,
4378
- ends_at: nil,
4379
- starts_at: nil,
4380
- voucher_company: nil,
4381
- voucher_name: nil,
4382
- voucher_type: nil
4383
- )
4384
- @affiliate_name = affiliate_name
4385
- @ends_at = ends_at
4386
- @starts_at = starts_at
4387
- @voucher_company = voucher_company
4388
- @voucher_name = voucher_name
4389
- @voucher_type = voucher_type
4390
- end
4391
- end
4392
- # Supplementary bus reservation details.
4393
- attr_accessor :bus_reservation_details
4394
- # Supplementary event reservation details.
4395
- attr_accessor :event_reservation_details
4396
- # Supplementary ferry reservation details.
4397
- attr_accessor :ferry_reservation_details
4398
- # Supplementary insurance details.
4399
- attr_accessor :insurances
4400
- # Supplementary marketplace seller details.
4401
- attr_accessor :marketplace_sellers
4402
- # Supplementary round trip reservation details.
4403
- attr_accessor :round_trip_reservation_details
4404
- # Supplementary train reservation details.
4405
- attr_accessor :train_reservation_details
4406
- # Voucher details, such as a gift card or discount code.
4407
- attr_accessor :vouchers
4408
-
4409
- def initialize(
4410
- bus_reservation_details: nil,
4411
- event_reservation_details: nil,
4412
- ferry_reservation_details: nil,
4413
- insurances: nil,
4414
- marketplace_sellers: nil,
4415
- round_trip_reservation_details: nil,
4416
- train_reservation_details: nil,
4417
- vouchers: nil
4418
- )
4419
- @bus_reservation_details = bus_reservation_details
4420
- @event_reservation_details = event_reservation_details
4421
- @ferry_reservation_details = ferry_reservation_details
4422
- @insurances = insurances
4423
- @marketplace_sellers = marketplace_sellers
4424
- @round_trip_reservation_details = round_trip_reservation_details
4425
- @train_reservation_details = train_reservation_details
4426
- @vouchers = vouchers
4427
- end
4428
- end
4429
1694
  # Controls when the funds are captured from the customer's account.
4430
1695
  #
4431
1696
  # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
@@ -4448,23 +1713,19 @@ module Stripe
4448
1713
  attr_accessor :setup_future_usage
4449
1714
  # Subscription details if setting up or charging a subscription.
4450
1715
  attr_accessor :subscriptions
4451
- # Supplementary Purchase Data for the corresponding Klarna payment
4452
- attr_accessor :supplementary_purchase_data
4453
1716
 
4454
1717
  def initialize(
4455
1718
  capture_method: nil,
4456
1719
  on_demand: nil,
4457
1720
  preferred_locale: nil,
4458
1721
  setup_future_usage: nil,
4459
- subscriptions: nil,
4460
- supplementary_purchase_data: nil
1722
+ subscriptions: nil
4461
1723
  )
4462
1724
  @capture_method = capture_method
4463
1725
  @on_demand = on_demand
4464
1726
  @preferred_locale = preferred_locale
4465
1727
  @setup_future_usage = setup_future_usage
4466
1728
  @subscriptions = subscriptions
4467
- @supplementary_purchase_data = supplementary_purchase_data
4468
1729
  end
4469
1730
  end
4470
1731
 
@@ -4725,65 +1986,12 @@ module Stripe
4725
1986
  end
4726
1987
 
4727
1988
  class Paypal < ::Stripe::RequestParams
4728
- class LineItem < ::Stripe::RequestParams
4729
- class Tax < ::Stripe::RequestParams
4730
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4731
- attr_accessor :amount
4732
- # The tax behavior for the line item.
4733
- attr_accessor :behavior
4734
-
4735
- def initialize(amount: nil, behavior: nil)
4736
- @amount = amount
4737
- @behavior = behavior
4738
- end
4739
- end
4740
- # Type of the line item.
4741
- attr_accessor :category
4742
- # Description of the line item.
4743
- attr_accessor :description
4744
- # Descriptive name of the line item.
4745
- attr_accessor :name
4746
- # Quantity of the line item. Must be a positive number.
4747
- attr_accessor :quantity
4748
- # Client facing stock keeping unit, article number or similar.
4749
- attr_accessor :sku
4750
- # The Stripe account ID of the connected account that sells the item.
4751
- attr_accessor :sold_by
4752
- # The tax information for the line item.
4753
- attr_accessor :tax
4754
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
4755
- attr_accessor :unit_amount
4756
-
4757
- def initialize(
4758
- category: nil,
4759
- description: nil,
4760
- name: nil,
4761
- quantity: nil,
4762
- sku: nil,
4763
- sold_by: nil,
4764
- tax: nil,
4765
- unit_amount: nil
4766
- )
4767
- @category = category
4768
- @description = description
4769
- @name = name
4770
- @quantity = quantity
4771
- @sku = sku
4772
- @sold_by = sold_by
4773
- @tax = tax
4774
- @unit_amount = unit_amount
4775
- end
4776
- end
4777
1989
  # Controls when the funds will be captured from the customer's account.
4778
1990
  attr_accessor :capture_method
4779
- # The line items purchased by the customer.
4780
- attr_accessor :line_items
4781
1991
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
4782
1992
  attr_accessor :preferred_locale
4783
1993
  # 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.
4784
1994
  attr_accessor :reference
4785
- # 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.
4786
- attr_accessor :reference_id
4787
1995
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
4788
1996
  attr_accessor :risk_correlation_id
4789
1997
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -4796,40 +2004,19 @@ module Stripe
4796
2004
  #
4797
2005
  # 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`.
4798
2006
  attr_accessor :setup_future_usage
4799
- # The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
4800
- attr_accessor :subsellers
4801
2007
 
4802
2008
  def initialize(
4803
2009
  capture_method: nil,
4804
- line_items: nil,
4805
2010
  preferred_locale: nil,
4806
2011
  reference: nil,
4807
- reference_id: nil,
4808
2012
  risk_correlation_id: nil,
4809
- setup_future_usage: nil,
4810
- subsellers: nil
2013
+ setup_future_usage: nil
4811
2014
  )
4812
2015
  @capture_method = capture_method
4813
- @line_items = line_items
4814
2016
  @preferred_locale = preferred_locale
4815
2017
  @reference = reference
4816
- @reference_id = reference_id
4817
2018
  @risk_correlation_id = risk_correlation_id
4818
2019
  @setup_future_usage = setup_future_usage
4819
- @subsellers = subsellers
4820
- end
4821
- end
4822
-
4823
- class Paypay < ::Stripe::RequestParams
4824
- # Controls when the funds are captured from the customer's account.
4825
- #
4826
- # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
4827
- #
4828
- # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
4829
- attr_accessor :capture_method
4830
-
4831
- def initialize(capture_method: nil)
4832
- @capture_method = capture_method
4833
2020
  end
4834
2021
  end
4835
2022
 
@@ -4971,25 +2158,6 @@ module Stripe
4971
2158
  end
4972
2159
  end
4973
2160
 
4974
- class Qris < ::Stripe::RequestParams
4975
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4976
- #
4977
- # 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.
4978
- #
4979
- # 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.
4980
- #
4981
- # 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).
4982
- #
4983
- # 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`.
4984
- attr_accessor :setup_future_usage
4985
-
4986
- def initialize(setup_future_usage: nil)
4987
- @setup_future_usage = setup_future_usage
4988
- end
4989
- end
4990
-
4991
- class Rechnung < ::Stripe::RequestParams; end
4992
-
4993
2161
  class RevolutPay < ::Stripe::RequestParams
4994
2162
  # Controls when the funds are captured from the customer's account.
4995
2163
  #
@@ -5038,6 +2206,19 @@ module Stripe
5038
2206
  end
5039
2207
  end
5040
2208
 
2209
+ class Scalapay < ::Stripe::RequestParams
2210
+ # Controls when the funds are captured from the customer's account.
2211
+ #
2212
+ # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
2213
+ #
2214
+ # If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
2215
+ attr_accessor :capture_method
2216
+
2217
+ def initialize(capture_method: nil)
2218
+ @capture_method = capture_method
2219
+ end
2220
+ end
2221
+
5041
2222
  class SepaDebit < ::Stripe::RequestParams
5042
2223
  class MandateOptions < ::Stripe::RequestParams
5043
2224
  # 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'.
@@ -5069,23 +2250,6 @@ module Stripe
5069
2250
  end
5070
2251
  end
5071
2252
 
5072
- class Shopeepay < ::Stripe::RequestParams
5073
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5074
- #
5075
- # 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.
5076
- #
5077
- # 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.
5078
- #
5079
- # 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).
5080
- #
5081
- # 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`.
5082
- attr_accessor :setup_future_usage
5083
-
5084
- def initialize(setup_future_usage: nil)
5085
- @setup_future_usage = setup_future_usage
5086
- end
5087
- end
5088
-
5089
2253
  class Sofort < ::Stripe::RequestParams
5090
2254
  # Language shown to the payer on redirect.
5091
2255
  attr_accessor :preferred_language
@@ -5106,23 +2270,6 @@ module Stripe
5106
2270
  end
5107
2271
  end
5108
2272
 
5109
- class StripeBalance < ::Stripe::RequestParams
5110
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5111
- #
5112
- # 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.
5113
- #
5114
- # 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.
5115
- #
5116
- # 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).
5117
- #
5118
- # 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`.
5119
- attr_accessor :setup_future_usage
5120
-
5121
- def initialize(setup_future_usage: nil)
5122
- @setup_future_usage = setup_future_usage
5123
- end
5124
- end
5125
-
5126
2273
  class Swish < ::Stripe::RequestParams
5127
2274
  # A reference for this payment to be displayed in the Swish app.
5128
2275
  attr_accessor :reference
@@ -5194,27 +2341,13 @@ module Stripe
5194
2341
  class Filters < ::Stripe::RequestParams
5195
2342
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
5196
2343
  attr_accessor :account_subcategories
5197
- # ID of the institution to use to filter for selectable accounts.
5198
- attr_accessor :institution
5199
2344
 
5200
- def initialize(account_subcategories: nil, institution: nil)
2345
+ def initialize(account_subcategories: nil)
5201
2346
  @account_subcategories = account_subcategories
5202
- @institution = institution
5203
- end
5204
- end
5205
-
5206
- class ManualEntry < ::Stripe::RequestParams
5207
- # Settings for configuring manual entry of account details.
5208
- attr_accessor :mode
5209
-
5210
- def initialize(mode: nil)
5211
- @mode = mode
5212
2347
  end
5213
2348
  end
5214
2349
  # Provide filters for the linked accounts that the customer can select for the payment method.
5215
2350
  attr_accessor :filters
5216
- # Customize manual entry behavior
5217
- attr_accessor :manual_entry
5218
2351
  # 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`.
5219
2352
  attr_accessor :permissions
5220
2353
  # List of data features that you would like to retrieve upon account creation.
@@ -5222,15 +2355,8 @@ module Stripe
5222
2355
  # For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
5223
2356
  attr_accessor :return_url
5224
2357
 
5225
- def initialize(
5226
- filters: nil,
5227
- manual_entry: nil,
5228
- permissions: nil,
5229
- prefetch: nil,
5230
- return_url: nil
5231
- )
2358
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5232
2359
  @filters = filters
5233
- @manual_entry = manual_entry
5234
2360
  @permissions = permissions
5235
2361
  @prefetch = prefetch
5236
2362
  @return_url = return_url
@@ -5355,6 +2481,8 @@ module Stripe
5355
2481
  attr_accessor :bancontact
5356
2482
  # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
5357
2483
  attr_accessor :billie
2484
+ # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
2485
+ attr_accessor :bizum
5358
2486
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
5359
2487
  attr_accessor :blik
5360
2488
  # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
@@ -5375,12 +2503,8 @@ module Stripe
5375
2503
  attr_accessor :fpx
5376
2504
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
5377
2505
  attr_accessor :giropay
5378
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5379
- attr_accessor :gopay
5380
2506
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
5381
2507
  attr_accessor :grabpay
5382
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5383
- attr_accessor :id_bank_transfer
5384
2508
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
5385
2509
  attr_accessor :ideal
5386
2510
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -5393,7 +2517,7 @@ module Stripe
5393
2517
  attr_accessor :konbini
5394
2518
  # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
5395
2519
  attr_accessor :kr_card
5396
- # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2520
+ # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options (Link is also known as Onelink in the UK).
5397
2521
  attr_accessor :link
5398
2522
  # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
5399
2523
  attr_accessor :mb_way
@@ -5417,32 +2541,24 @@ module Stripe
5417
2541
  attr_accessor :paynow
5418
2542
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
5419
2543
  attr_accessor :paypal
5420
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5421
- attr_accessor :paypay
5422
2544
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5423
2545
  attr_accessor :payto
5424
2546
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
5425
2547
  attr_accessor :pix
5426
2548
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
5427
2549
  attr_accessor :promptpay
5428
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5429
- attr_accessor :qris
5430
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5431
- attr_accessor :rechnung
5432
2550
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
5433
2551
  attr_accessor :revolut_pay
5434
2552
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
5435
2553
  attr_accessor :samsung_pay
5436
2554
  # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5437
2555
  attr_accessor :satispay
2556
+ # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
2557
+ attr_accessor :scalapay
5438
2558
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5439
2559
  attr_accessor :sepa_debit
5440
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5441
- attr_accessor :shopeepay
5442
2560
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
5443
2561
  attr_accessor :sofort
5444
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5445
- attr_accessor :stripe_balance
5446
2562
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
5447
2563
  attr_accessor :swish
5448
2564
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -5467,6 +2583,7 @@ module Stripe
5467
2583
  bacs_debit: nil,
5468
2584
  bancontact: nil,
5469
2585
  billie: nil,
2586
+ bizum: nil,
5470
2587
  blik: nil,
5471
2588
  boleto: nil,
5472
2589
  card: nil,
@@ -5477,9 +2594,7 @@ module Stripe
5477
2594
  eps: nil,
5478
2595
  fpx: nil,
5479
2596
  giropay: nil,
5480
- gopay: nil,
5481
2597
  grabpay: nil,
5482
- id_bank_transfer: nil,
5483
2598
  ideal: nil,
5484
2599
  interac_present: nil,
5485
2600
  kakao_pay: nil,
@@ -5498,19 +2613,15 @@ module Stripe
5498
2613
  payco: nil,
5499
2614
  paynow: nil,
5500
2615
  paypal: nil,
5501
- paypay: nil,
5502
2616
  payto: nil,
5503
2617
  pix: nil,
5504
2618
  promptpay: nil,
5505
- qris: nil,
5506
- rechnung: nil,
5507
2619
  revolut_pay: nil,
5508
2620
  samsung_pay: nil,
5509
2621
  satispay: nil,
2622
+ scalapay: nil,
5510
2623
  sepa_debit: nil,
5511
- shopeepay: nil,
5512
2624
  sofort: nil,
5513
- stripe_balance: nil,
5514
2625
  swish: nil,
5515
2626
  twint: nil,
5516
2627
  upi: nil,
@@ -5528,6 +2639,7 @@ module Stripe
5528
2639
  @bacs_debit = bacs_debit
5529
2640
  @bancontact = bancontact
5530
2641
  @billie = billie
2642
+ @bizum = bizum
5531
2643
  @blik = blik
5532
2644
  @boleto = boleto
5533
2645
  @card = card
@@ -5538,9 +2650,7 @@ module Stripe
5538
2650
  @eps = eps
5539
2651
  @fpx = fpx
5540
2652
  @giropay = giropay
5541
- @gopay = gopay
5542
2653
  @grabpay = grabpay
5543
- @id_bank_transfer = id_bank_transfer
5544
2654
  @ideal = ideal
5545
2655
  @interac_present = interac_present
5546
2656
  @kakao_pay = kakao_pay
@@ -5559,19 +2669,15 @@ module Stripe
5559
2669
  @payco = payco
5560
2670
  @paynow = paynow
5561
2671
  @paypal = paypal
5562
- @paypay = paypay
5563
2672
  @payto = payto
5564
2673
  @pix = pix
5565
2674
  @promptpay = promptpay
5566
- @qris = qris
5567
- @rechnung = rechnung
5568
2675
  @revolut_pay = revolut_pay
5569
2676
  @samsung_pay = samsung_pay
5570
2677
  @satispay = satispay
2678
+ @scalapay = scalapay
5571
2679
  @sepa_debit = sepa_debit
5572
- @shopeepay = shopeepay
5573
2680
  @sofort = sofort
5574
- @stripe_balance = stripe_balance
5575
2681
  @swish = swish
5576
2682
  @twint = twint
5577
2683
  @upi = upi
@@ -5642,6 +2748,17 @@ module Stripe
5642
2748
  end
5643
2749
 
5644
2750
  class TransferData < ::Stripe::RequestParams
2751
+ class PaymentData < ::Stripe::RequestParams
2752
+ # An arbitrary string attached to the destination payment. Often useful for displaying to users.
2753
+ attr_accessor :description
2754
+ # 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.
2755
+ attr_accessor :metadata
2756
+
2757
+ def initialize(description: nil, metadata: nil)
2758
+ @description = description
2759
+ @metadata = metadata
2760
+ end
2761
+ end
5645
2762
  # The amount that will be transferred automatically when a charge succeeds.
5646
2763
  # The amount is capped at the total transaction amount and if no amount is set,
5647
2764
  # the full amount is transferred.
@@ -5650,15 +2767,30 @@ module Stripe
5650
2767
  # [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
5651
2768
  # might be a better fit for your integration.
5652
2769
  attr_accessor :amount
2770
+ # An arbitrary string attached to the transfer. Often useful for displaying to users.
2771
+ attr_accessor :description
5653
2772
  # If specified, successful charges will be attributed to the destination
5654
2773
  # account for tax reporting, and the funds from charges will be transferred
5655
2774
  # to the destination account. The ID of the resulting transfer will be
5656
2775
  # returned on the successful charge's `transfer` field.
5657
2776
  attr_accessor :destination
2777
+ # 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.
2778
+ attr_accessor :metadata
2779
+ # The data with which to populate the destination payment.
2780
+ attr_accessor :payment_data
5658
2781
 
5659
- def initialize(amount: nil, destination: nil)
2782
+ def initialize(
2783
+ amount: nil,
2784
+ description: nil,
2785
+ destination: nil,
2786
+ metadata: nil,
2787
+ payment_data: nil
2788
+ )
5660
2789
  @amount = amount
2790
+ @description = description
5661
2791
  @destination = destination
2792
+ @metadata = metadata
2793
+ @payment_data = payment_data
5662
2794
  end
5663
2795
  end
5664
2796
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
@@ -5701,8 +2833,6 @@ module Stripe
5701
2833
  attr_accessor :excluded_payment_method_types
5702
2834
  # Specifies which fields in the response should be expanded.
5703
2835
  attr_accessor :expand
5704
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5705
- attr_accessor :fx_quote
5706
2836
  # Automations to be run during the PaymentIntent lifecycle
5707
2837
  attr_accessor :hooks
5708
2838
  # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
@@ -5711,7 +2841,7 @@ module Stripe
5711
2841
  attr_accessor :mandate_data
5712
2842
  # 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`.
5713
2843
  attr_accessor :metadata
5714
- # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
2844
+ # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect payment method details and [charge them later](https://docs.stripe.com/payments/save-during-payment). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5715
2845
  attr_accessor :off_session
5716
2846
  # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5717
2847
  attr_accessor :on_behalf_of
@@ -5739,8 +2869,6 @@ module Stripe
5739
2869
  attr_accessor :receipt_email
5740
2870
  # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5741
2871
  attr_accessor :return_url
5742
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
5743
- attr_accessor :secret_key_confirmation
5744
2872
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5745
2873
  #
5746
2874
  # 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.
@@ -5781,7 +2909,6 @@ module Stripe
5781
2909
  error_on_requires_action: nil,
5782
2910
  excluded_payment_method_types: nil,
5783
2911
  expand: nil,
5784
- fx_quote: nil,
5785
2912
  hooks: nil,
5786
2913
  mandate: nil,
5787
2914
  mandate_data: nil,
@@ -5797,7 +2924,6 @@ module Stripe
5797
2924
  radar_options: nil,
5798
2925
  receipt_email: nil,
5799
2926
  return_url: nil,
5800
- secret_key_confirmation: nil,
5801
2927
  setup_future_usage: nil,
5802
2928
  shipping: nil,
5803
2929
  statement_descriptor: nil,
@@ -5821,7 +2947,6 @@ module Stripe
5821
2947
  @error_on_requires_action = error_on_requires_action
5822
2948
  @excluded_payment_method_types = excluded_payment_method_types
5823
2949
  @expand = expand
5824
- @fx_quote = fx_quote
5825
2950
  @hooks = hooks
5826
2951
  @mandate = mandate
5827
2952
  @mandate_data = mandate_data
@@ -5837,7 +2962,6 @@ module Stripe
5837
2962
  @radar_options = radar_options
5838
2963
  @receipt_email = receipt_email
5839
2964
  @return_url = return_url
5840
- @secret_key_confirmation = secret_key_confirmation
5841
2965
  @setup_future_usage = setup_future_usage
5842
2966
  @shipping = shipping
5843
2967
  @statement_descriptor = statement_descriptor