stripe 19.2.0.pre.beta.2 → 19.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +34 -37
  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,1767 +145,125 @@ 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 Hooks < ::Stripe::RequestParams
207
- class Inputs < ::Stripe::RequestParams
208
- class Tax < ::Stripe::RequestParams
209
- # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
210
- attr_accessor :calculation
211
-
212
- def initialize(calculation: nil)
213
- @calculation = calculation
214
- end
215
- end
216
- # Tax arguments for automations
217
- attr_accessor :tax
218
-
219
- def initialize(tax: nil)
220
- @tax = tax
221
- end
222
- end
223
- # Arguments passed in automations
224
- attr_accessor :inputs
225
-
226
- def initialize(inputs: nil)
227
- @inputs = inputs
228
- end
229
- end
230
-
231
- class MandateData < ::Stripe::RequestParams
232
- class CustomerAcceptance < ::Stripe::RequestParams
233
- class Offline < ::Stripe::RequestParams; end
234
-
235
- class Online < ::Stripe::RequestParams
236
- # The IP address from which the Mandate was accepted by the customer.
237
- attr_accessor :ip_address
238
- # The user agent of the browser from which the Mandate was accepted by the customer.
239
- attr_accessor :user_agent
240
-
241
- def initialize(ip_address: nil, user_agent: nil)
242
- @ip_address = ip_address
243
- @user_agent = user_agent
244
- end
245
- end
246
- # The time at which the customer accepted the Mandate.
247
- attr_accessor :accepted_at
248
- # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
249
- attr_accessor :offline
250
- # If this is a Mandate accepted online, this hash contains details about the online acceptance.
251
- attr_accessor :online
252
- # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
253
- attr_accessor :type
254
-
255
- def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
256
- @accepted_at = accepted_at
257
- @offline = offline
258
- @online = online
259
- @type = type
260
- end
261
- end
262
- # This hash contains details about the customer acceptance of the Mandate.
263
- attr_accessor :customer_acceptance
264
-
265
- def initialize(customer_acceptance: nil)
266
- @customer_acceptance = customer_acceptance
267
- end
268
- end
269
-
270
- class PaymentDetails < ::Stripe::RequestParams
271
- class CarRental < ::Stripe::RequestParams
272
- class Affiliate < ::Stripe::RequestParams
273
- # The name of the affiliate that originated the purchase.
274
- attr_accessor :name
275
-
276
- def initialize(name: nil)
277
- @name = name
278
- end
279
- end
280
-
281
- class Delivery < ::Stripe::RequestParams
282
- class Recipient < ::Stripe::RequestParams
283
- # The email of the recipient the ticket is delivered to.
284
- attr_accessor :email
285
- # The name of the recipient the ticket is delivered to.
286
- attr_accessor :name
287
- # The phone number of the recipient the ticket is delivered to.
288
- attr_accessor :phone
289
-
290
- def initialize(email: nil, name: nil, phone: nil)
291
- @email = email
292
- @name = name
293
- @phone = phone
294
- end
295
- end
296
- # The delivery method for the payment
297
- attr_accessor :mode
298
- # Details of the recipient.
299
- attr_accessor :recipient
300
-
301
- def initialize(mode: nil, recipient: nil)
302
- @mode = mode
303
- @recipient = recipient
304
- end
305
- end
306
-
307
- class Distance < ::Stripe::RequestParams
308
- # Distance traveled.
309
- attr_accessor :amount
310
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
311
- attr_accessor :unit
312
-
313
- def initialize(amount: nil, unit: nil)
314
- @amount = amount
315
- @unit = unit
316
- end
317
- end
318
-
319
- class Driver < ::Stripe::RequestParams
320
- # Driver's identification number.
321
- attr_accessor :driver_identification_number
322
- # Driver's tax number.
323
- attr_accessor :driver_tax_number
324
- # Full name of the person or entity on the car reservation.
325
- attr_accessor :name
326
-
327
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
328
- @driver_identification_number = driver_identification_number
329
- @driver_tax_number = driver_tax_number
330
- @name = name
331
- end
332
- end
333
-
334
- class PickupAddress < ::Stripe::RequestParams
335
- # City, district, suburb, town, or village.
336
- attr_accessor :city
337
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
338
- attr_accessor :country
339
- # Address line 1, such as the street, PO Box, or company name.
340
- attr_accessor :line1
341
- # Address line 2, such as the apartment, suite, unit, or building.
342
- attr_accessor :line2
343
- # ZIP or postal code.
344
- attr_accessor :postal_code
345
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
346
- attr_accessor :state
347
-
348
- def initialize(
349
- city: nil,
350
- country: nil,
351
- line1: nil,
352
- line2: nil,
353
- postal_code: nil,
354
- state: nil
355
- )
356
- @city = city
357
- @country = country
358
- @line1 = line1
359
- @line2 = line2
360
- @postal_code = postal_code
361
- @state = state
362
- end
363
- end
364
-
365
- class ReturnAddress < ::Stripe::RequestParams
366
- # City, district, suburb, town, or village.
367
- attr_accessor :city
368
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
369
- attr_accessor :country
370
- # Address line 1, such as the street, PO Box, or company name.
371
- attr_accessor :line1
372
- # Address line 2, such as the apartment, suite, unit, or building.
373
- attr_accessor :line2
374
- # ZIP or postal code.
375
- attr_accessor :postal_code
376
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
377
- attr_accessor :state
378
-
379
- def initialize(
380
- city: nil,
381
- country: nil,
382
- line1: nil,
383
- line2: nil,
384
- postal_code: nil,
385
- state: nil
386
- )
387
- @city = city
388
- @country = country
389
- @line1 = line1
390
- @line2 = line2
391
- @postal_code = postal_code
392
- @state = state
393
- end
394
- end
395
- # Affiliate details for this purchase.
396
- attr_accessor :affiliate
397
- # The booking number associated with the car rental.
398
- attr_accessor :booking_number
399
- # Class code of the car.
400
- attr_accessor :car_class_code
401
- # Make of the car.
402
- attr_accessor :car_make
403
- # Model of the car.
404
- attr_accessor :car_model
405
- # The name of the rental car company.
406
- attr_accessor :company
407
- # The customer service phone number of the car rental company.
408
- attr_accessor :customer_service_phone_number
409
- # Number of days the car is being rented.
410
- attr_accessor :days_rented
411
- # Delivery details for this purchase.
412
- attr_accessor :delivery
413
- # The details of the distance traveled during the rental period.
414
- attr_accessor :distance
415
- # The details of the passengers in the travel reservation
416
- attr_accessor :drivers
417
- # List of additional charges being billed.
418
- attr_accessor :extra_charges
419
- # Indicates if the customer did not keep nor cancel their booking.
420
- attr_accessor :no_show
421
- # Car pick-up address.
422
- attr_accessor :pickup_address
423
- # Car pick-up time. Measured in seconds since the Unix epoch.
424
- attr_accessor :pickup_at
425
- # Name of the pickup location.
426
- attr_accessor :pickup_location_name
427
- # Rental rate.
428
- attr_accessor :rate_amount
429
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
430
- attr_accessor :rate_interval
431
- # The name of the person or entity renting the car.
432
- attr_accessor :renter_name
433
- # Car return address.
434
- attr_accessor :return_address
435
- # Car return time. Measured in seconds since the Unix epoch.
436
- attr_accessor :return_at
437
- # Name of the return location.
438
- attr_accessor :return_location_name
439
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
440
- attr_accessor :tax_exempt
441
- # The vehicle identification number.
442
- attr_accessor :vehicle_identification_number
443
-
444
- def initialize(
445
- affiliate: nil,
446
- booking_number: nil,
447
- car_class_code: nil,
448
- car_make: nil,
449
- car_model: nil,
450
- company: nil,
451
- customer_service_phone_number: nil,
452
- days_rented: nil,
453
- delivery: nil,
454
- distance: nil,
455
- drivers: nil,
456
- extra_charges: nil,
457
- no_show: nil,
458
- pickup_address: nil,
459
- pickup_at: nil,
460
- pickup_location_name: nil,
461
- rate_amount: nil,
462
- rate_interval: nil,
463
- renter_name: nil,
464
- return_address: nil,
465
- return_at: nil,
466
- return_location_name: nil,
467
- tax_exempt: nil,
468
- vehicle_identification_number: nil
469
- )
470
- @affiliate = affiliate
471
- @booking_number = booking_number
472
- @car_class_code = car_class_code
473
- @car_make = car_make
474
- @car_model = car_model
475
- @company = company
476
- @customer_service_phone_number = customer_service_phone_number
477
- @days_rented = days_rented
478
- @delivery = delivery
479
- @distance = distance
480
- @drivers = drivers
481
- @extra_charges = extra_charges
482
- @no_show = no_show
483
- @pickup_address = pickup_address
484
- @pickup_at = pickup_at
485
- @pickup_location_name = pickup_location_name
486
- @rate_amount = rate_amount
487
- @rate_interval = rate_interval
488
- @renter_name = renter_name
489
- @return_address = return_address
490
- @return_at = return_at
491
- @return_location_name = return_location_name
492
- @tax_exempt = tax_exempt
493
- @vehicle_identification_number = vehicle_identification_number
494
- end
495
- end
496
-
497
- class CarRentalDatum < ::Stripe::RequestParams
498
- class Affiliate < ::Stripe::RequestParams
499
- # Affiliate partner code.
500
- attr_accessor :code
501
- # Name of affiliate partner.
502
- attr_accessor :name
503
-
504
- def initialize(code: nil, name: nil)
505
- @code = code
506
- @name = name
507
- end
508
- end
509
-
510
- class Distance < ::Stripe::RequestParams
511
- # Distance traveled.
512
- attr_accessor :amount
513
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
514
- attr_accessor :unit
515
-
516
- def initialize(amount: nil, unit: nil)
517
- @amount = amount
518
- @unit = unit
519
- end
520
- end
521
-
522
- class Driver < ::Stripe::RequestParams
523
- class DateOfBirth < ::Stripe::RequestParams
524
- # Day of birth (1-31).
525
- attr_accessor :day
526
- # Month of birth (1-12).
527
- attr_accessor :month
528
- # Year of birth (must be greater than 1900).
529
- attr_accessor :year
530
-
531
- def initialize(day: nil, month: nil, year: nil)
532
- @day = day
533
- @month = month
534
- @year = year
535
- end
536
- end
537
- # Driver's date of birth.
538
- attr_accessor :date_of_birth
539
- # Driver's identification number.
540
- attr_accessor :driver_identification_number
541
- # Driver's tax number.
542
- attr_accessor :driver_tax_number
543
- # Driver's full name.
544
- attr_accessor :name
545
-
546
- def initialize(
547
- date_of_birth: nil,
548
- driver_identification_number: nil,
549
- driver_tax_number: nil,
550
- name: nil
551
- )
552
- @date_of_birth = date_of_birth
553
- @driver_identification_number = driver_identification_number
554
- @driver_tax_number = driver_tax_number
555
- @name = name
556
- end
557
- end
558
-
559
- class DropOff < ::Stripe::RequestParams
560
- class Address < ::Stripe::RequestParams
561
- # City, district, suburb, town, or village.
562
- attr_accessor :city
563
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
564
- attr_accessor :country
565
- # Address line 1, such as the street, PO Box, or company name.
566
- attr_accessor :line1
567
- # Address line 2, such as the apartment, suite, unit, or building.
568
- attr_accessor :line2
569
- # ZIP or postal code.
570
- attr_accessor :postal_code
571
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
572
- attr_accessor :state
573
-
574
- def initialize(
575
- city: nil,
576
- country: nil,
577
- line1: nil,
578
- line2: nil,
579
- postal_code: nil,
580
- state: nil
581
- )
582
- @city = city
583
- @country = country
584
- @line1 = line1
585
- @line2 = line2
586
- @postal_code = postal_code
587
- @state = state
588
- end
589
- end
590
- # Address of the rental location.
591
- attr_accessor :address
592
- # Location name.
593
- attr_accessor :location_name
594
- # Timestamp for the location.
595
- attr_accessor :time
596
-
597
- def initialize(address: nil, location_name: nil, time: nil)
598
- @address = address
599
- @location_name = location_name
600
- @time = time
601
- end
602
- end
603
-
604
- class Insurance < ::Stripe::RequestParams
605
- # Amount of the insurance coverage in cents.
606
- attr_accessor :amount
607
- # Currency of the insurance amount.
608
- attr_accessor :currency
609
- # Name of the insurance company.
610
- attr_accessor :insurance_company_name
611
- # Type of insurance coverage.
612
- attr_accessor :insurance_type
613
-
614
- def initialize(
615
- amount: nil,
616
- currency: nil,
617
- insurance_company_name: nil,
618
- insurance_type: nil
619
- )
620
- @amount = amount
621
- @currency = currency
622
- @insurance_company_name = insurance_company_name
623
- @insurance_type = insurance_type
624
- end
625
- end
626
-
627
- class Pickup < ::Stripe::RequestParams
628
- class Address < ::Stripe::RequestParams
629
- # City, district, suburb, town, or village.
630
- attr_accessor :city
631
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
632
- attr_accessor :country
633
- # Address line 1, such as the street, PO Box, or company name.
634
- attr_accessor :line1
635
- # Address line 2, such as the apartment, suite, unit, or building.
636
- attr_accessor :line2
637
- # ZIP or postal code.
638
- attr_accessor :postal_code
639
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
640
- attr_accessor :state
641
-
642
- def initialize(
643
- city: nil,
644
- country: nil,
645
- line1: nil,
646
- line2: nil,
647
- postal_code: nil,
648
- state: nil
649
- )
650
- @city = city
651
- @country = country
652
- @line1 = line1
653
- @line2 = line2
654
- @postal_code = postal_code
655
- @state = state
656
- end
657
- end
658
- # Address of the rental location.
659
- attr_accessor :address
660
- # Location name.
661
- attr_accessor :location_name
662
- # Timestamp for the location.
663
- attr_accessor :time
664
-
665
- def initialize(address: nil, location_name: nil, time: nil)
666
- @address = address
667
- @location_name = location_name
668
- @time = time
669
- end
670
- end
671
-
672
- class Total < ::Stripe::RequestParams
673
- class Discounts < ::Stripe::RequestParams
674
- # Corporate client discount code.
675
- attr_accessor :corporate_client_code
676
- # Coupon code applied to the rental.
677
- attr_accessor :coupon
678
- # Maximum number of free miles or kilometers included.
679
- attr_accessor :maximum_free_miles_or_kilometers
680
-
681
- def initialize(
682
- corporate_client_code: nil,
683
- coupon: nil,
684
- maximum_free_miles_or_kilometers: nil
685
- )
686
- @corporate_client_code = corporate_client_code
687
- @coupon = coupon
688
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
689
- end
690
- end
691
-
692
- class ExtraCharge < ::Stripe::RequestParams
693
- # Amount of the extra charge in cents.
694
- attr_accessor :amount
695
- # Type of extra charge.
696
- attr_accessor :type
697
-
698
- def initialize(amount: nil, type: nil)
699
- @amount = amount
700
- @type = type
701
- end
702
- end
703
-
704
- class Tax < ::Stripe::RequestParams
705
- class Tax < ::Stripe::RequestParams
706
- # Tax amount.
707
- attr_accessor :amount
708
- # Tax rate applied.
709
- attr_accessor :rate
710
- # Type of tax applied.
711
- attr_accessor :type
712
-
713
- def initialize(amount: nil, rate: nil, type: nil)
714
- @amount = amount
715
- @rate = rate
716
- @type = type
717
- end
718
- end
719
- # Indicates if the transaction is tax exempt.
720
- attr_accessor :tax_exempt_indicator
721
- # Array of tax details.
722
- attr_accessor :taxes
723
-
724
- def initialize(tax_exempt_indicator: nil, taxes: nil)
725
- @tax_exempt_indicator = tax_exempt_indicator
726
- @taxes = taxes
727
- end
728
- end
729
- # Total amount in cents.
730
- attr_accessor :amount
731
- # Currency of the amount.
732
- attr_accessor :currency
733
- # Discount details for the rental.
734
- attr_accessor :discounts
735
- # Additional charges for the rental.
736
- attr_accessor :extra_charges
737
- # Rate per unit for the rental.
738
- attr_accessor :rate_per_unit
739
- # Unit of measurement for the rate.
740
- attr_accessor :rate_unit
741
- # Tax breakdown for the rental.
742
- attr_accessor :tax
743
-
744
- def initialize(
745
- amount: nil,
746
- currency: nil,
747
- discounts: nil,
748
- extra_charges: nil,
749
- rate_per_unit: nil,
750
- rate_unit: nil,
751
- tax: nil
752
- )
753
- @amount = amount
754
- @currency = currency
755
- @discounts = discounts
756
- @extra_charges = extra_charges
757
- @rate_per_unit = rate_per_unit
758
- @rate_unit = rate_unit
759
- @tax = tax
760
- end
761
- end
762
-
763
- class Vehicle < ::Stripe::RequestParams
764
- # Make of the rental vehicle.
765
- attr_accessor :make
766
- # Model of the rental vehicle.
767
- attr_accessor :model
768
- # Odometer reading at the time of rental.
769
- attr_accessor :odometer
770
- # Type of the rental vehicle.
771
- attr_accessor :type
772
- # Class of the rental vehicle.
773
- attr_accessor :vehicle_class
774
- # Vehicle identification number (VIN).
775
- attr_accessor :vehicle_identification_number
776
-
777
- def initialize(
778
- make: nil,
779
- model: nil,
780
- odometer: nil,
781
- type: nil,
782
- vehicle_class: nil,
783
- vehicle_identification_number: nil
784
- )
785
- @make = make
786
- @model = model
787
- @odometer = odometer
788
- @type = type
789
- @vehicle_class = vehicle_class
790
- @vehicle_identification_number = vehicle_identification_number
791
- end
792
- end
793
- # Affiliate (such as travel agency) details for the rental.
794
- attr_accessor :affiliate
795
- # Booking confirmation number for the car rental.
796
- attr_accessor :booking_number
797
- # Name of the car rental company.
798
- attr_accessor :carrier_name
799
- # Customer service phone number for the car rental company.
800
- attr_accessor :customer_service_phone_number
801
- # Number of days the car is being rented.
802
- attr_accessor :days_rented
803
- # Distance details for the rental.
804
- attr_accessor :distance
805
- # List of drivers for the rental.
806
- attr_accessor :drivers
807
- # Drop-off location details.
808
- attr_accessor :drop_off
809
- # Insurance details for the rental.
810
- attr_accessor :insurances
811
- # Indicates if the customer was a no-show.
812
- attr_accessor :no_show_indicator
813
- # Pickup location details.
814
- attr_accessor :pickup
815
- # Name of the person renting the vehicle.
816
- attr_accessor :renter_name
817
- # Total cost breakdown for the rental.
818
- attr_accessor :total
819
- # Vehicle details for the rental.
820
- attr_accessor :vehicle
821
-
822
- def initialize(
823
- affiliate: nil,
824
- booking_number: nil,
825
- carrier_name: nil,
826
- customer_service_phone_number: nil,
827
- days_rented: nil,
828
- distance: nil,
829
- drivers: nil,
830
- drop_off: nil,
831
- insurances: nil,
832
- no_show_indicator: nil,
833
- pickup: nil,
834
- renter_name: nil,
835
- total: nil,
836
- vehicle: nil
837
- )
838
- @affiliate = affiliate
839
- @booking_number = booking_number
840
- @carrier_name = carrier_name
841
- @customer_service_phone_number = customer_service_phone_number
842
- @days_rented = days_rented
843
- @distance = distance
844
- @drivers = drivers
845
- @drop_off = drop_off
846
- @insurances = insurances
847
- @no_show_indicator = no_show_indicator
848
- @pickup = pickup
849
- @renter_name = renter_name
850
- @total = total
851
- @vehicle = vehicle
852
- end
853
- end
854
-
855
- class EventDetails < ::Stripe::RequestParams
856
- class Address < ::Stripe::RequestParams
857
- # City, district, suburb, town, or village.
858
- attr_accessor :city
859
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
860
- attr_accessor :country
861
- # Address line 1, such as the street, PO Box, or company name.
862
- attr_accessor :line1
863
- # Address line 2, such as the apartment, suite, unit, or building.
864
- attr_accessor :line2
865
- # ZIP or postal code.
866
- attr_accessor :postal_code
867
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
868
- attr_accessor :state
869
-
870
- def initialize(
871
- city: nil,
872
- country: nil,
873
- line1: nil,
874
- line2: nil,
875
- postal_code: nil,
876
- state: nil
877
- )
878
- @city = city
879
- @country = country
880
- @line1 = line1
881
- @line2 = line2
882
- @postal_code = postal_code
883
- @state = state
884
- end
885
- end
886
-
887
- class Affiliate < ::Stripe::RequestParams
888
- # The name of the affiliate that originated the purchase.
889
- attr_accessor :name
890
-
891
- def initialize(name: nil)
892
- @name = name
893
- end
894
- end
895
-
896
- class Delivery < ::Stripe::RequestParams
897
- class Recipient < ::Stripe::RequestParams
898
- # The email of the recipient the ticket is delivered to.
899
- attr_accessor :email
900
- # The name of the recipient the ticket is delivered to.
901
- attr_accessor :name
902
- # The phone number of the recipient the ticket is delivered to.
903
- attr_accessor :phone
904
-
905
- def initialize(email: nil, name: nil, phone: nil)
906
- @email = email
907
- @name = name
908
- @phone = phone
909
- end
910
- end
911
- # The delivery method for the payment
912
- attr_accessor :mode
913
- # Details of the recipient.
914
- attr_accessor :recipient
915
-
916
- def initialize(mode: nil, recipient: nil)
917
- @mode = mode
918
- @recipient = recipient
919
- end
920
- end
921
- # Indicates if the tickets are digitally checked when entering the venue.
922
- attr_accessor :access_controlled_venue
923
- # The event location's address.
924
- attr_accessor :address
925
- # Affiliate details for this purchase.
926
- attr_accessor :affiliate
927
- # The name of the company
928
- attr_accessor :company
929
- # Delivery details for this purchase.
930
- attr_accessor :delivery
931
- # Event end time. Measured in seconds since the Unix epoch.
932
- attr_accessor :ends_at
933
- # Type of the event entertainment (concert, sports event etc)
934
- attr_accessor :genre
935
- # The name of the event.
936
- attr_accessor :name
937
- # Event start time. Measured in seconds since the Unix epoch.
938
- attr_accessor :starts_at
939
-
940
- def initialize(
941
- access_controlled_venue: nil,
942
- address: nil,
943
- affiliate: nil,
944
- company: nil,
945
- delivery: nil,
946
- ends_at: nil,
947
- genre: nil,
948
- name: nil,
949
- starts_at: nil
950
- )
951
- @access_controlled_venue = access_controlled_venue
952
- @address = address
953
- @affiliate = affiliate
954
- @company = company
955
- @delivery = delivery
956
- @ends_at = ends_at
957
- @genre = genre
958
- @name = name
959
- @starts_at = starts_at
960
- end
961
- end
962
-
963
- class Flight < ::Stripe::RequestParams
964
- class Affiliate < ::Stripe::RequestParams
965
- # The name of the affiliate that originated the purchase.
966
- attr_accessor :name
967
-
968
- def initialize(name: nil)
969
- @name = name
970
- end
971
- end
972
-
973
- class Delivery < ::Stripe::RequestParams
974
- class Recipient < ::Stripe::RequestParams
975
- # The email of the recipient the ticket is delivered to.
976
- attr_accessor :email
977
- # The name of the recipient the ticket is delivered to.
978
- attr_accessor :name
979
- # The phone number of the recipient the ticket is delivered to.
980
- attr_accessor :phone
981
-
982
- def initialize(email: nil, name: nil, phone: nil)
983
- @email = email
984
- @name = name
985
- @phone = phone
986
- end
987
- end
988
- # The delivery method for the payment
989
- attr_accessor :mode
990
- # Details of the recipient.
991
- attr_accessor :recipient
992
-
993
- def initialize(mode: nil, recipient: nil)
994
- @mode = mode
995
- @recipient = recipient
996
- end
997
- end
998
-
999
- class Passenger < ::Stripe::RequestParams
1000
- # Full name of the person or entity on the flight reservation.
1001
- attr_accessor :name
1002
-
1003
- def initialize(name: nil)
1004
- @name = name
1005
- end
1006
- end
1007
-
1008
- class Segment < ::Stripe::RequestParams
1009
- # The flight segment amount.
1010
- attr_accessor :amount
1011
- # The International Air Transport Association (IATA) airport code for the arrival airport.
1012
- attr_accessor :arrival_airport
1013
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1014
- attr_accessor :arrives_at
1015
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1016
- attr_accessor :carrier
1017
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1018
- attr_accessor :departs_at
1019
- # The International Air Transport Association (IATA) airport code for the departure airport.
1020
- attr_accessor :departure_airport
1021
- # The flight number associated with the segment
1022
- attr_accessor :flight_number
1023
- # The fare class for the segment.
1024
- attr_accessor :service_class
1025
-
1026
- def initialize(
1027
- amount: nil,
1028
- arrival_airport: nil,
1029
- arrives_at: nil,
1030
- carrier: nil,
1031
- departs_at: nil,
1032
- departure_airport: nil,
1033
- flight_number: nil,
1034
- service_class: nil
1035
- )
1036
- @amount = amount
1037
- @arrival_airport = arrival_airport
1038
- @arrives_at = arrives_at
1039
- @carrier = carrier
1040
- @departs_at = departs_at
1041
- @departure_airport = departure_airport
1042
- @flight_number = flight_number
1043
- @service_class = service_class
1044
- end
1045
- end
1046
- # Affiliate details for this purchase.
1047
- attr_accessor :affiliate
1048
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1049
- attr_accessor :agency_number
1050
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1051
- attr_accessor :carrier
1052
- # Delivery details for this purchase.
1053
- attr_accessor :delivery
1054
- # The name of the person or entity on the reservation.
1055
- attr_accessor :passenger_name
1056
- # The details of the passengers in the travel reservation.
1057
- attr_accessor :passengers
1058
- # The individual flight segments associated with the trip.
1059
- attr_accessor :segments
1060
- # The ticket number associated with the travel reservation.
1061
- attr_accessor :ticket_number
1062
-
1063
- def initialize(
1064
- affiliate: nil,
1065
- agency_number: nil,
1066
- carrier: nil,
1067
- delivery: nil,
1068
- passenger_name: nil,
1069
- passengers: nil,
1070
- segments: nil,
1071
- ticket_number: nil
1072
- )
1073
- @affiliate = affiliate
1074
- @agency_number = agency_number
1075
- @carrier = carrier
1076
- @delivery = delivery
1077
- @passenger_name = passenger_name
1078
- @passengers = passengers
1079
- @segments = segments
1080
- @ticket_number = ticket_number
1081
- end
1082
- end
1083
-
1084
- class FlightDatum < ::Stripe::RequestParams
1085
- class Affiliate < ::Stripe::RequestParams
1086
- # Affiliate partner code.
1087
- attr_accessor :code
1088
- # Name of affiliate partner.
1089
- attr_accessor :name
1090
- # Code provided by the company to a travel agent authorizing ticket issuance.
1091
- attr_accessor :travel_authorization_code
1092
-
1093
- def initialize(code: nil, name: nil, travel_authorization_code: nil)
1094
- @code = code
1095
- @name = name
1096
- @travel_authorization_code = travel_authorization_code
1097
- end
1098
- end
1099
-
1100
- class Insurance < ::Stripe::RequestParams
1101
- # Insurance cost.
1102
- attr_accessor :amount
1103
- # Insurance currency.
1104
- attr_accessor :currency
1105
- # Insurance company name.
1106
- attr_accessor :insurance_company_name
1107
- # Type of insurance.
1108
- attr_accessor :insurance_type
1109
-
1110
- def initialize(
1111
- amount: nil,
1112
- currency: nil,
1113
- insurance_company_name: nil,
1114
- insurance_type: nil
1115
- )
1116
- @amount = amount
1117
- @currency = currency
1118
- @insurance_company_name = insurance_company_name
1119
- @insurance_type = insurance_type
1120
- end
1121
- end
1122
-
1123
- class Passenger < ::Stripe::RequestParams
1124
- # Passenger's full name.
1125
- attr_accessor :name
1126
-
1127
- def initialize(name: nil)
1128
- @name = name
1129
- end
1130
- end
1131
-
1132
- class Segment < ::Stripe::RequestParams
1133
- class Arrival < ::Stripe::RequestParams
1134
- # Arrival airport IATA code.
1135
- attr_accessor :airport
1136
- # Arrival date/time.
1137
- attr_accessor :arrives_at
1138
- # Arrival city.
1139
- attr_accessor :city
1140
- # Arrival country.
1141
- attr_accessor :country
1142
-
1143
- def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1144
- @airport = airport
1145
- @arrives_at = arrives_at
1146
- @city = city
1147
- @country = country
1148
- end
1149
- end
1150
-
1151
- class Departure < ::Stripe::RequestParams
1152
- # Departure airport IATA code.
1153
- attr_accessor :airport
1154
- # Departure city.
1155
- attr_accessor :city
1156
- # Departure country.
1157
- attr_accessor :country
1158
- # Departure date/time.
1159
- attr_accessor :departs_at
1160
-
1161
- def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1162
- @airport = airport
1163
- @city = city
1164
- @country = country
1165
- @departs_at = departs_at
1166
- end
1167
- end
1168
- # Segment fare amount.
1169
- attr_accessor :amount
1170
- # Arrival details.
1171
- attr_accessor :arrival
1172
- # Airline carrier code.
1173
- attr_accessor :carrier_code
1174
- # Carrier name.
1175
- attr_accessor :carrier_name
1176
- # Segment currency.
1177
- attr_accessor :currency
1178
- # Departure details.
1179
- attr_accessor :departure
1180
- # Exchange ticket number.
1181
- attr_accessor :exchange_ticket_number
1182
- # Fare basis code.
1183
- attr_accessor :fare_basis_code
1184
- # Additional fees.
1185
- attr_accessor :fees
1186
- # Flight number.
1187
- attr_accessor :flight_number
1188
- # Stopover indicator.
1189
- attr_accessor :is_stop_over_indicator
1190
- # Refundable ticket indicator.
1191
- attr_accessor :refundable
1192
- # Class of service.
1193
- attr_accessor :service_class
1194
- # Tax amount for segment.
1195
- attr_accessor :tax_amount
1196
- # Ticket number.
1197
- attr_accessor :ticket_number
1198
-
1199
- def initialize(
1200
- amount: nil,
1201
- arrival: nil,
1202
- carrier_code: nil,
1203
- carrier_name: nil,
1204
- currency: nil,
1205
- departure: nil,
1206
- exchange_ticket_number: nil,
1207
- fare_basis_code: nil,
1208
- fees: nil,
1209
- flight_number: nil,
1210
- is_stop_over_indicator: nil,
1211
- refundable: nil,
1212
- service_class: nil,
1213
- tax_amount: nil,
1214
- ticket_number: nil
1215
- )
1216
- @amount = amount
1217
- @arrival = arrival
1218
- @carrier_code = carrier_code
1219
- @carrier_name = carrier_name
1220
- @currency = currency
1221
- @departure = departure
1222
- @exchange_ticket_number = exchange_ticket_number
1223
- @fare_basis_code = fare_basis_code
1224
- @fees = fees
1225
- @flight_number = flight_number
1226
- @is_stop_over_indicator = is_stop_over_indicator
1227
- @refundable = refundable
1228
- @service_class = service_class
1229
- @tax_amount = tax_amount
1230
- @ticket_number = ticket_number
1231
- end
1232
- end
1233
-
1234
- class Total < ::Stripe::RequestParams
1235
- class Discounts < ::Stripe::RequestParams
1236
- # Corporate client discount code.
1237
- attr_accessor :corporate_client_code
1238
-
1239
- def initialize(corporate_client_code: nil)
1240
- @corporate_client_code = corporate_client_code
1241
- end
1242
- end
1243
-
1244
- class ExtraCharge < ::Stripe::RequestParams
1245
- # Amount of additional charges.
1246
- attr_accessor :amount
1247
- # Type of additional charges.
1248
- attr_accessor :type
1249
-
1250
- def initialize(amount: nil, type: nil)
1251
- @amount = amount
1252
- @type = type
1253
- end
1254
- end
1255
-
1256
- class Tax < ::Stripe::RequestParams
1257
- class Tax < ::Stripe::RequestParams
1258
- # Tax amount.
1259
- attr_accessor :amount
1260
- # Tax rate.
1261
- attr_accessor :rate
1262
- # Type of tax.
1263
- attr_accessor :type
1264
-
1265
- def initialize(amount: nil, rate: nil, type: nil)
1266
- @amount = amount
1267
- @rate = rate
1268
- @type = type
1269
- end
1270
- end
1271
- # Array of tax details.
1272
- attr_accessor :taxes
1273
-
1274
- def initialize(taxes: nil)
1275
- @taxes = taxes
1276
- end
1277
- end
1278
- # Total flight amount.
1279
- attr_accessor :amount
1280
- # Reason for credit.
1281
- attr_accessor :credit_reason
1282
- # Total currency.
1283
- attr_accessor :currency
1284
- # Discount details.
1285
- attr_accessor :discounts
1286
- # Additional charges.
1287
- attr_accessor :extra_charges
1288
- # Tax breakdown.
1289
- attr_accessor :tax
1290
-
1291
- def initialize(
1292
- amount: nil,
1293
- credit_reason: nil,
1294
- currency: nil,
1295
- discounts: nil,
1296
- extra_charges: nil,
1297
- tax: nil
1298
- )
1299
- @amount = amount
1300
- @credit_reason = credit_reason
1301
- @currency = currency
1302
- @discounts = discounts
1303
- @extra_charges = extra_charges
1304
- @tax = tax
1305
- end
1306
- end
1307
- # Affiliate details if applicable.
1308
- attr_accessor :affiliate
1309
- # Reservation reference.
1310
- attr_accessor :booking_number
1311
- # Computerized reservation system used to make the reservation and purchase the ticket.
1312
- attr_accessor :computerized_reservation_system
1313
- # Ticket restrictions.
1314
- attr_accessor :endorsements_and_restrictions
1315
- # List of insurances.
1316
- attr_accessor :insurances
1317
- # List of passengers.
1318
- attr_accessor :passengers
1319
- # List of flight segments.
1320
- attr_accessor :segments
1321
- # Electronic ticket indicator.
1322
- attr_accessor :ticket_electronically_issued_indicator
1323
- # Total cost breakdown.
1324
- attr_accessor :total
1325
- # Type of flight transaction.
1326
- attr_accessor :transaction_type
1327
-
1328
- def initialize(
1329
- affiliate: nil,
1330
- booking_number: nil,
1331
- computerized_reservation_system: nil,
1332
- endorsements_and_restrictions: nil,
1333
- insurances: nil,
1334
- passengers: nil,
1335
- segments: nil,
1336
- ticket_electronically_issued_indicator: nil,
1337
- total: nil,
1338
- transaction_type: nil
1339
- )
1340
- @affiliate = affiliate
1341
- @booking_number = booking_number
1342
- @computerized_reservation_system = computerized_reservation_system
1343
- @endorsements_and_restrictions = endorsements_and_restrictions
1344
- @insurances = insurances
1345
- @passengers = passengers
1346
- @segments = segments
1347
- @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1348
- @total = total
1349
- @transaction_type = transaction_type
1350
- end
1351
- end
1352
-
1353
- class Lodging < ::Stripe::RequestParams
1354
- class Address < ::Stripe::RequestParams
1355
- # City, district, suburb, town, or village.
1356
- attr_accessor :city
1357
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1358
- attr_accessor :country
1359
- # Address line 1, such as the street, PO Box, or company name.
1360
- attr_accessor :line1
1361
- # Address line 2, such as the apartment, suite, unit, or building.
1362
- attr_accessor :line2
1363
- # ZIP or postal code.
1364
- attr_accessor :postal_code
1365
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1366
- attr_accessor :state
1367
-
1368
- def initialize(
1369
- city: nil,
1370
- country: nil,
1371
- line1: nil,
1372
- line2: nil,
1373
- postal_code: nil,
1374
- state: nil
1375
- )
1376
- @city = city
1377
- @country = country
1378
- @line1 = line1
1379
- @line2 = line2
1380
- @postal_code = postal_code
1381
- @state = state
1382
- end
1383
- end
1384
-
1385
- class Affiliate < ::Stripe::RequestParams
1386
- # The name of the affiliate that originated the purchase.
1387
- attr_accessor :name
1388
-
1389
- def initialize(name: nil)
1390
- @name = name
1391
- end
1392
- end
1393
-
1394
- class Delivery < ::Stripe::RequestParams
1395
- class Recipient < ::Stripe::RequestParams
1396
- # The email of the recipient the ticket is delivered to.
1397
- attr_accessor :email
1398
- # The name of the recipient the ticket is delivered to.
1399
- attr_accessor :name
1400
- # The phone number of the recipient the ticket is delivered to.
1401
- attr_accessor :phone
1402
-
1403
- def initialize(email: nil, name: nil, phone: nil)
1404
- @email = email
1405
- @name = name
1406
- @phone = phone
1407
- end
1408
- end
1409
- # The delivery method for the payment
1410
- attr_accessor :mode
1411
- # Details of the recipient.
1412
- attr_accessor :recipient
1413
-
1414
- def initialize(mode: nil, recipient: nil)
1415
- @mode = mode
1416
- @recipient = recipient
1417
- end
1418
- end
1419
-
1420
- class Passenger < ::Stripe::RequestParams
1421
- # Full name of the person or entity on the lodging reservation.
1422
- attr_accessor :name
1423
-
1424
- def initialize(name: nil)
1425
- @name = name
1426
- end
1427
- end
1428
- # The lodging location's address.
1429
- attr_accessor :address
1430
- # The number of adults on the booking
1431
- attr_accessor :adults
1432
- # Affiliate details for this purchase.
1433
- attr_accessor :affiliate
1434
- # The booking number associated with the lodging reservation.
1435
- attr_accessor :booking_number
1436
- # The lodging category
1437
- attr_accessor :category
1438
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1439
- attr_accessor :checkin_at
1440
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1441
- attr_accessor :checkout_at
1442
- # The customer service phone number of the lodging company.
1443
- attr_accessor :customer_service_phone_number
1444
- # The daily lodging room rate.
1445
- attr_accessor :daily_room_rate_amount
1446
- # Delivery details for this purchase.
1447
- attr_accessor :delivery
1448
- # List of additional charges being billed.
1449
- attr_accessor :extra_charges
1450
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
1451
- attr_accessor :fire_safety_act_compliance
1452
- # The name of the lodging location.
1453
- attr_accessor :name
1454
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1455
- attr_accessor :no_show
1456
- # The number of rooms on the booking
1457
- attr_accessor :number_of_rooms
1458
- # The details of the passengers in the travel reservation
1459
- attr_accessor :passengers
1460
- # The phone number of the lodging location.
1461
- attr_accessor :property_phone_number
1462
- # The room class for this purchase.
1463
- attr_accessor :room_class
1464
- # The number of room nights
1465
- attr_accessor :room_nights
1466
- # The total tax amount associating with the room reservation.
1467
- attr_accessor :total_room_tax_amount
1468
- # 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.
1469
152
  attr_accessor :total_tax_amount
1470
153
 
1471
- def initialize(
1472
- address: nil,
1473
- adults: nil,
1474
- affiliate: nil,
1475
- booking_number: nil,
1476
- category: nil,
1477
- checkin_at: nil,
1478
- checkout_at: nil,
1479
- customer_service_phone_number: nil,
1480
- daily_room_rate_amount: nil,
1481
- delivery: nil,
1482
- extra_charges: nil,
1483
- fire_safety_act_compliance: nil,
1484
- name: nil,
1485
- no_show: nil,
1486
- number_of_rooms: nil,
1487
- passengers: nil,
1488
- property_phone_number: nil,
1489
- room_class: nil,
1490
- room_nights: nil,
1491
- total_room_tax_amount: nil,
1492
- total_tax_amount: nil
1493
- )
1494
- @address = address
1495
- @adults = adults
1496
- @affiliate = affiliate
1497
- @booking_number = booking_number
1498
- @category = category
1499
- @checkin_at = checkin_at
1500
- @checkout_at = checkout_at
1501
- @customer_service_phone_number = customer_service_phone_number
1502
- @daily_room_rate_amount = daily_room_rate_amount
1503
- @delivery = delivery
1504
- @extra_charges = extra_charges
1505
- @fire_safety_act_compliance = fire_safety_act_compliance
1506
- @name = name
1507
- @no_show = no_show
1508
- @number_of_rooms = number_of_rooms
1509
- @passengers = passengers
1510
- @property_phone_number = property_phone_number
1511
- @room_class = room_class
1512
- @room_nights = room_nights
1513
- @total_room_tax_amount = total_room_tax_amount
154
+ def initialize(total_tax_amount: nil)
1514
155
  @total_tax_amount = total_tax_amount
1515
156
  end
1516
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
1517
174
 
1518
- class LodgingDatum < ::Stripe::RequestParams
1519
- class Accommodation < ::Stripe::RequestParams
1520
- # Type of accommodation.
1521
- attr_accessor :accommodation_type
1522
- # Bed type.
1523
- attr_accessor :bed_type
1524
- # Daily accommodation rate in cents.
1525
- attr_accessor :daily_rate_amount
1526
- # Number of nights.
1527
- attr_accessor :nights
1528
- # Number of rooms, cabanas, apartments, and so on.
1529
- attr_accessor :number_of_rooms
1530
- # Rate type.
1531
- attr_accessor :rate_type
1532
- # Whether smoking is allowed.
1533
- attr_accessor :smoking_indicator
1534
-
1535
- def initialize(
1536
- accommodation_type: nil,
1537
- bed_type: nil,
1538
- daily_rate_amount: nil,
1539
- nights: nil,
1540
- number_of_rooms: nil,
1541
- rate_type: nil,
1542
- smoking_indicator: nil
1543
- )
1544
- @accommodation_type = accommodation_type
1545
- @bed_type = bed_type
1546
- @daily_rate_amount = daily_rate_amount
1547
- @nights = nights
1548
- @number_of_rooms = number_of_rooms
1549
- @rate_type = rate_type
1550
- @smoking_indicator = smoking_indicator
1551
- end
1552
- end
1553
-
1554
- class Affiliate < ::Stripe::RequestParams
1555
- # Affiliate partner code.
1556
- attr_accessor :code
1557
- # Affiliate partner name.
1558
- attr_accessor :name
1559
-
1560
- def initialize(code: nil, name: nil)
1561
- @code = code
1562
- @name = name
1563
- end
1564
- end
1565
-
1566
- class Guest < ::Stripe::RequestParams
1567
- # Guest's full name.
1568
- attr_accessor :name
1569
-
1570
- def initialize(name: nil)
1571
- @name = name
1572
- end
1573
- end
1574
-
1575
- class Host < ::Stripe::RequestParams
1576
- class Address < ::Stripe::RequestParams
1577
- # City, district, suburb, town, or village.
1578
- attr_accessor :city
1579
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1580
- attr_accessor :country
1581
- # Address line 1, such as the street, PO Box, or company name.
1582
- attr_accessor :line1
1583
- # Address line 2, such as the apartment, suite, unit, or building.
1584
- attr_accessor :line2
1585
- # ZIP or postal code.
1586
- attr_accessor :postal_code
1587
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1588
- attr_accessor :state
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
1589
189
 
1590
- def initialize(
1591
- city: nil,
1592
- country: nil,
1593
- line1: nil,
1594
- line2: nil,
1595
- postal_code: nil,
1596
- state: nil
1597
- )
1598
- @city = city
1599
- @country = country
1600
- @line1 = line1
1601
- @line2 = line2
1602
- @postal_code = postal_code
1603
- @state = state
1604
- end
1605
- end
1606
- # Address of the host.
1607
- attr_accessor :address
1608
- # Host's country of domicile.
1609
- attr_accessor :country_of_domicile
1610
- # Reference number for the host.
1611
- attr_accessor :host_reference
1612
- # Type of host.
1613
- attr_accessor :host_type
1614
- # Name of the lodging property or host.
1615
- attr_accessor :name
1616
- # Total number of reservations for the host.
1617
- attr_accessor :number_of_reservations
1618
- # Property phone number.
1619
- attr_accessor :property_phone_number
1620
- # Host's registration date.
1621
- attr_accessor :registered_at
190
+ class Hooks < ::Stripe::RequestParams
191
+ class Inputs < ::Stripe::RequestParams
192
+ class Tax < ::Stripe::RequestParams
193
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
194
+ attr_accessor :calculation
1622
195
 
1623
- def initialize(
1624
- address: nil,
1625
- country_of_domicile: nil,
1626
- host_reference: nil,
1627
- host_type: nil,
1628
- name: nil,
1629
- number_of_reservations: nil,
1630
- property_phone_number: nil,
1631
- registered_at: nil
1632
- )
1633
- @address = address
1634
- @country_of_domicile = country_of_domicile
1635
- @host_reference = host_reference
1636
- @host_type = host_type
1637
- @name = name
1638
- @number_of_reservations = number_of_reservations
1639
- @property_phone_number = property_phone_number
1640
- @registered_at = registered_at
196
+ def initialize(calculation: nil)
197
+ @calculation = calculation
1641
198
  end
1642
199
  end
200
+ # Tax arguments for automations
201
+ attr_accessor :tax
1643
202
 
1644
- class Insurance < ::Stripe::RequestParams
1645
- # Price of the insurance coverage in cents.
1646
- attr_accessor :amount
1647
- # Currency of the insurance amount.
1648
- attr_accessor :currency
1649
- # Name of the insurance company.
1650
- attr_accessor :insurance_company_name
1651
- # Type of insurance coverage.
1652
- attr_accessor :insurance_type
1653
-
1654
- def initialize(
1655
- amount: nil,
1656
- currency: nil,
1657
- insurance_company_name: nil,
1658
- insurance_type: nil
1659
- )
1660
- @amount = amount
1661
- @currency = currency
1662
- @insurance_company_name = insurance_company_name
1663
- @insurance_type = insurance_type
1664
- end
203
+ def initialize(tax: nil)
204
+ @tax = tax
1665
205
  end
206
+ end
207
+ # Arguments passed in automations
208
+ attr_accessor :inputs
1666
209
 
1667
- class Total < ::Stripe::RequestParams
1668
- class Discounts < ::Stripe::RequestParams
1669
- # Corporate client discount code.
1670
- attr_accessor :corporate_client_code
1671
- # Coupon code.
1672
- attr_accessor :coupon
1673
-
1674
- def initialize(corporate_client_code: nil, coupon: nil)
1675
- @corporate_client_code = corporate_client_code
1676
- @coupon = coupon
1677
- end
1678
- end
1679
-
1680
- class ExtraCharge < ::Stripe::RequestParams
1681
- # Amount of the extra charge in cents.
1682
- attr_accessor :amount
1683
- # Type of extra charge.
1684
- attr_accessor :type
210
+ def initialize(inputs: nil)
211
+ @inputs = inputs
212
+ end
213
+ end
1685
214
 
1686
- def initialize(amount: nil, type: nil)
1687
- @amount = amount
1688
- @type = type
1689
- end
1690
- end
215
+ class MandateData < ::Stripe::RequestParams
216
+ class CustomerAcceptance < ::Stripe::RequestParams
217
+ class Offline < ::Stripe::RequestParams; end
1691
218
 
1692
- class Tax < ::Stripe::RequestParams
1693
- class Tax < ::Stripe::RequestParams
1694
- # Tax amount in cents.
1695
- attr_accessor :amount
1696
- # Tax rate.
1697
- attr_accessor :rate
1698
- # Type of tax applied.
1699
- attr_accessor :type
1700
-
1701
- def initialize(amount: nil, rate: nil, type: nil)
1702
- @amount = amount
1703
- @rate = rate
1704
- @type = type
1705
- end
1706
- end
1707
- # Indicates whether the transaction is tax exempt.
1708
- attr_accessor :tax_exempt_indicator
1709
- # Tax details.
1710
- attr_accessor :taxes
1711
-
1712
- def initialize(tax_exempt_indicator: nil, taxes: nil)
1713
- @tax_exempt_indicator = tax_exempt_indicator
1714
- @taxes = taxes
1715
- end
1716
- end
1717
- # Total price of the lodging reservation in cents.
1718
- attr_accessor :amount
1719
- # Cash advances in cents.
1720
- attr_accessor :cash_advances
1721
- # Currency of the total amount.
1722
- attr_accessor :currency
1723
- # Discount details for the lodging.
1724
- attr_accessor :discounts
1725
- # Additional charges for the lodging.
1726
- attr_accessor :extra_charges
1727
- # Prepaid amount in cents.
1728
- attr_accessor :prepaid_amount
1729
- # Tax breakdown for the lodging reservation.
1730
- attr_accessor :tax
219
+ class Online < ::Stripe::RequestParams
220
+ # The IP address from which the Mandate was accepted by the customer.
221
+ attr_accessor :ip_address
222
+ # The user agent of the browser from which the Mandate was accepted by the customer.
223
+ attr_accessor :user_agent
1731
224
 
1732
- def initialize(
1733
- amount: nil,
1734
- cash_advances: nil,
1735
- currency: nil,
1736
- discounts: nil,
1737
- extra_charges: nil,
1738
- prepaid_amount: nil,
1739
- tax: nil
1740
- )
1741
- @amount = amount
1742
- @cash_advances = cash_advances
1743
- @currency = currency
1744
- @discounts = discounts
1745
- @extra_charges = extra_charges
1746
- @prepaid_amount = prepaid_amount
1747
- @tax = tax
225
+ def initialize(ip_address: nil, user_agent: nil)
226
+ @ip_address = ip_address
227
+ @user_agent = user_agent
1748
228
  end
1749
229
  end
1750
- # Accommodation details for the lodging.
1751
- attr_accessor :accommodation
1752
- # Affiliate details if applicable.
1753
- attr_accessor :affiliate
1754
- # Booking confirmation number for the lodging.
1755
- attr_accessor :booking_number
1756
- # Check-in date.
1757
- attr_accessor :checkin_at
1758
- # Check-out date.
1759
- attr_accessor :checkout_at
1760
- # Customer service phone number for the lodging company.
1761
- attr_accessor :customer_service_phone_number
1762
- # Whether the lodging is compliant with any hotel fire safety regulations.
1763
- attr_accessor :fire_safety_act_compliance_indicator
1764
- # List of guests for the lodging.
1765
- attr_accessor :guests
1766
- # Host details for the lodging.
1767
- attr_accessor :host
1768
- # List of insurances for the lodging.
1769
- attr_accessor :insurances
1770
- # Whether the renter is a no-show.
1771
- attr_accessor :no_show_indicator
1772
- # Renter ID number for the lodging.
1773
- attr_accessor :renter_id_number
1774
- # Renter name for the lodging.
1775
- attr_accessor :renter_name
1776
- # Total details for the lodging.
1777
- attr_accessor :total
230
+ # The time at which the customer accepted the Mandate.
231
+ attr_accessor :accepted_at
232
+ # If this is a Mandate accepted offline, this hash contains details about the offline acceptance.
233
+ attr_accessor :offline
234
+ # If this is a Mandate accepted online, this hash contains details about the online acceptance.
235
+ attr_accessor :online
236
+ # The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
237
+ attr_accessor :type
1778
238
 
1779
- def initialize(
1780
- accommodation: nil,
1781
- affiliate: nil,
1782
- booking_number: nil,
1783
- checkin_at: nil,
1784
- checkout_at: nil,
1785
- customer_service_phone_number: nil,
1786
- fire_safety_act_compliance_indicator: nil,
1787
- guests: nil,
1788
- host: nil,
1789
- insurances: nil,
1790
- no_show_indicator: nil,
1791
- renter_id_number: nil,
1792
- renter_name: nil,
1793
- total: nil
1794
- )
1795
- @accommodation = accommodation
1796
- @affiliate = affiliate
1797
- @booking_number = booking_number
1798
- @checkin_at = checkin_at
1799
- @checkout_at = checkout_at
1800
- @customer_service_phone_number = customer_service_phone_number
1801
- @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1802
- @guests = guests
1803
- @host = host
1804
- @insurances = insurances
1805
- @no_show_indicator = no_show_indicator
1806
- @renter_id_number = renter_id_number
1807
- @renter_name = renter_name
1808
- @total = total
239
+ def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
240
+ @accepted_at = accepted_at
241
+ @offline = offline
242
+ @online = online
243
+ @type = type
1809
244
  end
1810
245
  end
246
+ # This hash contains details about the customer acceptance of the Mandate.
247
+ attr_accessor :customer_acceptance
1811
248
 
1812
- class Subscription < ::Stripe::RequestParams
1813
- class Affiliate < ::Stripe::RequestParams
1814
- # The name of the affiliate that originated the purchase.
1815
- attr_accessor :name
1816
-
1817
- def initialize(name: nil)
1818
- @name = name
1819
- end
1820
- end
1821
-
1822
- class BillingInterval < ::Stripe::RequestParams
1823
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1824
- attr_accessor :count
1825
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1826
- attr_accessor :interval
1827
-
1828
- def initialize(count: nil, interval: nil)
1829
- @count = count
1830
- @interval = interval
1831
- end
1832
- end
1833
- # Affiliate details for this purchase.
1834
- attr_accessor :affiliate
1835
- # Info whether the subscription will be auto renewed upon expiry.
1836
- attr_accessor :auto_renewal
1837
- # Subscription billing details for this purchase.
1838
- attr_accessor :billing_interval
1839
- # Subscription end time. Measured in seconds since the Unix epoch.
1840
- attr_accessor :ends_at
1841
- # Name of the product on subscription. e.g. Apple Music Subscription
1842
- attr_accessor :name
1843
- # Subscription start time. Measured in seconds since the Unix epoch.
1844
- attr_accessor :starts_at
1845
-
1846
- def initialize(
1847
- affiliate: nil,
1848
- auto_renewal: nil,
1849
- billing_interval: nil,
1850
- ends_at: nil,
1851
- name: nil,
1852
- starts_at: nil
1853
- )
1854
- @affiliate = affiliate
1855
- @auto_renewal = auto_renewal
1856
- @billing_interval = billing_interval
1857
- @ends_at = ends_at
1858
- @name = name
1859
- @starts_at = starts_at
1860
- end
249
+ def initialize(customer_acceptance: nil)
250
+ @customer_acceptance = customer_acceptance
1861
251
  end
1862
- # Car rental details for this PaymentIntent.
1863
- attr_accessor :car_rental
1864
- # Car rental data for this PaymentIntent.
1865
- attr_accessor :car_rental_data
252
+ end
253
+
254
+ class PaymentDetails < ::Stripe::RequestParams
1866
255
  # A unique value to identify the customer. This field is available only for card payments.
1867
256
  #
1868
257
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1869
258
  attr_accessor :customer_reference
1870
- # Event details for this PaymentIntent
1871
- attr_accessor :event_details
1872
- # Flight reservation details for this PaymentIntent
1873
- attr_accessor :flight
1874
- # Flight data for this PaymentIntent.
1875
- attr_accessor :flight_data
1876
- # Lodging reservation details for this PaymentIntent
1877
- attr_accessor :lodging
1878
- # Lodging data for this PaymentIntent.
1879
- attr_accessor :lodging_data
1880
259
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1881
260
  #
1882
261
  # 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.
1883
262
  attr_accessor :order_reference
1884
- # Subscription details for this PaymentIntent
1885
- attr_accessor :subscription
1886
263
 
1887
- def initialize(
1888
- car_rental: nil,
1889
- car_rental_data: nil,
1890
- customer_reference: nil,
1891
- event_details: nil,
1892
- flight: nil,
1893
- flight_data: nil,
1894
- lodging: nil,
1895
- lodging_data: nil,
1896
- order_reference: nil,
1897
- subscription: nil
1898
- )
1899
- @car_rental = car_rental
1900
- @car_rental_data = car_rental_data
264
+ def initialize(customer_reference: nil, order_reference: nil)
1901
265
  @customer_reference = customer_reference
1902
- @event_details = event_details
1903
- @flight = flight
1904
- @flight_data = flight_data
1905
- @lodging = lodging
1906
- @lodging_data = lodging_data
1907
266
  @order_reference = order_reference
1908
- @subscription = subscription
1909
267
  end
1910
268
  end
1911
269
 
@@ -2009,6 +367,7 @@ module Stripe
2009
367
  end
2010
368
  end
2011
369
 
370
+ class Bizum < ::Stripe::RequestParams; end
2012
371
  class Blik < ::Stripe::RequestParams; end
2013
372
 
2014
373
  class Boleto < ::Stripe::RequestParams
@@ -2046,18 +405,8 @@ module Stripe
2046
405
  end
2047
406
 
2048
407
  class Giropay < ::Stripe::RequestParams; end
2049
- class Gopay < ::Stripe::RequestParams; end
2050
408
  class Grabpay < ::Stripe::RequestParams; end
2051
409
 
2052
- class IdBankTransfer < ::Stripe::RequestParams
2053
- # Bank where the account is held.
2054
- attr_accessor :bank
2055
-
2056
- def initialize(bank: nil)
2057
- @bank = bank
2058
- end
2059
- end
2060
-
2061
410
  class Ideal < ::Stripe::RequestParams
2062
411
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2063
412
  attr_accessor :bank
@@ -2155,7 +504,6 @@ module Stripe
2155
504
  class Payco < ::Stripe::RequestParams; end
2156
505
  class Paynow < ::Stripe::RequestParams; end
2157
506
  class Paypal < ::Stripe::RequestParams; end
2158
- class Paypay < ::Stripe::RequestParams; end
2159
507
 
2160
508
  class Payto < ::Stripe::RequestParams
2161
509
  # The account number for the bank account.
@@ -2174,7 +522,6 @@ module Stripe
2174
522
 
2175
523
  class Pix < ::Stripe::RequestParams; end
2176
524
  class Promptpay < ::Stripe::RequestParams; end
2177
- class Qris < ::Stripe::RequestParams; end
2178
525
 
2179
526
  class RadarOptions < ::Stripe::RequestParams
2180
527
  # 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.
@@ -2185,32 +532,10 @@ module Stripe
2185
532
  end
2186
533
  end
2187
534
 
2188
- class Rechnung < ::Stripe::RequestParams
2189
- class Dob < ::Stripe::RequestParams
2190
- # The day of birth, between 1 and 31.
2191
- attr_accessor :day
2192
- # The month of birth, between 1 and 12.
2193
- attr_accessor :month
2194
- # The four-digit year of birth.
2195
- attr_accessor :year
2196
-
2197
- def initialize(day: nil, month: nil, year: nil)
2198
- @day = day
2199
- @month = month
2200
- @year = year
2201
- end
2202
- end
2203
- # Customer's date of birth
2204
- attr_accessor :dob
2205
-
2206
- def initialize(dob: nil)
2207
- @dob = dob
2208
- end
2209
- end
2210
-
2211
535
  class RevolutPay < ::Stripe::RequestParams; end
2212
536
  class SamsungPay < ::Stripe::RequestParams; end
2213
537
  class Satispay < ::Stripe::RequestParams; end
538
+ class Scalapay < ::Stripe::RequestParams; end
2214
539
 
2215
540
  class SepaDebit < ::Stripe::RequestParams
2216
541
  # IBAN of the bank account.
@@ -2221,8 +546,6 @@ module Stripe
2221
546
  end
2222
547
  end
2223
548
 
2224
- class Shopeepay < ::Stripe::RequestParams; end
2225
-
2226
549
  class Sofort < ::Stripe::RequestParams
2227
550
  # Two-letter ISO code representing the country the bank account is located in.
2228
551
  attr_accessor :country
@@ -2232,15 +555,6 @@ module Stripe
2232
555
  end
2233
556
  end
2234
557
 
2235
- class StripeBalance < ::Stripe::RequestParams
2236
- # The connected account ID whose Stripe balance to use as the source of payment
2237
- attr_accessor :account
2238
-
2239
- def initialize(account: nil)
2240
- @account = account
2241
- end
2242
- end
2243
-
2244
558
  class Sunbit < ::Stripe::RequestParams; end
2245
559
  class Swish < ::Stripe::RequestParams; end
2246
560
  class Twint < ::Stripe::RequestParams; end
@@ -2324,6 +638,8 @@ module Stripe
2324
638
  attr_accessor :billie
2325
639
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
2326
640
  attr_accessor :billing_details
641
+ # If this is a `bizum` PaymentMethod, this hash contains details about the Bizum payment method.
642
+ attr_accessor :bizum
2327
643
  # If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
2328
644
  attr_accessor :blik
2329
645
  # If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
@@ -2340,12 +656,8 @@ module Stripe
2340
656
  attr_accessor :fpx
2341
657
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2342
658
  attr_accessor :giropay
2343
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2344
- attr_accessor :gopay
2345
659
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2346
660
  attr_accessor :grabpay
2347
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2348
- attr_accessor :id_bank_transfer
2349
661
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2350
662
  attr_accessor :ideal
2351
663
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2358,7 +670,7 @@ module Stripe
2358
670
  attr_accessor :konbini
2359
671
  # If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
2360
672
  attr_accessor :kr_card
2361
- # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
673
+ # If this is an `Link` PaymentMethod, this hash contains details about the Link payment method (Link is also known as Onelink in the UK).
2362
674
  attr_accessor :link
2363
675
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2364
676
  attr_accessor :mb_way
@@ -2384,36 +696,26 @@ module Stripe
2384
696
  attr_accessor :paynow
2385
697
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2386
698
  attr_accessor :paypal
2387
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2388
- attr_accessor :paypay
2389
699
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2390
700
  attr_accessor :payto
2391
701
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2392
702
  attr_accessor :pix
2393
703
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2394
704
  attr_accessor :promptpay
2395
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2396
- attr_accessor :qris
2397
705
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2398
706
  attr_accessor :radar_options
2399
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2400
- attr_accessor :rechnung
2401
707
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2402
708
  attr_accessor :revolut_pay
2403
709
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
2404
710
  attr_accessor :samsung_pay
2405
711
  # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
2406
712
  attr_accessor :satispay
713
+ # If this is a Scalapay PaymentMethod, this hash contains details about the Scalapay payment method.
714
+ attr_accessor :scalapay
2407
715
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2408
716
  attr_accessor :sepa_debit
2409
- # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2410
- attr_accessor :shared_payment_granted_token
2411
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2412
- attr_accessor :shopeepay
2413
717
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2414
718
  attr_accessor :sofort
2415
- # This hash contains details about the Stripe balance payment method.
2416
- attr_accessor :stripe_balance
2417
719
  # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
2418
720
  attr_accessor :sunbit
2419
721
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
@@ -2444,6 +746,7 @@ module Stripe
2444
746
  bancontact: nil,
2445
747
  billie: nil,
2446
748
  billing_details: nil,
749
+ bizum: nil,
2447
750
  blik: nil,
2448
751
  boleto: nil,
2449
752
  cashapp: nil,
@@ -2452,9 +755,7 @@ module Stripe
2452
755
  eps: nil,
2453
756
  fpx: nil,
2454
757
  giropay: nil,
2455
- gopay: nil,
2456
758
  grabpay: nil,
2457
- id_bank_transfer: nil,
2458
759
  ideal: nil,
2459
760
  interac_present: nil,
2460
761
  kakao_pay: nil,
@@ -2474,21 +775,16 @@ module Stripe
2474
775
  payco: nil,
2475
776
  paynow: nil,
2476
777
  paypal: nil,
2477
- paypay: nil,
2478
778
  payto: nil,
2479
779
  pix: nil,
2480
780
  promptpay: nil,
2481
- qris: nil,
2482
781
  radar_options: nil,
2483
- rechnung: nil,
2484
782
  revolut_pay: nil,
2485
783
  samsung_pay: nil,
2486
784
  satispay: nil,
785
+ scalapay: nil,
2487
786
  sepa_debit: nil,
2488
- shared_payment_granted_token: nil,
2489
- shopeepay: nil,
2490
787
  sofort: nil,
2491
- stripe_balance: nil,
2492
788
  sunbit: nil,
2493
789
  swish: nil,
2494
790
  twint: nil,
@@ -2510,6 +806,7 @@ module Stripe
2510
806
  @bancontact = bancontact
2511
807
  @billie = billie
2512
808
  @billing_details = billing_details
809
+ @bizum = bizum
2513
810
  @blik = blik
2514
811
  @boleto = boleto
2515
812
  @cashapp = cashapp
@@ -2518,9 +815,7 @@ module Stripe
2518
815
  @eps = eps
2519
816
  @fpx = fpx
2520
817
  @giropay = giropay
2521
- @gopay = gopay
2522
818
  @grabpay = grabpay
2523
- @id_bank_transfer = id_bank_transfer
2524
819
  @ideal = ideal
2525
820
  @interac_present = interac_present
2526
821
  @kakao_pay = kakao_pay
@@ -2540,21 +835,16 @@ module Stripe
2540
835
  @payco = payco
2541
836
  @paynow = paynow
2542
837
  @paypal = paypal
2543
- @paypay = paypay
2544
838
  @payto = payto
2545
839
  @pix = pix
2546
840
  @promptpay = promptpay
2547
- @qris = qris
2548
841
  @radar_options = radar_options
2549
- @rechnung = rechnung
2550
842
  @revolut_pay = revolut_pay
2551
843
  @samsung_pay = samsung_pay
2552
844
  @satispay = satispay
845
+ @scalapay = scalapay
2553
846
  @sepa_debit = sepa_debit
2554
- @shared_payment_granted_token = shared_payment_granted_token
2555
- @shopeepay = shopeepay
2556
847
  @sofort = sofort
2557
- @stripe_balance = stripe_balance
2558
848
  @sunbit = sunbit
2559
849
  @swish = swish
2560
850
  @twint = twint
@@ -2813,6 +1103,8 @@ module Stripe
2813
1103
  end
2814
1104
  end
2815
1105
 
1106
+ class Bizum < ::Stripe::RequestParams; end
1107
+
2816
1108
  class Blik < ::Stripe::RequestParams
2817
1109
  # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
2818
1110
  attr_accessor :code
@@ -2915,57 +1207,15 @@ module Stripe
2915
1207
  start_date: nil,
2916
1208
  supported_types: nil
2917
1209
  )
2918
- @amount = amount
2919
- @amount_type = amount_type
2920
- @description = description
2921
- @end_date = end_date
2922
- @interval = interval
2923
- @interval_count = interval_count
2924
- @reference = reference
2925
- @start_date = start_date
2926
- @supported_types = supported_types
2927
- end
2928
- end
2929
-
2930
- class StatementDetails < ::Stripe::RequestParams
2931
- class Address < ::Stripe::RequestParams
2932
- # City, district, suburb, town, or village.
2933
- attr_accessor :city
2934
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2935
- attr_accessor :country
2936
- # Address line 1, such as the street, PO Box, or company name.
2937
- attr_accessor :line1
2938
- # Address line 2, such as the apartment, suite, unit, or building.
2939
- attr_accessor :line2
2940
- # ZIP or postal code.
2941
- attr_accessor :postal_code
2942
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2943
- attr_accessor :state
2944
-
2945
- def initialize(
2946
- city: nil,
2947
- country: nil,
2948
- line1: nil,
2949
- line2: nil,
2950
- postal_code: nil,
2951
- state: nil
2952
- )
2953
- @city = city
2954
- @country = country
2955
- @line1 = line1
2956
- @line2 = line2
2957
- @postal_code = postal_code
2958
- @state = state
2959
- end
2960
- end
2961
- # Please pass in an address that is within your Stripe user account country
2962
- attr_accessor :address
2963
- # Phone number (e.g., a toll-free number that customers can call)
2964
- attr_accessor :phone
2965
-
2966
- def initialize(address: nil, phone: nil)
2967
- @address = address
2968
- @phone = phone
1210
+ @amount = amount
1211
+ @amount_type = amount_type
1212
+ @description = description
1213
+ @end_date = end_date
1214
+ @interval = interval
1215
+ @interval_count = interval_count
1216
+ @reference = reference
1217
+ @start_date = start_date
1218
+ @supported_types = supported_types
2969
1219
  end
2970
1220
  end
2971
1221
 
@@ -3063,8 +1313,6 @@ module Stripe
3063
1313
  attr_accessor :moto
3064
1314
  # 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.
3065
1315
  attr_accessor :network
3066
- # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3067
- attr_accessor :request_decremental_authorization
3068
1316
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
3069
1317
  attr_accessor :request_extended_authorization
3070
1318
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -3073,8 +1321,6 @@ module Stripe
3073
1321
  attr_accessor :request_multicapture
3074
1322
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
3075
1323
  attr_accessor :request_overcapture
3076
- # Request partial authorization on this PaymentIntent.
3077
- attr_accessor :request_partial_authorization
3078
1324
  # 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.
3079
1325
  attr_accessor :request_three_d_secure
3080
1326
  # 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).
@@ -3093,8 +1339,6 @@ module Stripe
3093
1339
  attr_accessor :statement_descriptor_suffix_kana
3094
1340
  # 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.
3095
1341
  attr_accessor :statement_descriptor_suffix_kanji
3096
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3097
- attr_accessor :statement_details
3098
1342
  # If 3D Secure authentication was performed with a third-party provider,
3099
1343
  # the authentication details to use for this payment.
3100
1344
  attr_accessor :three_d_secure
@@ -3106,18 +1350,15 @@ module Stripe
3106
1350
  mandate_options: nil,
3107
1351
  moto: nil,
3108
1352
  network: nil,
3109
- request_decremental_authorization: nil,
3110
1353
  request_extended_authorization: nil,
3111
1354
  request_incremental_authorization: nil,
3112
1355
  request_multicapture: nil,
3113
1356
  request_overcapture: nil,
3114
- request_partial_authorization: nil,
3115
1357
  request_three_d_secure: nil,
3116
1358
  require_cvc_recollection: nil,
3117
1359
  setup_future_usage: nil,
3118
1360
  statement_descriptor_suffix_kana: nil,
3119
1361
  statement_descriptor_suffix_kanji: nil,
3120
- statement_details: nil,
3121
1362
  three_d_secure: nil
3122
1363
  )
3123
1364
  @capture_method = capture_method
@@ -3126,18 +1367,15 @@ module Stripe
3126
1367
  @mandate_options = mandate_options
3127
1368
  @moto = moto
3128
1369
  @network = network
3129
- @request_decremental_authorization = request_decremental_authorization
3130
1370
  @request_extended_authorization = request_extended_authorization
3131
1371
  @request_incremental_authorization = request_incremental_authorization
3132
1372
  @request_multicapture = request_multicapture
3133
1373
  @request_overcapture = request_overcapture
3134
- @request_partial_authorization = request_partial_authorization
3135
1374
  @request_three_d_secure = request_three_d_secure
3136
1375
  @require_cvc_recollection = require_cvc_recollection
3137
1376
  @setup_future_usage = setup_future_usage
3138
1377
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
3139
1378
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3140
- @statement_details = statement_details
3141
1379
  @three_d_secure = three_d_secure
3142
1380
  end
3143
1381
  end
@@ -3316,23 +1554,6 @@ module Stripe
3316
1554
  end
3317
1555
  end
3318
1556
 
3319
- class Gopay < ::Stripe::RequestParams
3320
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3321
- #
3322
- # 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.
3323
- #
3324
- # 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.
3325
- #
3326
- # 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).
3327
- #
3328
- # 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`.
3329
- attr_accessor :setup_future_usage
3330
-
3331
- def initialize(setup_future_usage: nil)
3332
- @setup_future_usage = setup_future_usage
3333
- end
3334
- end
3335
-
3336
1557
  class Grabpay < ::Stripe::RequestParams
3337
1558
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3338
1559
  #
@@ -3350,29 +1571,6 @@ module Stripe
3350
1571
  end
3351
1572
  end
3352
1573
 
3353
- class IdBankTransfer < ::Stripe::RequestParams
3354
- # 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.
3355
- attr_accessor :expires_after
3356
- # 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.
3357
- attr_accessor :expires_at
3358
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3359
- #
3360
- # 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.
3361
- #
3362
- # 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.
3363
- #
3364
- # 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).
3365
- #
3366
- # 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`.
3367
- attr_accessor :setup_future_usage
3368
-
3369
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3370
- @expires_after = expires_after
3371
- @expires_at = expires_at
3372
- @setup_future_usage = setup_future_usage
3373
- end
3374
- end
3375
-
3376
1574
  class Ideal < ::Stripe::RequestParams
3377
1575
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3378
1576
  #
@@ -3479,939 +1677,6 @@ module Stripe
3479
1677
  @reference = reference
3480
1678
  end
3481
1679
  end
3482
-
3483
- class SupplementaryPurchaseData < ::Stripe::RequestParams
3484
- class BusReservationDetail < ::Stripe::RequestParams
3485
- class Arrival < ::Stripe::RequestParams
3486
- class Address < ::Stripe::RequestParams
3487
- # The city or town.
3488
- attr_accessor :city
3489
- # The country in ISO 3166-1 alpha-2 format.
3490
- attr_accessor :country
3491
- # The postal code formatted according to country.
3492
- attr_accessor :postal_code
3493
- # The state, county, province, or region formatted according to country.
3494
- attr_accessor :region
3495
- # Line 1 of the street address.
3496
- attr_accessor :street_address
3497
- # Line 2 of the street address.
3498
- attr_accessor :street_address2
3499
-
3500
- def initialize(
3501
- city: nil,
3502
- country: nil,
3503
- postal_code: nil,
3504
- region: nil,
3505
- street_address: nil,
3506
- street_address2: nil
3507
- )
3508
- @city = city
3509
- @country = country
3510
- @postal_code = postal_code
3511
- @region = region
3512
- @street_address = street_address
3513
- @street_address2 = street_address2
3514
- end
3515
- end
3516
- # Address of the arrival location.
3517
- attr_accessor :address
3518
- # Identifier name or reference for the arrival location.
3519
- attr_accessor :arrival_location
3520
-
3521
- def initialize(address: nil, arrival_location: nil)
3522
- @address = address
3523
- @arrival_location = arrival_location
3524
- end
3525
- end
3526
-
3527
- class Departure < ::Stripe::RequestParams
3528
- class Address < ::Stripe::RequestParams
3529
- # The city or town.
3530
- attr_accessor :city
3531
- # The country in ISO 3166-1 alpha-2 format.
3532
- attr_accessor :country
3533
- # The postal code formatted according to country.
3534
- attr_accessor :postal_code
3535
- # The state, county, province, or region formatted according to country.
3536
- attr_accessor :region
3537
- # Line 1 of the street address.
3538
- attr_accessor :street_address
3539
- # Line 2 of the street address.
3540
- attr_accessor :street_address2
3541
-
3542
- def initialize(
3543
- city: nil,
3544
- country: nil,
3545
- postal_code: nil,
3546
- region: nil,
3547
- street_address: nil,
3548
- street_address2: nil
3549
- )
3550
- @city = city
3551
- @country = country
3552
- @postal_code = postal_code
3553
- @region = region
3554
- @street_address = street_address
3555
- @street_address2 = street_address2
3556
- end
3557
- end
3558
- # Address of the departure location.
3559
- attr_accessor :address
3560
- # Timestamp of departure.
3561
- attr_accessor :departs_at
3562
- # Identifier name or reference for the origin location.
3563
- attr_accessor :departure_location
3564
-
3565
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3566
- @address = address
3567
- @departs_at = departs_at
3568
- @departure_location = departure_location
3569
- end
3570
- end
3571
-
3572
- class Insurance < ::Stripe::RequestParams
3573
- # Insurance currency.
3574
- attr_accessor :currency
3575
- # Name of the company providing the insurance.
3576
- attr_accessor :insurance_company_name
3577
- # Type of insurance.
3578
- attr_accessor :insurance_type
3579
- # Price of insurance in cents.
3580
- attr_accessor :price
3581
-
3582
- def initialize(
3583
- currency: nil,
3584
- insurance_company_name: nil,
3585
- insurance_type: nil,
3586
- price: nil
3587
- )
3588
- @currency = currency
3589
- @insurance_company_name = insurance_company_name
3590
- @insurance_type = insurance_type
3591
- @price = price
3592
- end
3593
- end
3594
-
3595
- class Passenger < ::Stripe::RequestParams
3596
- # The family name of the person.
3597
- attr_accessor :family_name
3598
- # The given name of the person.
3599
- attr_accessor :given_name
3600
-
3601
- def initialize(family_name: nil, given_name: nil)
3602
- @family_name = family_name
3603
- @given_name = given_name
3604
- end
3605
- end
3606
- # Name of associated or partner company for the service.
3607
- attr_accessor :affiliate_name
3608
- # Arrival details.
3609
- attr_accessor :arrival
3610
- # Name of transportation company.
3611
- attr_accessor :carrier_name
3612
- # Currency.
3613
- attr_accessor :currency
3614
- # Departure details.
3615
- attr_accessor :departure
3616
- # List of insurances for this reservation.
3617
- attr_accessor :insurances
3618
- # List of passengers that this reservation applies to.
3619
- attr_accessor :passengers
3620
- # Price in cents.
3621
- attr_accessor :price
3622
- # Ticket class.
3623
- attr_accessor :ticket_class
3624
-
3625
- def initialize(
3626
- affiliate_name: nil,
3627
- arrival: nil,
3628
- carrier_name: nil,
3629
- currency: nil,
3630
- departure: nil,
3631
- insurances: nil,
3632
- passengers: nil,
3633
- price: nil,
3634
- ticket_class: nil
3635
- )
3636
- @affiliate_name = affiliate_name
3637
- @arrival = arrival
3638
- @carrier_name = carrier_name
3639
- @currency = currency
3640
- @departure = departure
3641
- @insurances = insurances
3642
- @passengers = passengers
3643
- @price = price
3644
- @ticket_class = ticket_class
3645
- end
3646
- end
3647
-
3648
- class EventReservationDetail < ::Stripe::RequestParams
3649
- class Address < ::Stripe::RequestParams
3650
- # The city or town.
3651
- attr_accessor :city
3652
- # The country in ISO 3166-1 alpha-2 format.
3653
- attr_accessor :country
3654
- # The postal code formatted according to country.
3655
- attr_accessor :postal_code
3656
- # The state, county, province, or region formatted according to country.
3657
- attr_accessor :region
3658
- # Line 1 of the street address.
3659
- attr_accessor :street_address
3660
- # Line 2 of the street address.
3661
- attr_accessor :street_address2
3662
-
3663
- def initialize(
3664
- city: nil,
3665
- country: nil,
3666
- postal_code: nil,
3667
- region: nil,
3668
- street_address: nil,
3669
- street_address2: nil
3670
- )
3671
- @city = city
3672
- @country = country
3673
- @postal_code = postal_code
3674
- @region = region
3675
- @street_address = street_address
3676
- @street_address2 = street_address2
3677
- end
3678
- end
3679
-
3680
- class Insurance < ::Stripe::RequestParams
3681
- # Insurance currency.
3682
- attr_accessor :currency
3683
- # Name of the company providing the insurance.
3684
- attr_accessor :insurance_company_name
3685
- # Type of insurance.
3686
- attr_accessor :insurance_type
3687
- # Price of insurance in cents.
3688
- attr_accessor :price
3689
-
3690
- def initialize(
3691
- currency: nil,
3692
- insurance_company_name: nil,
3693
- insurance_type: nil,
3694
- price: nil
3695
- )
3696
- @currency = currency
3697
- @insurance_company_name = insurance_company_name
3698
- @insurance_type = insurance_type
3699
- @price = price
3700
- end
3701
- end
3702
- # Indicates if the tickets are digitally checked when entering the venue.
3703
- attr_accessor :access_controlled_venue
3704
- # Address of the event.
3705
- attr_accessor :address
3706
- # Name of associated or partner company for the service.
3707
- attr_accessor :affiliate_name
3708
- # End timestamp of the event.
3709
- attr_accessor :ends_at
3710
- # Company selling the ticket.
3711
- attr_accessor :event_company_name
3712
- # Name of the event.
3713
- attr_accessor :event_name
3714
- # Type of the event.
3715
- attr_accessor :event_type
3716
- # List of insurances for this event.
3717
- attr_accessor :insurances
3718
- # Start timestamp of the event.
3719
- attr_accessor :starts_at
3720
- # Name of the venue where the event takes place.
3721
- attr_accessor :venue_name
3722
-
3723
- def initialize(
3724
- access_controlled_venue: nil,
3725
- address: nil,
3726
- affiliate_name: nil,
3727
- ends_at: nil,
3728
- event_company_name: nil,
3729
- event_name: nil,
3730
- event_type: nil,
3731
- insurances: nil,
3732
- starts_at: nil,
3733
- venue_name: nil
3734
- )
3735
- @access_controlled_venue = access_controlled_venue
3736
- @address = address
3737
- @affiliate_name = affiliate_name
3738
- @ends_at = ends_at
3739
- @event_company_name = event_company_name
3740
- @event_name = event_name
3741
- @event_type = event_type
3742
- @insurances = insurances
3743
- @starts_at = starts_at
3744
- @venue_name = venue_name
3745
- end
3746
- end
3747
-
3748
- class FerryReservationDetail < ::Stripe::RequestParams
3749
- class Arrival < ::Stripe::RequestParams
3750
- class Address < ::Stripe::RequestParams
3751
- # The city or town.
3752
- attr_accessor :city
3753
- # The country in ISO 3166-1 alpha-2 format.
3754
- attr_accessor :country
3755
- # The postal code formatted according to country.
3756
- attr_accessor :postal_code
3757
- # The state, county, province, or region formatted according to country.
3758
- attr_accessor :region
3759
- # Line 1 of the street address.
3760
- attr_accessor :street_address
3761
- # Line 2 of the street address.
3762
- attr_accessor :street_address2
3763
-
3764
- def initialize(
3765
- city: nil,
3766
- country: nil,
3767
- postal_code: nil,
3768
- region: nil,
3769
- street_address: nil,
3770
- street_address2: nil
3771
- )
3772
- @city = city
3773
- @country = country
3774
- @postal_code = postal_code
3775
- @region = region
3776
- @street_address = street_address
3777
- @street_address2 = street_address2
3778
- end
3779
- end
3780
- # Address of the arrival location.
3781
- attr_accessor :address
3782
- # Identifier name or reference for the arrival location.
3783
- attr_accessor :arrival_location
3784
-
3785
- def initialize(address: nil, arrival_location: nil)
3786
- @address = address
3787
- @arrival_location = arrival_location
3788
- end
3789
- end
3790
-
3791
- class Departure < ::Stripe::RequestParams
3792
- class Address < ::Stripe::RequestParams
3793
- # The city or town.
3794
- attr_accessor :city
3795
- # The country in ISO 3166-1 alpha-2 format.
3796
- attr_accessor :country
3797
- # The postal code formatted according to country.
3798
- attr_accessor :postal_code
3799
- # The state, county, province, or region formatted according to country.
3800
- attr_accessor :region
3801
- # Line 1 of the street address.
3802
- attr_accessor :street_address
3803
- # Line 2 of the street address.
3804
- attr_accessor :street_address2
3805
-
3806
- def initialize(
3807
- city: nil,
3808
- country: nil,
3809
- postal_code: nil,
3810
- region: nil,
3811
- street_address: nil,
3812
- street_address2: nil
3813
- )
3814
- @city = city
3815
- @country = country
3816
- @postal_code = postal_code
3817
- @region = region
3818
- @street_address = street_address
3819
- @street_address2 = street_address2
3820
- end
3821
- end
3822
- # Address of the departure location.
3823
- attr_accessor :address
3824
- # Timestamp of departure.
3825
- attr_accessor :departs_at
3826
- # Identifier name or reference for the origin location.
3827
- attr_accessor :departure_location
3828
-
3829
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3830
- @address = address
3831
- @departs_at = departs_at
3832
- @departure_location = departure_location
3833
- end
3834
- end
3835
-
3836
- class Insurance < ::Stripe::RequestParams
3837
- # Insurance currency.
3838
- attr_accessor :currency
3839
- # Name of the company providing the insurance.
3840
- attr_accessor :insurance_company_name
3841
- # Type of insurance.
3842
- attr_accessor :insurance_type
3843
- # Price of insurance in cents.
3844
- attr_accessor :price
3845
-
3846
- def initialize(
3847
- currency: nil,
3848
- insurance_company_name: nil,
3849
- insurance_type: nil,
3850
- price: nil
3851
- )
3852
- @currency = currency
3853
- @insurance_company_name = insurance_company_name
3854
- @insurance_type = insurance_type
3855
- @price = price
3856
- end
3857
- end
3858
-
3859
- class Passenger < ::Stripe::RequestParams
3860
- # The family name of the person.
3861
- attr_accessor :family_name
3862
- # The given name of the person.
3863
- attr_accessor :given_name
3864
-
3865
- def initialize(family_name: nil, given_name: nil)
3866
- @family_name = family_name
3867
- @given_name = given_name
3868
- end
3869
- end
3870
- # Name of associated or partner company for the service.
3871
- attr_accessor :affiliate_name
3872
- # Arrival details.
3873
- attr_accessor :arrival
3874
- # Name of transportation company.
3875
- attr_accessor :carrier_name
3876
- # Currency.
3877
- attr_accessor :currency
3878
- # Departure details.
3879
- attr_accessor :departure
3880
- # List of insurances for this reservation.
3881
- attr_accessor :insurances
3882
- # List of passengers that this reservation applies to.
3883
- attr_accessor :passengers
3884
- # Price in cents.
3885
- attr_accessor :price
3886
- # Ticket class.
3887
- attr_accessor :ticket_class
3888
-
3889
- def initialize(
3890
- affiliate_name: nil,
3891
- arrival: nil,
3892
- carrier_name: nil,
3893
- currency: nil,
3894
- departure: nil,
3895
- insurances: nil,
3896
- passengers: nil,
3897
- price: nil,
3898
- ticket_class: nil
3899
- )
3900
- @affiliate_name = affiliate_name
3901
- @arrival = arrival
3902
- @carrier_name = carrier_name
3903
- @currency = currency
3904
- @departure = departure
3905
- @insurances = insurances
3906
- @passengers = passengers
3907
- @price = price
3908
- @ticket_class = ticket_class
3909
- end
3910
- end
3911
-
3912
- class Insurance < ::Stripe::RequestParams
3913
- # Insurance currency.
3914
- attr_accessor :currency
3915
- # Name of the company providing the insurance.
3916
- attr_accessor :insurance_company_name
3917
- # Type of insurance
3918
- attr_accessor :insurance_type
3919
- # Price of insurance in cents.
3920
- attr_accessor :price
3921
-
3922
- def initialize(
3923
- currency: nil,
3924
- insurance_company_name: nil,
3925
- insurance_type: nil,
3926
- price: nil
3927
- )
3928
- @currency = currency
3929
- @insurance_company_name = insurance_company_name
3930
- @insurance_type = insurance_type
3931
- @price = price
3932
- end
3933
- end
3934
-
3935
- class MarketplaceSeller < ::Stripe::RequestParams
3936
- class MarketplaceSellerAddress < ::Stripe::RequestParams
3937
- # The city or town.
3938
- attr_accessor :city
3939
- # The country in ISO 3166-1 alpha-2 format.
3940
- attr_accessor :country
3941
- # The postal code formatted according to country.
3942
- attr_accessor :postal_code
3943
- # The state, county, province, or region formatted according to country.
3944
- attr_accessor :region
3945
- # Line 1 of the street address.
3946
- attr_accessor :street_address
3947
- # Line 2 of the street address.
3948
- attr_accessor :street_address2
3949
-
3950
- def initialize(
3951
- city: nil,
3952
- country: nil,
3953
- postal_code: nil,
3954
- region: nil,
3955
- street_address: nil,
3956
- street_address2: nil
3957
- )
3958
- @city = city
3959
- @country = country
3960
- @postal_code = postal_code
3961
- @region = region
3962
- @street_address = street_address
3963
- @street_address2 = street_address2
3964
- end
3965
- end
3966
- # The references to line items for purchases with multiple associated sub-sellers.
3967
- attr_accessor :line_item_references
3968
- # The address of the selling or delivering merchant.
3969
- attr_accessor :marketplace_seller_address
3970
- # The name of the marketplace seller.
3971
- attr_accessor :marketplace_seller_name
3972
- # The unique identifier for the marketplace seller.
3973
- attr_accessor :marketplace_seller_reference
3974
- # The number of transactions the sub-seller completed in the last 12 months.
3975
- attr_accessor :number_of_transactions
3976
- # The category of the product.
3977
- attr_accessor :product_category
3978
- # The date when the seller's account with the marketplace was last logged in.
3979
- attr_accessor :seller_last_login_at
3980
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3981
- attr_accessor :seller_rating
3982
- # The date when the seller's account with the marketplace was created.
3983
- attr_accessor :seller_registered_at
3984
- # The date when the seller's account with the marketplace was last updated.
3985
- attr_accessor :seller_updated_at
3986
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
3987
- attr_accessor :shipping_references
3988
- # 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.
3989
- attr_accessor :volume_of_transactions
3990
-
3991
- def initialize(
3992
- line_item_references: nil,
3993
- marketplace_seller_address: nil,
3994
- marketplace_seller_name: nil,
3995
- marketplace_seller_reference: nil,
3996
- number_of_transactions: nil,
3997
- product_category: nil,
3998
- seller_last_login_at: nil,
3999
- seller_rating: nil,
4000
- seller_registered_at: nil,
4001
- seller_updated_at: nil,
4002
- shipping_references: nil,
4003
- volume_of_transactions: nil
4004
- )
4005
- @line_item_references = line_item_references
4006
- @marketplace_seller_address = marketplace_seller_address
4007
- @marketplace_seller_name = marketplace_seller_name
4008
- @marketplace_seller_reference = marketplace_seller_reference
4009
- @number_of_transactions = number_of_transactions
4010
- @product_category = product_category
4011
- @seller_last_login_at = seller_last_login_at
4012
- @seller_rating = seller_rating
4013
- @seller_registered_at = seller_registered_at
4014
- @seller_updated_at = seller_updated_at
4015
- @shipping_references = shipping_references
4016
- @volume_of_transactions = volume_of_transactions
4017
- end
4018
- end
4019
-
4020
- class RoundTripReservationDetail < ::Stripe::RequestParams
4021
- class Arrival < ::Stripe::RequestParams
4022
- class Address < ::Stripe::RequestParams
4023
- # The city or town.
4024
- attr_accessor :city
4025
- # The country in ISO 3166-1 alpha-2 format.
4026
- attr_accessor :country
4027
- # The postal code formatted according to country.
4028
- attr_accessor :postal_code
4029
- # The state, county, province, or region formatted according to country.
4030
- attr_accessor :region
4031
- # Line 1 of the street address.
4032
- attr_accessor :street_address
4033
- # Line 2 of the street address.
4034
- attr_accessor :street_address2
4035
-
4036
- def initialize(
4037
- city: nil,
4038
- country: nil,
4039
- postal_code: nil,
4040
- region: nil,
4041
- street_address: nil,
4042
- street_address2: nil
4043
- )
4044
- @city = city
4045
- @country = country
4046
- @postal_code = postal_code
4047
- @region = region
4048
- @street_address = street_address
4049
- @street_address2 = street_address2
4050
- end
4051
- end
4052
- # Address of the arrival location.
4053
- attr_accessor :address
4054
- # Identifier name or reference for the arrival location.
4055
- attr_accessor :arrival_location
4056
-
4057
- def initialize(address: nil, arrival_location: nil)
4058
- @address = address
4059
- @arrival_location = arrival_location
4060
- end
4061
- end
4062
-
4063
- class Departure < ::Stripe::RequestParams
4064
- class Address < ::Stripe::RequestParams
4065
- # The city or town.
4066
- attr_accessor :city
4067
- # The country in ISO 3166-1 alpha-2 format.
4068
- attr_accessor :country
4069
- # The postal code formatted according to country.
4070
- attr_accessor :postal_code
4071
- # The state, county, province, or region formatted according to country.
4072
- attr_accessor :region
4073
- # Line 1 of the street address.
4074
- attr_accessor :street_address
4075
- # Line 2 of the street address.
4076
- attr_accessor :street_address2
4077
-
4078
- def initialize(
4079
- city: nil,
4080
- country: nil,
4081
- postal_code: nil,
4082
- region: nil,
4083
- street_address: nil,
4084
- street_address2: nil
4085
- )
4086
- @city = city
4087
- @country = country
4088
- @postal_code = postal_code
4089
- @region = region
4090
- @street_address = street_address
4091
- @street_address2 = street_address2
4092
- end
4093
- end
4094
- # Address of the departure location.
4095
- attr_accessor :address
4096
- # Timestamp of departure.
4097
- attr_accessor :departs_at
4098
- # Identifier name or reference for the origin location.
4099
- attr_accessor :departure_location
4100
-
4101
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4102
- @address = address
4103
- @departs_at = departs_at
4104
- @departure_location = departure_location
4105
- end
4106
- end
4107
-
4108
- class Insurance < ::Stripe::RequestParams
4109
- # Insurance currency.
4110
- attr_accessor :currency
4111
- # Name of the company providing the insurance.
4112
- attr_accessor :insurance_company_name
4113
- # Type of insurance.
4114
- attr_accessor :insurance_type
4115
- # Price of insurance in cents.
4116
- attr_accessor :price
4117
-
4118
- def initialize(
4119
- currency: nil,
4120
- insurance_company_name: nil,
4121
- insurance_type: nil,
4122
- price: nil
4123
- )
4124
- @currency = currency
4125
- @insurance_company_name = insurance_company_name
4126
- @insurance_type = insurance_type
4127
- @price = price
4128
- end
4129
- end
4130
-
4131
- class Passenger < ::Stripe::RequestParams
4132
- # The family name of the person.
4133
- attr_accessor :family_name
4134
- # The given name of the person.
4135
- attr_accessor :given_name
4136
-
4137
- def initialize(family_name: nil, given_name: nil)
4138
- @family_name = family_name
4139
- @given_name = given_name
4140
- end
4141
- end
4142
- # Name of associated or partner company for the service.
4143
- attr_accessor :affiliate_name
4144
- # Arrival details.
4145
- attr_accessor :arrival
4146
- # Name of transportation company.
4147
- attr_accessor :carrier_name
4148
- # Currency.
4149
- attr_accessor :currency
4150
- # Departure details.
4151
- attr_accessor :departure
4152
- # List of insurances for this reservation.
4153
- attr_accessor :insurances
4154
- # List of passengers that this reservation applies to.
4155
- attr_accessor :passengers
4156
- # Price in cents.
4157
- attr_accessor :price
4158
- # Ticket class.
4159
- attr_accessor :ticket_class
4160
-
4161
- def initialize(
4162
- affiliate_name: nil,
4163
- arrival: nil,
4164
- carrier_name: nil,
4165
- currency: nil,
4166
- departure: nil,
4167
- insurances: nil,
4168
- passengers: nil,
4169
- price: nil,
4170
- ticket_class: nil
4171
- )
4172
- @affiliate_name = affiliate_name
4173
- @arrival = arrival
4174
- @carrier_name = carrier_name
4175
- @currency = currency
4176
- @departure = departure
4177
- @insurances = insurances
4178
- @passengers = passengers
4179
- @price = price
4180
- @ticket_class = ticket_class
4181
- end
4182
- end
4183
-
4184
- class TrainReservationDetail < ::Stripe::RequestParams
4185
- class Arrival < ::Stripe::RequestParams
4186
- class Address < ::Stripe::RequestParams
4187
- # The city or town.
4188
- attr_accessor :city
4189
- # The country in ISO 3166-1 alpha-2 format.
4190
- attr_accessor :country
4191
- # The postal code formatted according to country.
4192
- attr_accessor :postal_code
4193
- # The state, county, province, or region formatted according to country.
4194
- attr_accessor :region
4195
- # Line 1 of the street address.
4196
- attr_accessor :street_address
4197
- # Line 2 of the street address.
4198
- attr_accessor :street_address2
4199
-
4200
- def initialize(
4201
- city: nil,
4202
- country: nil,
4203
- postal_code: nil,
4204
- region: nil,
4205
- street_address: nil,
4206
- street_address2: nil
4207
- )
4208
- @city = city
4209
- @country = country
4210
- @postal_code = postal_code
4211
- @region = region
4212
- @street_address = street_address
4213
- @street_address2 = street_address2
4214
- end
4215
- end
4216
- # Address of the arrival location.
4217
- attr_accessor :address
4218
- # Identifier name or reference for the arrival location.
4219
- attr_accessor :arrival_location
4220
-
4221
- def initialize(address: nil, arrival_location: nil)
4222
- @address = address
4223
- @arrival_location = arrival_location
4224
- end
4225
- end
4226
-
4227
- class Departure < ::Stripe::RequestParams
4228
- class Address < ::Stripe::RequestParams
4229
- # The city or town.
4230
- attr_accessor :city
4231
- # The country in ISO 3166-1 alpha-2 format.
4232
- attr_accessor :country
4233
- # The postal code formatted according to country.
4234
- attr_accessor :postal_code
4235
- # The state, county, province, or region formatted according to country.
4236
- attr_accessor :region
4237
- # Line 1 of the street address.
4238
- attr_accessor :street_address
4239
- # Line 2 of the street address.
4240
- attr_accessor :street_address2
4241
-
4242
- def initialize(
4243
- city: nil,
4244
- country: nil,
4245
- postal_code: nil,
4246
- region: nil,
4247
- street_address: nil,
4248
- street_address2: nil
4249
- )
4250
- @city = city
4251
- @country = country
4252
- @postal_code = postal_code
4253
- @region = region
4254
- @street_address = street_address
4255
- @street_address2 = street_address2
4256
- end
4257
- end
4258
- # Address of the departure location.
4259
- attr_accessor :address
4260
- # Timestamp of departure.
4261
- attr_accessor :departs_at
4262
- # Identifier name or reference for the origin location.
4263
- attr_accessor :departure_location
4264
-
4265
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4266
- @address = address
4267
- @departs_at = departs_at
4268
- @departure_location = departure_location
4269
- end
4270
- end
4271
-
4272
- class Insurance < ::Stripe::RequestParams
4273
- # Insurance currency.
4274
- attr_accessor :currency
4275
- # Name of the company providing the insurance.
4276
- attr_accessor :insurance_company_name
4277
- # Type of insurance.
4278
- attr_accessor :insurance_type
4279
- # Price of insurance in cents.
4280
- attr_accessor :price
4281
-
4282
- def initialize(
4283
- currency: nil,
4284
- insurance_company_name: nil,
4285
- insurance_type: nil,
4286
- price: nil
4287
- )
4288
- @currency = currency
4289
- @insurance_company_name = insurance_company_name
4290
- @insurance_type = insurance_type
4291
- @price = price
4292
- end
4293
- end
4294
-
4295
- class Passenger < ::Stripe::RequestParams
4296
- # The family name of the person.
4297
- attr_accessor :family_name
4298
- # The given name of the person.
4299
- attr_accessor :given_name
4300
-
4301
- def initialize(family_name: nil, given_name: nil)
4302
- @family_name = family_name
4303
- @given_name = given_name
4304
- end
4305
- end
4306
- # Name of associated or partner company for the service.
4307
- attr_accessor :affiliate_name
4308
- # Arrival details.
4309
- attr_accessor :arrival
4310
- # Name of transportation company.
4311
- attr_accessor :carrier_name
4312
- # Currency.
4313
- attr_accessor :currency
4314
- # Departure details.
4315
- attr_accessor :departure
4316
- # List of insurances for this reservation.
4317
- attr_accessor :insurances
4318
- # List of passengers that this reservation applies to.
4319
- attr_accessor :passengers
4320
- # Price in cents.
4321
- attr_accessor :price
4322
- # Ticket class.
4323
- attr_accessor :ticket_class
4324
-
4325
- def initialize(
4326
- affiliate_name: nil,
4327
- arrival: nil,
4328
- carrier_name: nil,
4329
- currency: nil,
4330
- departure: nil,
4331
- insurances: nil,
4332
- passengers: nil,
4333
- price: nil,
4334
- ticket_class: nil
4335
- )
4336
- @affiliate_name = affiliate_name
4337
- @arrival = arrival
4338
- @carrier_name = carrier_name
4339
- @currency = currency
4340
- @departure = departure
4341
- @insurances = insurances
4342
- @passengers = passengers
4343
- @price = price
4344
- @ticket_class = ticket_class
4345
- end
4346
- end
4347
-
4348
- class Voucher < ::Stripe::RequestParams
4349
- # Name of associated or partner company for this voucher.
4350
- attr_accessor :affiliate_name
4351
- # The voucher validity end time.
4352
- attr_accessor :ends_at
4353
- # The voucher validity start time.
4354
- attr_accessor :starts_at
4355
- # The issuer or provider of this voucher.
4356
- attr_accessor :voucher_company
4357
- # The name or reference to identify the voucher.
4358
- attr_accessor :voucher_name
4359
- # The type of this voucher.
4360
- attr_accessor :voucher_type
4361
-
4362
- def initialize(
4363
- affiliate_name: nil,
4364
- ends_at: nil,
4365
- starts_at: nil,
4366
- voucher_company: nil,
4367
- voucher_name: nil,
4368
- voucher_type: nil
4369
- )
4370
- @affiliate_name = affiliate_name
4371
- @ends_at = ends_at
4372
- @starts_at = starts_at
4373
- @voucher_company = voucher_company
4374
- @voucher_name = voucher_name
4375
- @voucher_type = voucher_type
4376
- end
4377
- end
4378
- # Supplementary bus reservation details.
4379
- attr_accessor :bus_reservation_details
4380
- # Supplementary event reservation details.
4381
- attr_accessor :event_reservation_details
4382
- # Supplementary ferry reservation details.
4383
- attr_accessor :ferry_reservation_details
4384
- # Supplementary insurance details.
4385
- attr_accessor :insurances
4386
- # Supplementary marketplace seller details.
4387
- attr_accessor :marketplace_sellers
4388
- # Supplementary round trip reservation details.
4389
- attr_accessor :round_trip_reservation_details
4390
- # Supplementary train reservation details.
4391
- attr_accessor :train_reservation_details
4392
- # Voucher details, such as a gift card or discount code.
4393
- attr_accessor :vouchers
4394
-
4395
- def initialize(
4396
- bus_reservation_details: nil,
4397
- event_reservation_details: nil,
4398
- ferry_reservation_details: nil,
4399
- insurances: nil,
4400
- marketplace_sellers: nil,
4401
- round_trip_reservation_details: nil,
4402
- train_reservation_details: nil,
4403
- vouchers: nil
4404
- )
4405
- @bus_reservation_details = bus_reservation_details
4406
- @event_reservation_details = event_reservation_details
4407
- @ferry_reservation_details = ferry_reservation_details
4408
- @insurances = insurances
4409
- @marketplace_sellers = marketplace_sellers
4410
- @round_trip_reservation_details = round_trip_reservation_details
4411
- @train_reservation_details = train_reservation_details
4412
- @vouchers = vouchers
4413
- end
4414
- end
4415
1680
  # Controls when the funds are captured from the customer's account.
4416
1681
  #
4417
1682
  # 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.
@@ -4434,23 +1699,19 @@ module Stripe
4434
1699
  attr_accessor :setup_future_usage
4435
1700
  # Subscription details if setting up or charging a subscription.
4436
1701
  attr_accessor :subscriptions
4437
- # Supplementary Purchase Data for the corresponding Klarna payment
4438
- attr_accessor :supplementary_purchase_data
4439
1702
 
4440
1703
  def initialize(
4441
1704
  capture_method: nil,
4442
1705
  on_demand: nil,
4443
1706
  preferred_locale: nil,
4444
1707
  setup_future_usage: nil,
4445
- subscriptions: nil,
4446
- supplementary_purchase_data: nil
1708
+ subscriptions: nil
4447
1709
  )
4448
1710
  @capture_method = capture_method
4449
1711
  @on_demand = on_demand
4450
1712
  @preferred_locale = preferred_locale
4451
1713
  @setup_future_usage = setup_future_usage
4452
1714
  @subscriptions = subscriptions
4453
- @supplementary_purchase_data = supplementary_purchase_data
4454
1715
  end
4455
1716
  end
4456
1717
 
@@ -4711,65 +1972,12 @@ module Stripe
4711
1972
  end
4712
1973
 
4713
1974
  class Paypal < ::Stripe::RequestParams
4714
- class LineItem < ::Stripe::RequestParams
4715
- class Tax < ::Stripe::RequestParams
4716
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4717
- attr_accessor :amount
4718
- # The tax behavior for the line item.
4719
- attr_accessor :behavior
4720
-
4721
- def initialize(amount: nil, behavior: nil)
4722
- @amount = amount
4723
- @behavior = behavior
4724
- end
4725
- end
4726
- # Type of the line item.
4727
- attr_accessor :category
4728
- # Description of the line item.
4729
- attr_accessor :description
4730
- # Descriptive name of the line item.
4731
- attr_accessor :name
4732
- # Quantity of the line item. Must be a positive number.
4733
- attr_accessor :quantity
4734
- # Client facing stock keeping unit, article number or similar.
4735
- attr_accessor :sku
4736
- # The Stripe account ID of the connected account that sells the item.
4737
- attr_accessor :sold_by
4738
- # The tax information for the line item.
4739
- attr_accessor :tax
4740
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
4741
- attr_accessor :unit_amount
4742
-
4743
- def initialize(
4744
- category: nil,
4745
- description: nil,
4746
- name: nil,
4747
- quantity: nil,
4748
- sku: nil,
4749
- sold_by: nil,
4750
- tax: nil,
4751
- unit_amount: nil
4752
- )
4753
- @category = category
4754
- @description = description
4755
- @name = name
4756
- @quantity = quantity
4757
- @sku = sku
4758
- @sold_by = sold_by
4759
- @tax = tax
4760
- @unit_amount = unit_amount
4761
- end
4762
- end
4763
1975
  # Controls when the funds will be captured from the customer's account.
4764
1976
  attr_accessor :capture_method
4765
- # The line items purchased by the customer.
4766
- attr_accessor :line_items
4767
1977
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
4768
1978
  attr_accessor :preferred_locale
4769
1979
  # 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.
4770
1980
  attr_accessor :reference
4771
- # 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.
4772
- attr_accessor :reference_id
4773
1981
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
4774
1982
  attr_accessor :risk_correlation_id
4775
1983
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -4782,40 +1990,19 @@ module Stripe
4782
1990
  #
4783
1991
  # 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`.
4784
1992
  attr_accessor :setup_future_usage
4785
- # 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.
4786
- attr_accessor :subsellers
4787
1993
 
4788
1994
  def initialize(
4789
1995
  capture_method: nil,
4790
- line_items: nil,
4791
1996
  preferred_locale: nil,
4792
1997
  reference: nil,
4793
- reference_id: nil,
4794
1998
  risk_correlation_id: nil,
4795
- setup_future_usage: nil,
4796
- subsellers: nil
1999
+ setup_future_usage: nil
4797
2000
  )
4798
2001
  @capture_method = capture_method
4799
- @line_items = line_items
4800
2002
  @preferred_locale = preferred_locale
4801
2003
  @reference = reference
4802
- @reference_id = reference_id
4803
2004
  @risk_correlation_id = risk_correlation_id
4804
2005
  @setup_future_usage = setup_future_usage
4805
- @subsellers = subsellers
4806
- end
4807
- end
4808
-
4809
- class Paypay < ::Stripe::RequestParams
4810
- # Controls when the funds are captured from the customer's account.
4811
- #
4812
- # 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.
4813
- #
4814
- # 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.
4815
- attr_accessor :capture_method
4816
-
4817
- def initialize(capture_method: nil)
4818
- @capture_method = capture_method
4819
2006
  end
4820
2007
  end
4821
2008
 
@@ -4957,25 +2144,6 @@ module Stripe
4957
2144
  end
4958
2145
  end
4959
2146
 
4960
- class Qris < ::Stripe::RequestParams
4961
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4962
- #
4963
- # 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.
4964
- #
4965
- # 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.
4966
- #
4967
- # 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).
4968
- #
4969
- # 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`.
4970
- attr_accessor :setup_future_usage
4971
-
4972
- def initialize(setup_future_usage: nil)
4973
- @setup_future_usage = setup_future_usage
4974
- end
4975
- end
4976
-
4977
- class Rechnung < ::Stripe::RequestParams; end
4978
-
4979
2147
  class RevolutPay < ::Stripe::RequestParams
4980
2148
  # Controls when the funds are captured from the customer's account.
4981
2149
  #
@@ -5024,6 +2192,19 @@ module Stripe
5024
2192
  end
5025
2193
  end
5026
2194
 
2195
+ class Scalapay < ::Stripe::RequestParams
2196
+ # Controls when the funds are captured from the customer's account.
2197
+ #
2198
+ # 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.
2199
+ #
2200
+ # 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.
2201
+ attr_accessor :capture_method
2202
+
2203
+ def initialize(capture_method: nil)
2204
+ @capture_method = capture_method
2205
+ end
2206
+ end
2207
+
5027
2208
  class SepaDebit < ::Stripe::RequestParams
5028
2209
  class MandateOptions < ::Stripe::RequestParams
5029
2210
  # 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'.
@@ -5055,23 +2236,6 @@ module Stripe
5055
2236
  end
5056
2237
  end
5057
2238
 
5058
- class Shopeepay < ::Stripe::RequestParams
5059
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5060
- #
5061
- # 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.
5062
- #
5063
- # 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.
5064
- #
5065
- # 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).
5066
- #
5067
- # 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`.
5068
- attr_accessor :setup_future_usage
5069
-
5070
- def initialize(setup_future_usage: nil)
5071
- @setup_future_usage = setup_future_usage
5072
- end
5073
- end
5074
-
5075
2239
  class Sofort < ::Stripe::RequestParams
5076
2240
  # Language shown to the payer on redirect.
5077
2241
  attr_accessor :preferred_language
@@ -5092,23 +2256,6 @@ module Stripe
5092
2256
  end
5093
2257
  end
5094
2258
 
5095
- class StripeBalance < ::Stripe::RequestParams
5096
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5097
- #
5098
- # 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.
5099
- #
5100
- # 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.
5101
- #
5102
- # 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).
5103
- #
5104
- # 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`.
5105
- attr_accessor :setup_future_usage
5106
-
5107
- def initialize(setup_future_usage: nil)
5108
- @setup_future_usage = setup_future_usage
5109
- end
5110
- end
5111
-
5112
2259
  class Swish < ::Stripe::RequestParams
5113
2260
  # A reference for this payment to be displayed in the Swish app.
5114
2261
  attr_accessor :reference
@@ -5180,27 +2327,13 @@ module Stripe
5180
2327
  class Filters < ::Stripe::RequestParams
5181
2328
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
5182
2329
  attr_accessor :account_subcategories
5183
- # ID of the institution to use to filter for selectable accounts.
5184
- attr_accessor :institution
5185
2330
 
5186
- def initialize(account_subcategories: nil, institution: nil)
2331
+ def initialize(account_subcategories: nil)
5187
2332
  @account_subcategories = account_subcategories
5188
- @institution = institution
5189
- end
5190
- end
5191
-
5192
- class ManualEntry < ::Stripe::RequestParams
5193
- # Settings for configuring manual entry of account details.
5194
- attr_accessor :mode
5195
-
5196
- def initialize(mode: nil)
5197
- @mode = mode
5198
2333
  end
5199
2334
  end
5200
2335
  # Provide filters for the linked accounts that the customer can select for the payment method.
5201
2336
  attr_accessor :filters
5202
- # Customize manual entry behavior
5203
- attr_accessor :manual_entry
5204
2337
  # 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`.
5205
2338
  attr_accessor :permissions
5206
2339
  # List of data features that you would like to retrieve upon account creation.
@@ -5208,15 +2341,8 @@ module Stripe
5208
2341
  # 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.
5209
2342
  attr_accessor :return_url
5210
2343
 
5211
- def initialize(
5212
- filters: nil,
5213
- manual_entry: nil,
5214
- permissions: nil,
5215
- prefetch: nil,
5216
- return_url: nil
5217
- )
2344
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5218
2345
  @filters = filters
5219
- @manual_entry = manual_entry
5220
2346
  @permissions = permissions
5221
2347
  @prefetch = prefetch
5222
2348
  @return_url = return_url
@@ -5341,6 +2467,8 @@ module Stripe
5341
2467
  attr_accessor :bancontact
5342
2468
  # If this is a `billie` PaymentMethod, this sub-hash contains details about the Billie payment method options.
5343
2469
  attr_accessor :billie
2470
+ # If this is a `bizum` PaymentMethod, this sub-hash contains details about the Bizum payment method options.
2471
+ attr_accessor :bizum
5344
2472
  # If this is a `blik` PaymentMethod, this sub-hash contains details about the BLIK payment method options.
5345
2473
  attr_accessor :blik
5346
2474
  # If this is a `boleto` PaymentMethod, this sub-hash contains details about the Boleto payment method options.
@@ -5361,12 +2489,8 @@ module Stripe
5361
2489
  attr_accessor :fpx
5362
2490
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
5363
2491
  attr_accessor :giropay
5364
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5365
- attr_accessor :gopay
5366
2492
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
5367
2493
  attr_accessor :grabpay
5368
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5369
- attr_accessor :id_bank_transfer
5370
2494
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
5371
2495
  attr_accessor :ideal
5372
2496
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -5379,7 +2503,7 @@ module Stripe
5379
2503
  attr_accessor :konbini
5380
2504
  # If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options.
5381
2505
  attr_accessor :kr_card
5382
- # If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
2506
+ # 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).
5383
2507
  attr_accessor :link
5384
2508
  # If this is a `mb_way` PaymentMethod, this sub-hash contains details about the MB WAY payment method options.
5385
2509
  attr_accessor :mb_way
@@ -5403,32 +2527,24 @@ module Stripe
5403
2527
  attr_accessor :paynow
5404
2528
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
5405
2529
  attr_accessor :paypal
5406
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5407
- attr_accessor :paypay
5408
2530
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5409
2531
  attr_accessor :payto
5410
2532
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
5411
2533
  attr_accessor :pix
5412
2534
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
5413
2535
  attr_accessor :promptpay
5414
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5415
- attr_accessor :qris
5416
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5417
- attr_accessor :rechnung
5418
2536
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
5419
2537
  attr_accessor :revolut_pay
5420
2538
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
5421
2539
  attr_accessor :samsung_pay
5422
2540
  # If this is a `satispay` PaymentMethod, this sub-hash contains details about the Satispay payment method options.
5423
2541
  attr_accessor :satispay
2542
+ # If this is a `scalapay` PaymentMethod, this sub-hash contains details about the ScalaPay payment method options.
2543
+ attr_accessor :scalapay
5424
2544
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5425
2545
  attr_accessor :sepa_debit
5426
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5427
- attr_accessor :shopeepay
5428
2546
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
5429
2547
  attr_accessor :sofort
5430
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5431
- attr_accessor :stripe_balance
5432
2548
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
5433
2549
  attr_accessor :swish
5434
2550
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -5453,6 +2569,7 @@ module Stripe
5453
2569
  bacs_debit: nil,
5454
2570
  bancontact: nil,
5455
2571
  billie: nil,
2572
+ bizum: nil,
5456
2573
  blik: nil,
5457
2574
  boleto: nil,
5458
2575
  card: nil,
@@ -5463,9 +2580,7 @@ module Stripe
5463
2580
  eps: nil,
5464
2581
  fpx: nil,
5465
2582
  giropay: nil,
5466
- gopay: nil,
5467
2583
  grabpay: nil,
5468
- id_bank_transfer: nil,
5469
2584
  ideal: nil,
5470
2585
  interac_present: nil,
5471
2586
  kakao_pay: nil,
@@ -5484,19 +2599,15 @@ module Stripe
5484
2599
  payco: nil,
5485
2600
  paynow: nil,
5486
2601
  paypal: nil,
5487
- paypay: nil,
5488
2602
  payto: nil,
5489
2603
  pix: nil,
5490
2604
  promptpay: nil,
5491
- qris: nil,
5492
- rechnung: nil,
5493
2605
  revolut_pay: nil,
5494
2606
  samsung_pay: nil,
5495
2607
  satispay: nil,
2608
+ scalapay: nil,
5496
2609
  sepa_debit: nil,
5497
- shopeepay: nil,
5498
2610
  sofort: nil,
5499
- stripe_balance: nil,
5500
2611
  swish: nil,
5501
2612
  twint: nil,
5502
2613
  upi: nil,
@@ -5514,6 +2625,7 @@ module Stripe
5514
2625
  @bacs_debit = bacs_debit
5515
2626
  @bancontact = bancontact
5516
2627
  @billie = billie
2628
+ @bizum = bizum
5517
2629
  @blik = blik
5518
2630
  @boleto = boleto
5519
2631
  @card = card
@@ -5524,9 +2636,7 @@ module Stripe
5524
2636
  @eps = eps
5525
2637
  @fpx = fpx
5526
2638
  @giropay = giropay
5527
- @gopay = gopay
5528
2639
  @grabpay = grabpay
5529
- @id_bank_transfer = id_bank_transfer
5530
2640
  @ideal = ideal
5531
2641
  @interac_present = interac_present
5532
2642
  @kakao_pay = kakao_pay
@@ -5545,19 +2655,15 @@ module Stripe
5545
2655
  @payco = payco
5546
2656
  @paynow = paynow
5547
2657
  @paypal = paypal
5548
- @paypay = paypay
5549
2658
  @payto = payto
5550
2659
  @pix = pix
5551
2660
  @promptpay = promptpay
5552
- @qris = qris
5553
- @rechnung = rechnung
5554
2661
  @revolut_pay = revolut_pay
5555
2662
  @samsung_pay = samsung_pay
5556
2663
  @satispay = satispay
2664
+ @scalapay = scalapay
5557
2665
  @sepa_debit = sepa_debit
5558
- @shopeepay = shopeepay
5559
2666
  @sofort = sofort
5560
- @stripe_balance = stripe_balance
5561
2667
  @swish = swish
5562
2668
  @twint = twint
5563
2669
  @upi = upi
@@ -5630,8 +2736,6 @@ module Stripe
5630
2736
  attr_accessor :amount_details
5631
2737
  # Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
5632
2738
  attr_accessor :amount_to_confirm
5633
- # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5634
- attr_accessor :application_fee_amount
5635
2739
  # Controls when the funds will be captured from the customer's account.
5636
2740
  attr_accessor :capture_method
5637
2741
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -5644,15 +2748,13 @@ module Stripe
5644
2748
  attr_accessor :excluded_payment_method_types
5645
2749
  # Specifies which fields in the response should be expanded.
5646
2750
  attr_accessor :expand
5647
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5648
- attr_accessor :fx_quote
5649
2751
  # Automations to be run during the PaymentIntent lifecycle
5650
2752
  attr_accessor :hooks
5651
2753
  # ID of the mandate that's used for this payment.
5652
2754
  attr_accessor :mandate
5653
2755
  # Attribute for param field mandate_data
5654
2756
  attr_accessor :mandate_data
5655
- # 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).
2757
+ # 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).
5656
2758
  attr_accessor :off_session
5657
2759
  # Provides industry-specific information about the charge.
5658
2760
  attr_accessor :payment_details
@@ -5693,13 +2795,11 @@ module Stripe
5693
2795
  def initialize(
5694
2796
  amount_details: nil,
5695
2797
  amount_to_confirm: nil,
5696
- application_fee_amount: nil,
5697
2798
  capture_method: nil,
5698
2799
  confirmation_token: nil,
5699
2800
  error_on_requires_action: nil,
5700
2801
  excluded_payment_method_types: nil,
5701
2802
  expand: nil,
5702
- fx_quote: nil,
5703
2803
  hooks: nil,
5704
2804
  mandate: nil,
5705
2805
  mandate_data: nil,
@@ -5718,13 +2818,11 @@ module Stripe
5718
2818
  )
5719
2819
  @amount_details = amount_details
5720
2820
  @amount_to_confirm = amount_to_confirm
5721
- @application_fee_amount = application_fee_amount
5722
2821
  @capture_method = capture_method
5723
2822
  @confirmation_token = confirmation_token
5724
2823
  @error_on_requires_action = error_on_requires_action
5725
2824
  @excluded_payment_method_types = excluded_payment_method_types
5726
2825
  @expand = expand
5727
- @fx_quote = fx_quote
5728
2826
  @hooks = hooks
5729
2827
  @mandate = mandate
5730
2828
  @mandate_data = mandate_data