stripe 19.3.0.pre.beta.1 → 19.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +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/events/unknown_event_notification.rb +0 -1
  7. data/lib/stripe/object_types.rb +0 -61
  8. data/lib/stripe/params/account_create_params.rb +2 -375
  9. data/lib/stripe/params/account_session_create_params.rb +1 -226
  10. data/lib/stripe/params/account_update_params.rb +1 -337
  11. data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
  12. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
  13. data/lib/stripe/params/billing/credit_grant_create_params.rb +1 -1
  14. data/lib/stripe/params/charge_capture_params.rb +0 -1646
  15. data/lib/stripe/params/charge_update_params.rb +0 -1646
  16. data/lib/stripe/params/checkout/session_create_params.rb +50 -128
  17. data/lib/stripe/params/checkout/session_update_params.rb +1 -176
  18. data/lib/stripe/params/confirmation_token_create_params.rb +1 -79
  19. data/lib/stripe/params/coupon_create_params.rb +1 -17
  20. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  21. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  22. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  23. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  24. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  25. data/lib/stripe/params/dispute_update_params.rb +18 -11
  26. data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
  27. data/lib/stripe/params/invoice_add_lines_params.rb +2 -49
  28. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  29. data/lib/stripe/params/invoice_create_params.rb +2 -70
  30. data/lib/stripe/params/invoice_create_preview_params.rb +10 -791
  31. data/lib/stripe/params/invoice_item_create_params.rb +1 -33
  32. data/lib/stripe/params/invoice_item_update_params.rb +1 -33
  33. data/lib/stripe/params/invoice_line_item_update_params.rb +2 -49
  34. data/lib/stripe/params/invoice_update_lines_params.rb +2 -49
  35. data/lib/stripe/params/invoice_update_params.rb +2 -70
  36. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
  37. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  38. data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
  39. data/lib/stripe/params/payment_intent_confirm_params.rb +116 -3016
  40. data/lib/stripe/params/payment_intent_create_params.rb +128 -3028
  41. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
  42. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  43. data/lib/stripe/params/payment_intent_update_params.rb +86 -3017
  44. data/lib/stripe/params/payment_link_create_params.rb +1 -16
  45. data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
  46. data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
  47. data/lib/stripe/params/payment_method_create_params.rb +1 -75
  48. data/lib/stripe/params/plan_create_params.rb +0 -15
  49. data/lib/stripe/params/price_create_params.rb +0 -15
  50. data/lib/stripe/params/price_update_params.rb +0 -19
  51. data/lib/stripe/params/product_create_params.rb +0 -16
  52. data/lib/stripe/params/product_update_params.rb +0 -16
  53. data/lib/stripe/params/quote_create_params.rb +3 -809
  54. data/lib/stripe/params/quote_list_params.rb +0 -4
  55. data/lib/stripe/params/quote_update_params.rb +4 -817
  56. data/lib/stripe/params/setup_intent_confirm_params.rb +4 -109
  57. data/lib/stripe/params/setup_intent_create_params.rb +4 -109
  58. data/lib/stripe/params/setup_intent_update_params.rb +4 -109
  59. data/lib/stripe/params/subscription_create_params.rb +34 -171
  60. data/lib/stripe/params/subscription_item_create_params.rb +2 -62
  61. data/lib/stripe/params/subscription_item_update_params.rb +1 -45
  62. data/lib/stripe/params/subscription_resume_params.rb +0 -4
  63. data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
  64. data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
  65. data/lib/stripe/params/subscription_update_params.rb +34 -155
  66. data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
  67. data/lib/stripe/params/tax/registration_create_params.rb +0 -104
  68. data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
  69. data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
  70. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -79
  71. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
  72. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
  73. data/lib/stripe/params/topup_create_params.rb +24 -0
  74. data/lib/stripe/params/transfer_create_params.rb +0 -4
  75. data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
  76. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  77. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  78. data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
  79. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
  80. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
  81. data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
  82. data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
  83. data/lib/stripe/params/v2/core/account_create_params.rb +18 -282
  84. data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -13
  85. data/lib/stripe/params/v2/core/account_update_params.rb +25 -282
  86. data/lib/stripe/params.rb +0 -426
  87. data/lib/stripe/resources/account.rb +1 -259
  88. data/lib/stripe/resources/account_session.rb +0 -81
  89. data/lib/stripe/resources/balance.rb +0 -83
  90. data/lib/stripe/resources/balance_transaction.rb +3 -3
  91. data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
  92. data/lib/stripe/resources/card.rb +0 -2
  93. data/lib/stripe/resources/charge.rb +7 -211
  94. data/lib/stripe/resources/checkout/session.rb +53 -75
  95. data/lib/stripe/resources/confirmation_token.rb +9 -131
  96. data/lib/stripe/resources/coupon.rb +1 -26
  97. data/lib/stripe/resources/credit_note.rb +2 -0
  98. data/lib/stripe/resources/credit_note_line_item.rb +0 -18
  99. data/lib/stripe/resources/customer_session.rb +0 -36
  100. data/lib/stripe/resources/dispute.rb +32 -22
  101. data/lib/stripe/resources/event.rb +1 -64
  102. data/lib/stripe/resources/financial_connections/account.rb +8 -33
  103. data/lib/stripe/resources/financial_connections/session.rb +1 -125
  104. data/lib/stripe/resources/invoice.rb +1 -117
  105. data/lib/stripe/resources/invoice_item.rb +0 -2
  106. data/lib/stripe/resources/invoice_line_item.rb +0 -40
  107. data/lib/stripe/resources/issuing/transaction.rb +0 -2
  108. data/lib/stripe/resources/line_item.rb +0 -42
  109. data/lib/stripe/resources/mandate.rb +0 -12
  110. data/lib/stripe/resources/payment_attempt_record.rb +3 -179
  111. data/lib/stripe/resources/payment_intent.rb +47 -1568
  112. data/lib/stripe/resources/payment_method.rb +9 -135
  113. data/lib/stripe/resources/payment_method_configuration.rb +0 -170
  114. data/lib/stripe/resources/payment_record.rb +3 -179
  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/refund.rb +0 -18
  119. data/lib/stripe/resources/reserve/hold.rb +18 -8
  120. data/lib/stripe/resources/reserve/release.rb +0 -12
  121. data/lib/stripe/resources/setup_attempt.rb +16 -35
  122. data/lib/stripe/resources/setup_intent.rb +1 -22
  123. data/lib/stripe/resources/source.rb +0 -38
  124. data/lib/stripe/resources/subscription.rb +23 -169
  125. data/lib/stripe/resources/subscription_item.rb +1 -41
  126. data/lib/stripe/resources/subscription_schedule.rb +3 -198
  127. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
  128. data/lib/stripe/resources/tax/registration.rb +0 -128
  129. data/lib/stripe/resources/tax_code.rb +1 -15
  130. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  131. data/lib/stripe/resources/terminal/reader.rb +0 -8
  132. data/lib/stripe/resources/transfer.rb +0 -2
  133. data/lib/stripe/resources/treasury/financial_account.rb +0 -2
  134. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  135. data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
  136. data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
  137. data/lib/stripe/resources/treasury/received_credit.rb +0 -30
  138. data/lib/stripe/resources/treasury/received_debit.rb +0 -32
  139. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +2 -0
  140. data/lib/stripe/resources/v2/core/account.rb +155 -717
  141. data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
  142. data/lib/stripe/resources.rb +0 -417
  143. data/lib/stripe/services/account_service.rb +0 -15
  144. data/lib/stripe/services/balance_transaction_service.rb +2 -2
  145. data/lib/stripe/services/billing_service.rb +1 -2
  146. data/lib/stripe/services/coupon_service.rb +0 -14
  147. data/lib/stripe/services/credit_note_service.rb +2 -0
  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 -11
  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 +0 -37
  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 -11
  158. data/lib/stripe/services/subscription_service.rb +1 -57
  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_service.rb +1 -3
  165. data/lib/stripe/services/v2_services.rb +1 -8
  166. data/lib/stripe/services.rb +0 -209
  167. data/lib/stripe/stripe_client.rb +1 -8
  168. data/lib/stripe/stripe_configuration.rb +1 -3
  169. data/lib/stripe/stripe_object.rb +1 -1
  170. data/lib/stripe/util.rb +1 -7
  171. data/lib/stripe/version.rb +1 -1
  172. data/lib/stripe.rb +0 -54
  173. data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -3
  174. data/rbi/stripe/stripe_client.rbi +0 -13
  175. data/rbi/stripe.rbi +52694 -118800
  176. metadata +7 -382
  177. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  178. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  179. data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
  180. data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
  181. data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
  182. data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
  183. data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
  184. data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
  185. data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
  186. data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
  187. data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
  188. data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
  189. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  190. data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
  191. data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
  192. data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
  193. data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
  194. data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
  195. data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
  196. data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
  197. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  198. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  199. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  200. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  201. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  202. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  203. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  204. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  205. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  206. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  207. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  208. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  209. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  210. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  211. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  212. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  213. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  214. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  215. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  216. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  217. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  218. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  219. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  220. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
  221. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  222. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  223. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  224. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  225. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  226. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  227. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  228. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  229. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  230. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  231. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
  232. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  233. data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
  234. data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
  235. data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
  236. data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
  237. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  238. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  239. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  240. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  241. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  242. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  243. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  244. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  245. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  246. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  247. data/lib/stripe/params/external_account_create_params.rb +0 -134
  248. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  249. data/lib/stripe/params/external_account_list_params.rb +0 -25
  250. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  251. data/lib/stripe/params/external_account_update_params.rb +0 -91
  252. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  253. data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
  254. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  255. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  256. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  257. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  258. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  259. data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
  260. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  261. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  262. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  263. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  264. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  265. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  266. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  267. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  268. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  269. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  270. data/lib/stripe/params/mandate_list_params.rb +0 -39
  271. data/lib/stripe/params/margin_create_params.rb +0 -25
  272. data/lib/stripe/params/margin_list_params.rb +0 -25
  273. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  274. data/lib/stripe/params/margin_update_params.rb +0 -22
  275. data/lib/stripe/params/order_create_params.rb +0 -2083
  276. data/lib/stripe/params/order_list_params.rb +0 -25
  277. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  278. data/lib/stripe/params/order_submit_params.rb +0 -16
  279. data/lib/stripe/params/order_update_params.rb +0 -2087
  280. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
  281. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  282. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  283. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  284. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  285. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  286. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  287. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  288. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  289. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  290. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
  291. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  292. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  293. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  294. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  295. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  296. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  297. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  298. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  299. data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
  300. data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
  301. data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
  302. data/lib/stripe/params/reserve/release_list_params.rb +0 -41
  303. data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
  304. data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
  305. data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
  306. data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
  307. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
  308. data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
  309. data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
  310. data/lib/stripe/params/subscription_pause_params.rb +0 -50
  311. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
  312. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  313. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  314. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  315. data/lib/stripe/params/tax/location_create_params.rb +0 -54
  316. data/lib/stripe/params/tax/location_list_params.rb +0 -27
  317. data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
  318. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  319. data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
  320. data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
  321. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  322. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  323. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  324. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  325. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  326. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  327. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  328. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  329. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  330. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  331. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  332. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
  333. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  334. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  335. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
  336. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  337. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  338. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  339. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  340. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  341. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  342. data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
  343. data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
  344. data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
  345. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  346. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  347. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
  348. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  349. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  350. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  351. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  352. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  353. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
  354. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  355. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  356. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  357. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  358. data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
  359. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
  360. data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
  361. data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
  362. data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
  363. data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
  364. data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
  365. data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
  366. data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
  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 -88
  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 -106
  436. data/lib/stripe/resources/quote_line.rb +0 -525
  437. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1183
  438. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -736
  439. data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1792
  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 -488
  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/data_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 -32
  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 -582
@@ -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
 
@@ -2047,18 +405,8 @@ module Stripe
2047
405
  end
2048
406
 
2049
407
  class Giropay < ::Stripe::RequestParams; end
2050
- class Gopay < ::Stripe::RequestParams; end
2051
408
  class Grabpay < ::Stripe::RequestParams; end
2052
409
 
2053
- class IdBankTransfer < ::Stripe::RequestParams
2054
- # Bank where the account is held.
2055
- attr_accessor :bank
2056
-
2057
- def initialize(bank: nil)
2058
- @bank = bank
2059
- end
2060
- end
2061
-
2062
410
  class Ideal < ::Stripe::RequestParams
2063
411
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2064
412
  attr_accessor :bank
@@ -2156,7 +504,6 @@ module Stripe
2156
504
  class Payco < ::Stripe::RequestParams; end
2157
505
  class Paynow < ::Stripe::RequestParams; end
2158
506
  class Paypal < ::Stripe::RequestParams; end
2159
- class Paypay < ::Stripe::RequestParams; end
2160
507
 
2161
508
  class Payto < ::Stripe::RequestParams
2162
509
  # The account number for the bank account.
@@ -2175,7 +522,6 @@ module Stripe
2175
522
 
2176
523
  class Pix < ::Stripe::RequestParams; end
2177
524
  class Promptpay < ::Stripe::RequestParams; end
2178
- class Qris < ::Stripe::RequestParams; end
2179
525
 
2180
526
  class RadarOptions < ::Stripe::RequestParams
2181
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.
@@ -2186,29 +532,6 @@ module Stripe
2186
532
  end
2187
533
  end
2188
534
 
2189
- class Rechnung < ::Stripe::RequestParams
2190
- class Dob < ::Stripe::RequestParams
2191
- # The day of birth, between 1 and 31.
2192
- attr_accessor :day
2193
- # The month of birth, between 1 and 12.
2194
- attr_accessor :month
2195
- # The four-digit year of birth.
2196
- attr_accessor :year
2197
-
2198
- def initialize(day: nil, month: nil, year: nil)
2199
- @day = day
2200
- @month = month
2201
- @year = year
2202
- end
2203
- end
2204
- # Customer's date of birth
2205
- attr_accessor :dob
2206
-
2207
- def initialize(dob: nil)
2208
- @dob = dob
2209
- end
2210
- end
2211
-
2212
535
  class RevolutPay < ::Stripe::RequestParams; end
2213
536
  class SamsungPay < ::Stripe::RequestParams; end
2214
537
  class Satispay < ::Stripe::RequestParams; end
@@ -2223,23 +546,12 @@ module Stripe
2223
546
  end
2224
547
  end
2225
548
 
2226
- class Shopeepay < ::Stripe::RequestParams; end
2227
-
2228
549
  class Sofort < ::Stripe::RequestParams
2229
550
  # Two-letter ISO code representing the country the bank account is located in.
2230
551
  attr_accessor :country
2231
552
 
2232
- def initialize(country: nil)
2233
- @country = country
2234
- end
2235
- end
2236
-
2237
- class StripeBalance < ::Stripe::RequestParams
2238
- # The connected account ID whose Stripe balance to use as the source of payment
2239
- attr_accessor :account
2240
-
2241
- def initialize(account: nil)
2242
- @account = account
553
+ def initialize(country: nil)
554
+ @country = country
2243
555
  end
2244
556
  end
2245
557
 
@@ -2344,12 +656,8 @@ module Stripe
2344
656
  attr_accessor :fpx
2345
657
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2346
658
  attr_accessor :giropay
2347
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2348
- attr_accessor :gopay
2349
659
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2350
660
  attr_accessor :grabpay
2351
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2352
- attr_accessor :id_bank_transfer
2353
661
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2354
662
  attr_accessor :ideal
2355
663
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2388,20 +696,14 @@ module Stripe
2388
696
  attr_accessor :paynow
2389
697
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2390
698
  attr_accessor :paypal
2391
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2392
- attr_accessor :paypay
2393
699
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2394
700
  attr_accessor :payto
2395
701
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2396
702
  attr_accessor :pix
2397
703
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2398
704
  attr_accessor :promptpay
2399
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2400
- attr_accessor :qris
2401
705
  # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2402
706
  attr_accessor :radar_options
2403
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2404
- attr_accessor :rechnung
2405
707
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2406
708
  attr_accessor :revolut_pay
2407
709
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -2412,15 +714,9 @@ module Stripe
2412
714
  attr_accessor :scalapay
2413
715
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2414
716
  attr_accessor :sepa_debit
2415
- # ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
2416
- attr_accessor :shared_payment_granted_token
2417
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2418
- attr_accessor :shopeepay
2419
717
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2420
718
  attr_accessor :sofort
2421
- # This hash contains details about the Stripe balance payment method.
2422
- attr_accessor :stripe_balance
2423
- # If this is a Sunbit PaymentMethod, this hash contains details about the Sunbit payment method.
719
+ # If this is a `sunbit` PaymentMethod, this hash contains details about the Sunbit payment method.
2424
720
  attr_accessor :sunbit
2425
721
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
2426
722
  attr_accessor :swish
@@ -2459,9 +755,7 @@ module Stripe
2459
755
  eps: nil,
2460
756
  fpx: nil,
2461
757
  giropay: nil,
2462
- gopay: nil,
2463
758
  grabpay: nil,
2464
- id_bank_transfer: nil,
2465
759
  ideal: nil,
2466
760
  interac_present: nil,
2467
761
  kakao_pay: nil,
@@ -2481,22 +775,16 @@ module Stripe
2481
775
  payco: nil,
2482
776
  paynow: nil,
2483
777
  paypal: nil,
2484
- paypay: nil,
2485
778
  payto: nil,
2486
779
  pix: nil,
2487
780
  promptpay: nil,
2488
- qris: nil,
2489
781
  radar_options: nil,
2490
- rechnung: nil,
2491
782
  revolut_pay: nil,
2492
783
  samsung_pay: nil,
2493
784
  satispay: nil,
2494
785
  scalapay: nil,
2495
786
  sepa_debit: nil,
2496
- shared_payment_granted_token: nil,
2497
- shopeepay: nil,
2498
787
  sofort: nil,
2499
- stripe_balance: nil,
2500
788
  sunbit: nil,
2501
789
  swish: nil,
2502
790
  twint: nil,
@@ -2527,9 +815,7 @@ module Stripe
2527
815
  @eps = eps
2528
816
  @fpx = fpx
2529
817
  @giropay = giropay
2530
- @gopay = gopay
2531
818
  @grabpay = grabpay
2532
- @id_bank_transfer = id_bank_transfer
2533
819
  @ideal = ideal
2534
820
  @interac_present = interac_present
2535
821
  @kakao_pay = kakao_pay
@@ -2549,22 +835,16 @@ module Stripe
2549
835
  @payco = payco
2550
836
  @paynow = paynow
2551
837
  @paypal = paypal
2552
- @paypay = paypay
2553
838
  @payto = payto
2554
839
  @pix = pix
2555
840
  @promptpay = promptpay
2556
- @qris = qris
2557
841
  @radar_options = radar_options
2558
- @rechnung = rechnung
2559
842
  @revolut_pay = revolut_pay
2560
843
  @samsung_pay = samsung_pay
2561
844
  @satispay = satispay
2562
845
  @scalapay = scalapay
2563
846
  @sepa_debit = sepa_debit
2564
- @shared_payment_granted_token = shared_payment_granted_token
2565
- @shopeepay = shopeepay
2566
847
  @sofort = sofort
2567
- @stripe_balance = stripe_balance
2568
848
  @sunbit = sunbit
2569
849
  @swish = swish
2570
850
  @twint = twint
@@ -2939,48 +1219,6 @@ module Stripe
2939
1219
  end
2940
1220
  end
2941
1221
 
2942
- class StatementDetails < ::Stripe::RequestParams
2943
- class Address < ::Stripe::RequestParams
2944
- # City, district, suburb, town, or village.
2945
- attr_accessor :city
2946
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2947
- attr_accessor :country
2948
- # Address line 1, such as the street, PO Box, or company name.
2949
- attr_accessor :line1
2950
- # Address line 2, such as the apartment, suite, unit, or building.
2951
- attr_accessor :line2
2952
- # ZIP or postal code.
2953
- attr_accessor :postal_code
2954
- # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
2955
- attr_accessor :state
2956
-
2957
- def initialize(
2958
- city: nil,
2959
- country: nil,
2960
- line1: nil,
2961
- line2: nil,
2962
- postal_code: nil,
2963
- state: nil
2964
- )
2965
- @city = city
2966
- @country = country
2967
- @line1 = line1
2968
- @line2 = line2
2969
- @postal_code = postal_code
2970
- @state = state
2971
- end
2972
- end
2973
- # Please pass in an address that is within your Stripe user account country
2974
- attr_accessor :address
2975
- # Phone number (e.g., a toll-free number that customers can call)
2976
- attr_accessor :phone
2977
-
2978
- def initialize(address: nil, phone: nil)
2979
- @address = address
2980
- @phone = phone
2981
- end
2982
- end
2983
-
2984
1222
  class ThreeDSecure < ::Stripe::RequestParams
2985
1223
  class NetworkOptions < ::Stripe::RequestParams
2986
1224
  class CartesBancaires < ::Stripe::RequestParams
@@ -3075,8 +1313,6 @@ module Stripe
3075
1313
  attr_accessor :moto
3076
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.
3077
1315
  attr_accessor :network
3078
- # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
3079
- attr_accessor :request_decremental_authorization
3080
1316
  # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
3081
1317
  attr_accessor :request_extended_authorization
3082
1318
  # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
@@ -3085,8 +1321,6 @@ module Stripe
3085
1321
  attr_accessor :request_multicapture
3086
1322
  # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
3087
1323
  attr_accessor :request_overcapture
3088
- # Request partial authorization on this PaymentIntent.
3089
- attr_accessor :request_partial_authorization
3090
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.
3091
1325
  attr_accessor :request_three_d_secure
3092
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).
@@ -3105,8 +1339,6 @@ module Stripe
3105
1339
  attr_accessor :statement_descriptor_suffix_kana
3106
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.
3107
1341
  attr_accessor :statement_descriptor_suffix_kanji
3108
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3109
- attr_accessor :statement_details
3110
1342
  # If 3D Secure authentication was performed with a third-party provider,
3111
1343
  # the authentication details to use for this payment.
3112
1344
  attr_accessor :three_d_secure
@@ -3118,18 +1350,15 @@ module Stripe
3118
1350
  mandate_options: nil,
3119
1351
  moto: nil,
3120
1352
  network: nil,
3121
- request_decremental_authorization: nil,
3122
1353
  request_extended_authorization: nil,
3123
1354
  request_incremental_authorization: nil,
3124
1355
  request_multicapture: nil,
3125
1356
  request_overcapture: nil,
3126
- request_partial_authorization: nil,
3127
1357
  request_three_d_secure: nil,
3128
1358
  require_cvc_recollection: nil,
3129
1359
  setup_future_usage: nil,
3130
1360
  statement_descriptor_suffix_kana: nil,
3131
1361
  statement_descriptor_suffix_kanji: nil,
3132
- statement_details: nil,
3133
1362
  three_d_secure: nil
3134
1363
  )
3135
1364
  @capture_method = capture_method
@@ -3138,18 +1367,15 @@ module Stripe
3138
1367
  @mandate_options = mandate_options
3139
1368
  @moto = moto
3140
1369
  @network = network
3141
- @request_decremental_authorization = request_decremental_authorization
3142
1370
  @request_extended_authorization = request_extended_authorization
3143
1371
  @request_incremental_authorization = request_incremental_authorization
3144
1372
  @request_multicapture = request_multicapture
3145
1373
  @request_overcapture = request_overcapture
3146
- @request_partial_authorization = request_partial_authorization
3147
1374
  @request_three_d_secure = request_three_d_secure
3148
1375
  @require_cvc_recollection = require_cvc_recollection
3149
1376
  @setup_future_usage = setup_future_usage
3150
1377
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
3151
1378
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3152
- @statement_details = statement_details
3153
1379
  @three_d_secure = three_d_secure
3154
1380
  end
3155
1381
  end
@@ -3328,23 +1554,6 @@ module Stripe
3328
1554
  end
3329
1555
  end
3330
1556
 
3331
- class Gopay < ::Stripe::RequestParams
3332
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3333
- #
3334
- # 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.
3335
- #
3336
- # 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.
3337
- #
3338
- # 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).
3339
- #
3340
- # 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`.
3341
- attr_accessor :setup_future_usage
3342
-
3343
- def initialize(setup_future_usage: nil)
3344
- @setup_future_usage = setup_future_usage
3345
- end
3346
- end
3347
-
3348
1557
  class Grabpay < ::Stripe::RequestParams
3349
1558
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3350
1559
  #
@@ -3362,29 +1571,6 @@ module Stripe
3362
1571
  end
3363
1572
  end
3364
1573
 
3365
- class IdBankTransfer < ::Stripe::RequestParams
3366
- # 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.
3367
- attr_accessor :expires_after
3368
- # 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.
3369
- attr_accessor :expires_at
3370
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3371
- #
3372
- # 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.
3373
- #
3374
- # 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.
3375
- #
3376
- # 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).
3377
- #
3378
- # 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`.
3379
- attr_accessor :setup_future_usage
3380
-
3381
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3382
- @expires_after = expires_after
3383
- @expires_at = expires_at
3384
- @setup_future_usage = setup_future_usage
3385
- end
3386
- end
3387
-
3388
1574
  class Ideal < ::Stripe::RequestParams
3389
1575
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3390
1576
  #
@@ -3491,939 +1677,6 @@ module Stripe
3491
1677
  @reference = reference
3492
1678
  end
3493
1679
  end
3494
-
3495
- class SupplementaryPurchaseData < ::Stripe::RequestParams
3496
- class BusReservationDetail < ::Stripe::RequestParams
3497
- class Arrival < ::Stripe::RequestParams
3498
- class Address < ::Stripe::RequestParams
3499
- # The city or town.
3500
- attr_accessor :city
3501
- # The country in ISO 3166-1 alpha-2 format.
3502
- attr_accessor :country
3503
- # The postal code formatted according to country.
3504
- attr_accessor :postal_code
3505
- # The state, county, province, or region formatted according to country.
3506
- attr_accessor :region
3507
- # Line 1 of the street address.
3508
- attr_accessor :street_address
3509
- # Line 2 of the street address.
3510
- attr_accessor :street_address2
3511
-
3512
- def initialize(
3513
- city: nil,
3514
- country: nil,
3515
- postal_code: nil,
3516
- region: nil,
3517
- street_address: nil,
3518
- street_address2: nil
3519
- )
3520
- @city = city
3521
- @country = country
3522
- @postal_code = postal_code
3523
- @region = region
3524
- @street_address = street_address
3525
- @street_address2 = street_address2
3526
- end
3527
- end
3528
- # Address of the arrival location.
3529
- attr_accessor :address
3530
- # Identifier name or reference for the arrival location.
3531
- attr_accessor :arrival_location
3532
-
3533
- def initialize(address: nil, arrival_location: nil)
3534
- @address = address
3535
- @arrival_location = arrival_location
3536
- end
3537
- end
3538
-
3539
- class Departure < ::Stripe::RequestParams
3540
- class Address < ::Stripe::RequestParams
3541
- # The city or town.
3542
- attr_accessor :city
3543
- # The country in ISO 3166-1 alpha-2 format.
3544
- attr_accessor :country
3545
- # The postal code formatted according to country.
3546
- attr_accessor :postal_code
3547
- # The state, county, province, or region formatted according to country.
3548
- attr_accessor :region
3549
- # Line 1 of the street address.
3550
- attr_accessor :street_address
3551
- # Line 2 of the street address.
3552
- attr_accessor :street_address2
3553
-
3554
- def initialize(
3555
- city: nil,
3556
- country: nil,
3557
- postal_code: nil,
3558
- region: nil,
3559
- street_address: nil,
3560
- street_address2: nil
3561
- )
3562
- @city = city
3563
- @country = country
3564
- @postal_code = postal_code
3565
- @region = region
3566
- @street_address = street_address
3567
- @street_address2 = street_address2
3568
- end
3569
- end
3570
- # Address of the departure location.
3571
- attr_accessor :address
3572
- # Timestamp of departure.
3573
- attr_accessor :departs_at
3574
- # Identifier name or reference for the origin location.
3575
- attr_accessor :departure_location
3576
-
3577
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3578
- @address = address
3579
- @departs_at = departs_at
3580
- @departure_location = departure_location
3581
- end
3582
- end
3583
-
3584
- class Insurance < ::Stripe::RequestParams
3585
- # Insurance currency.
3586
- attr_accessor :currency
3587
- # Name of the company providing the insurance.
3588
- attr_accessor :insurance_company_name
3589
- # Type of insurance.
3590
- attr_accessor :insurance_type
3591
- # Price of insurance in cents.
3592
- attr_accessor :price
3593
-
3594
- def initialize(
3595
- currency: nil,
3596
- insurance_company_name: nil,
3597
- insurance_type: nil,
3598
- price: nil
3599
- )
3600
- @currency = currency
3601
- @insurance_company_name = insurance_company_name
3602
- @insurance_type = insurance_type
3603
- @price = price
3604
- end
3605
- end
3606
-
3607
- class Passenger < ::Stripe::RequestParams
3608
- # The family name of the person.
3609
- attr_accessor :family_name
3610
- # The given name of the person.
3611
- attr_accessor :given_name
3612
-
3613
- def initialize(family_name: nil, given_name: nil)
3614
- @family_name = family_name
3615
- @given_name = given_name
3616
- end
3617
- end
3618
- # Name of associated or partner company for the service.
3619
- attr_accessor :affiliate_name
3620
- # Arrival details.
3621
- attr_accessor :arrival
3622
- # Name of transportation company.
3623
- attr_accessor :carrier_name
3624
- # Currency.
3625
- attr_accessor :currency
3626
- # Departure details.
3627
- attr_accessor :departure
3628
- # List of insurances for this reservation.
3629
- attr_accessor :insurances
3630
- # List of passengers that this reservation applies to.
3631
- attr_accessor :passengers
3632
- # Price in cents.
3633
- attr_accessor :price
3634
- # Ticket class.
3635
- attr_accessor :ticket_class
3636
-
3637
- def initialize(
3638
- affiliate_name: nil,
3639
- arrival: nil,
3640
- carrier_name: nil,
3641
- currency: nil,
3642
- departure: nil,
3643
- insurances: nil,
3644
- passengers: nil,
3645
- price: nil,
3646
- ticket_class: nil
3647
- )
3648
- @affiliate_name = affiliate_name
3649
- @arrival = arrival
3650
- @carrier_name = carrier_name
3651
- @currency = currency
3652
- @departure = departure
3653
- @insurances = insurances
3654
- @passengers = passengers
3655
- @price = price
3656
- @ticket_class = ticket_class
3657
- end
3658
- end
3659
-
3660
- class EventReservationDetail < ::Stripe::RequestParams
3661
- class Address < ::Stripe::RequestParams
3662
- # The city or town.
3663
- attr_accessor :city
3664
- # The country in ISO 3166-1 alpha-2 format.
3665
- attr_accessor :country
3666
- # The postal code formatted according to country.
3667
- attr_accessor :postal_code
3668
- # The state, county, province, or region formatted according to country.
3669
- attr_accessor :region
3670
- # Line 1 of the street address.
3671
- attr_accessor :street_address
3672
- # Line 2 of the street address.
3673
- attr_accessor :street_address2
3674
-
3675
- def initialize(
3676
- city: nil,
3677
- country: nil,
3678
- postal_code: nil,
3679
- region: nil,
3680
- street_address: nil,
3681
- street_address2: nil
3682
- )
3683
- @city = city
3684
- @country = country
3685
- @postal_code = postal_code
3686
- @region = region
3687
- @street_address = street_address
3688
- @street_address2 = street_address2
3689
- end
3690
- end
3691
-
3692
- class Insurance < ::Stripe::RequestParams
3693
- # Insurance currency.
3694
- attr_accessor :currency
3695
- # Name of the company providing the insurance.
3696
- attr_accessor :insurance_company_name
3697
- # Type of insurance.
3698
- attr_accessor :insurance_type
3699
- # Price of insurance in cents.
3700
- attr_accessor :price
3701
-
3702
- def initialize(
3703
- currency: nil,
3704
- insurance_company_name: nil,
3705
- insurance_type: nil,
3706
- price: nil
3707
- )
3708
- @currency = currency
3709
- @insurance_company_name = insurance_company_name
3710
- @insurance_type = insurance_type
3711
- @price = price
3712
- end
3713
- end
3714
- # Indicates if the tickets are digitally checked when entering the venue.
3715
- attr_accessor :access_controlled_venue
3716
- # Address of the event.
3717
- attr_accessor :address
3718
- # Name of associated or partner company for the service.
3719
- attr_accessor :affiliate_name
3720
- # End timestamp of the event.
3721
- attr_accessor :ends_at
3722
- # Company selling the ticket.
3723
- attr_accessor :event_company_name
3724
- # Name of the event.
3725
- attr_accessor :event_name
3726
- # Type of the event.
3727
- attr_accessor :event_type
3728
- # List of insurances for this event.
3729
- attr_accessor :insurances
3730
- # Start timestamp of the event.
3731
- attr_accessor :starts_at
3732
- # Name of the venue where the event takes place.
3733
- attr_accessor :venue_name
3734
-
3735
- def initialize(
3736
- access_controlled_venue: nil,
3737
- address: nil,
3738
- affiliate_name: nil,
3739
- ends_at: nil,
3740
- event_company_name: nil,
3741
- event_name: nil,
3742
- event_type: nil,
3743
- insurances: nil,
3744
- starts_at: nil,
3745
- venue_name: nil
3746
- )
3747
- @access_controlled_venue = access_controlled_venue
3748
- @address = address
3749
- @affiliate_name = affiliate_name
3750
- @ends_at = ends_at
3751
- @event_company_name = event_company_name
3752
- @event_name = event_name
3753
- @event_type = event_type
3754
- @insurances = insurances
3755
- @starts_at = starts_at
3756
- @venue_name = venue_name
3757
- end
3758
- end
3759
-
3760
- class FerryReservationDetail < ::Stripe::RequestParams
3761
- class Arrival < ::Stripe::RequestParams
3762
- class Address < ::Stripe::RequestParams
3763
- # The city or town.
3764
- attr_accessor :city
3765
- # The country in ISO 3166-1 alpha-2 format.
3766
- attr_accessor :country
3767
- # The postal code formatted according to country.
3768
- attr_accessor :postal_code
3769
- # The state, county, province, or region formatted according to country.
3770
- attr_accessor :region
3771
- # Line 1 of the street address.
3772
- attr_accessor :street_address
3773
- # Line 2 of the street address.
3774
- attr_accessor :street_address2
3775
-
3776
- def initialize(
3777
- city: nil,
3778
- country: nil,
3779
- postal_code: nil,
3780
- region: nil,
3781
- street_address: nil,
3782
- street_address2: nil
3783
- )
3784
- @city = city
3785
- @country = country
3786
- @postal_code = postal_code
3787
- @region = region
3788
- @street_address = street_address
3789
- @street_address2 = street_address2
3790
- end
3791
- end
3792
- # Address of the arrival location.
3793
- attr_accessor :address
3794
- # Identifier name or reference for the arrival location.
3795
- attr_accessor :arrival_location
3796
-
3797
- def initialize(address: nil, arrival_location: nil)
3798
- @address = address
3799
- @arrival_location = arrival_location
3800
- end
3801
- end
3802
-
3803
- class Departure < ::Stripe::RequestParams
3804
- class Address < ::Stripe::RequestParams
3805
- # The city or town.
3806
- attr_accessor :city
3807
- # The country in ISO 3166-1 alpha-2 format.
3808
- attr_accessor :country
3809
- # The postal code formatted according to country.
3810
- attr_accessor :postal_code
3811
- # The state, county, province, or region formatted according to country.
3812
- attr_accessor :region
3813
- # Line 1 of the street address.
3814
- attr_accessor :street_address
3815
- # Line 2 of the street address.
3816
- attr_accessor :street_address2
3817
-
3818
- def initialize(
3819
- city: nil,
3820
- country: nil,
3821
- postal_code: nil,
3822
- region: nil,
3823
- street_address: nil,
3824
- street_address2: nil
3825
- )
3826
- @city = city
3827
- @country = country
3828
- @postal_code = postal_code
3829
- @region = region
3830
- @street_address = street_address
3831
- @street_address2 = street_address2
3832
- end
3833
- end
3834
- # Address of the departure location.
3835
- attr_accessor :address
3836
- # Timestamp of departure.
3837
- attr_accessor :departs_at
3838
- # Identifier name or reference for the origin location.
3839
- attr_accessor :departure_location
3840
-
3841
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3842
- @address = address
3843
- @departs_at = departs_at
3844
- @departure_location = departure_location
3845
- end
3846
- end
3847
-
3848
- class Insurance < ::Stripe::RequestParams
3849
- # Insurance currency.
3850
- attr_accessor :currency
3851
- # Name of the company providing the insurance.
3852
- attr_accessor :insurance_company_name
3853
- # Type of insurance.
3854
- attr_accessor :insurance_type
3855
- # Price of insurance in cents.
3856
- attr_accessor :price
3857
-
3858
- def initialize(
3859
- currency: nil,
3860
- insurance_company_name: nil,
3861
- insurance_type: nil,
3862
- price: nil
3863
- )
3864
- @currency = currency
3865
- @insurance_company_name = insurance_company_name
3866
- @insurance_type = insurance_type
3867
- @price = price
3868
- end
3869
- end
3870
-
3871
- class Passenger < ::Stripe::RequestParams
3872
- # The family name of the person.
3873
- attr_accessor :family_name
3874
- # The given name of the person.
3875
- attr_accessor :given_name
3876
-
3877
- def initialize(family_name: nil, given_name: nil)
3878
- @family_name = family_name
3879
- @given_name = given_name
3880
- end
3881
- end
3882
- # Name of associated or partner company for the service.
3883
- attr_accessor :affiliate_name
3884
- # Arrival details.
3885
- attr_accessor :arrival
3886
- # Name of transportation company.
3887
- attr_accessor :carrier_name
3888
- # Currency.
3889
- attr_accessor :currency
3890
- # Departure details.
3891
- attr_accessor :departure
3892
- # List of insurances for this reservation.
3893
- attr_accessor :insurances
3894
- # List of passengers that this reservation applies to.
3895
- attr_accessor :passengers
3896
- # Price in cents.
3897
- attr_accessor :price
3898
- # Ticket class.
3899
- attr_accessor :ticket_class
3900
-
3901
- def initialize(
3902
- affiliate_name: nil,
3903
- arrival: nil,
3904
- carrier_name: nil,
3905
- currency: nil,
3906
- departure: nil,
3907
- insurances: nil,
3908
- passengers: nil,
3909
- price: nil,
3910
- ticket_class: nil
3911
- )
3912
- @affiliate_name = affiliate_name
3913
- @arrival = arrival
3914
- @carrier_name = carrier_name
3915
- @currency = currency
3916
- @departure = departure
3917
- @insurances = insurances
3918
- @passengers = passengers
3919
- @price = price
3920
- @ticket_class = ticket_class
3921
- end
3922
- end
3923
-
3924
- class Insurance < ::Stripe::RequestParams
3925
- # Insurance currency.
3926
- attr_accessor :currency
3927
- # Name of the company providing the insurance.
3928
- attr_accessor :insurance_company_name
3929
- # Type of insurance
3930
- attr_accessor :insurance_type
3931
- # Price of insurance in cents.
3932
- attr_accessor :price
3933
-
3934
- def initialize(
3935
- currency: nil,
3936
- insurance_company_name: nil,
3937
- insurance_type: nil,
3938
- price: nil
3939
- )
3940
- @currency = currency
3941
- @insurance_company_name = insurance_company_name
3942
- @insurance_type = insurance_type
3943
- @price = price
3944
- end
3945
- end
3946
-
3947
- class MarketplaceSeller < ::Stripe::RequestParams
3948
- class MarketplaceSellerAddress < ::Stripe::RequestParams
3949
- # The city or town.
3950
- attr_accessor :city
3951
- # The country in ISO 3166-1 alpha-2 format.
3952
- attr_accessor :country
3953
- # The postal code formatted according to country.
3954
- attr_accessor :postal_code
3955
- # The state, county, province, or region formatted according to country.
3956
- attr_accessor :region
3957
- # Line 1 of the street address.
3958
- attr_accessor :street_address
3959
- # Line 2 of the street address.
3960
- attr_accessor :street_address2
3961
-
3962
- def initialize(
3963
- city: nil,
3964
- country: nil,
3965
- postal_code: nil,
3966
- region: nil,
3967
- street_address: nil,
3968
- street_address2: nil
3969
- )
3970
- @city = city
3971
- @country = country
3972
- @postal_code = postal_code
3973
- @region = region
3974
- @street_address = street_address
3975
- @street_address2 = street_address2
3976
- end
3977
- end
3978
- # The references to line items for purchases with multiple associated sub-sellers.
3979
- attr_accessor :line_item_references
3980
- # The address of the selling or delivering merchant.
3981
- attr_accessor :marketplace_seller_address
3982
- # The name of the marketplace seller.
3983
- attr_accessor :marketplace_seller_name
3984
- # The unique identifier for the marketplace seller.
3985
- attr_accessor :marketplace_seller_reference
3986
- # The number of transactions the sub-seller completed in the last 12 months.
3987
- attr_accessor :number_of_transactions
3988
- # The category of the product.
3989
- attr_accessor :product_category
3990
- # The date when the seller's account with the marketplace was last logged in.
3991
- attr_accessor :seller_last_login_at
3992
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3993
- attr_accessor :seller_rating
3994
- # The date when the seller's account with the marketplace was created.
3995
- attr_accessor :seller_registered_at
3996
- # The date when the seller's account with the marketplace was last updated.
3997
- attr_accessor :seller_updated_at
3998
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
3999
- attr_accessor :shipping_references
4000
- # 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.
4001
- attr_accessor :volume_of_transactions
4002
-
4003
- def initialize(
4004
- line_item_references: nil,
4005
- marketplace_seller_address: nil,
4006
- marketplace_seller_name: nil,
4007
- marketplace_seller_reference: nil,
4008
- number_of_transactions: nil,
4009
- product_category: nil,
4010
- seller_last_login_at: nil,
4011
- seller_rating: nil,
4012
- seller_registered_at: nil,
4013
- seller_updated_at: nil,
4014
- shipping_references: nil,
4015
- volume_of_transactions: nil
4016
- )
4017
- @line_item_references = line_item_references
4018
- @marketplace_seller_address = marketplace_seller_address
4019
- @marketplace_seller_name = marketplace_seller_name
4020
- @marketplace_seller_reference = marketplace_seller_reference
4021
- @number_of_transactions = number_of_transactions
4022
- @product_category = product_category
4023
- @seller_last_login_at = seller_last_login_at
4024
- @seller_rating = seller_rating
4025
- @seller_registered_at = seller_registered_at
4026
- @seller_updated_at = seller_updated_at
4027
- @shipping_references = shipping_references
4028
- @volume_of_transactions = volume_of_transactions
4029
- end
4030
- end
4031
-
4032
- class RoundTripReservationDetail < ::Stripe::RequestParams
4033
- class Arrival < ::Stripe::RequestParams
4034
- class Address < ::Stripe::RequestParams
4035
- # The city or town.
4036
- attr_accessor :city
4037
- # The country in ISO 3166-1 alpha-2 format.
4038
- attr_accessor :country
4039
- # The postal code formatted according to country.
4040
- attr_accessor :postal_code
4041
- # The state, county, province, or region formatted according to country.
4042
- attr_accessor :region
4043
- # Line 1 of the street address.
4044
- attr_accessor :street_address
4045
- # Line 2 of the street address.
4046
- attr_accessor :street_address2
4047
-
4048
- def initialize(
4049
- city: nil,
4050
- country: nil,
4051
- postal_code: nil,
4052
- region: nil,
4053
- street_address: nil,
4054
- street_address2: nil
4055
- )
4056
- @city = city
4057
- @country = country
4058
- @postal_code = postal_code
4059
- @region = region
4060
- @street_address = street_address
4061
- @street_address2 = street_address2
4062
- end
4063
- end
4064
- # Address of the arrival location.
4065
- attr_accessor :address
4066
- # Identifier name or reference for the arrival location.
4067
- attr_accessor :arrival_location
4068
-
4069
- def initialize(address: nil, arrival_location: nil)
4070
- @address = address
4071
- @arrival_location = arrival_location
4072
- end
4073
- end
4074
-
4075
- class Departure < ::Stripe::RequestParams
4076
- class Address < ::Stripe::RequestParams
4077
- # The city or town.
4078
- attr_accessor :city
4079
- # The country in ISO 3166-1 alpha-2 format.
4080
- attr_accessor :country
4081
- # The postal code formatted according to country.
4082
- attr_accessor :postal_code
4083
- # The state, county, province, or region formatted according to country.
4084
- attr_accessor :region
4085
- # Line 1 of the street address.
4086
- attr_accessor :street_address
4087
- # Line 2 of the street address.
4088
- attr_accessor :street_address2
4089
-
4090
- def initialize(
4091
- city: nil,
4092
- country: nil,
4093
- postal_code: nil,
4094
- region: nil,
4095
- street_address: nil,
4096
- street_address2: nil
4097
- )
4098
- @city = city
4099
- @country = country
4100
- @postal_code = postal_code
4101
- @region = region
4102
- @street_address = street_address
4103
- @street_address2 = street_address2
4104
- end
4105
- end
4106
- # Address of the departure location.
4107
- attr_accessor :address
4108
- # Timestamp of departure.
4109
- attr_accessor :departs_at
4110
- # Identifier name or reference for the origin location.
4111
- attr_accessor :departure_location
4112
-
4113
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4114
- @address = address
4115
- @departs_at = departs_at
4116
- @departure_location = departure_location
4117
- end
4118
- end
4119
-
4120
- class Insurance < ::Stripe::RequestParams
4121
- # Insurance currency.
4122
- attr_accessor :currency
4123
- # Name of the company providing the insurance.
4124
- attr_accessor :insurance_company_name
4125
- # Type of insurance.
4126
- attr_accessor :insurance_type
4127
- # Price of insurance in cents.
4128
- attr_accessor :price
4129
-
4130
- def initialize(
4131
- currency: nil,
4132
- insurance_company_name: nil,
4133
- insurance_type: nil,
4134
- price: nil
4135
- )
4136
- @currency = currency
4137
- @insurance_company_name = insurance_company_name
4138
- @insurance_type = insurance_type
4139
- @price = price
4140
- end
4141
- end
4142
-
4143
- class Passenger < ::Stripe::RequestParams
4144
- # The family name of the person.
4145
- attr_accessor :family_name
4146
- # The given name of the person.
4147
- attr_accessor :given_name
4148
-
4149
- def initialize(family_name: nil, given_name: nil)
4150
- @family_name = family_name
4151
- @given_name = given_name
4152
- end
4153
- end
4154
- # Name of associated or partner company for the service.
4155
- attr_accessor :affiliate_name
4156
- # Arrival details.
4157
- attr_accessor :arrival
4158
- # Name of transportation company.
4159
- attr_accessor :carrier_name
4160
- # Currency.
4161
- attr_accessor :currency
4162
- # Departure details.
4163
- attr_accessor :departure
4164
- # List of insurances for this reservation.
4165
- attr_accessor :insurances
4166
- # List of passengers that this reservation applies to.
4167
- attr_accessor :passengers
4168
- # Price in cents.
4169
- attr_accessor :price
4170
- # Ticket class.
4171
- attr_accessor :ticket_class
4172
-
4173
- def initialize(
4174
- affiliate_name: nil,
4175
- arrival: nil,
4176
- carrier_name: nil,
4177
- currency: nil,
4178
- departure: nil,
4179
- insurances: nil,
4180
- passengers: nil,
4181
- price: nil,
4182
- ticket_class: nil
4183
- )
4184
- @affiliate_name = affiliate_name
4185
- @arrival = arrival
4186
- @carrier_name = carrier_name
4187
- @currency = currency
4188
- @departure = departure
4189
- @insurances = insurances
4190
- @passengers = passengers
4191
- @price = price
4192
- @ticket_class = ticket_class
4193
- end
4194
- end
4195
-
4196
- class TrainReservationDetail < ::Stripe::RequestParams
4197
- class Arrival < ::Stripe::RequestParams
4198
- class Address < ::Stripe::RequestParams
4199
- # The city or town.
4200
- attr_accessor :city
4201
- # The country in ISO 3166-1 alpha-2 format.
4202
- attr_accessor :country
4203
- # The postal code formatted according to country.
4204
- attr_accessor :postal_code
4205
- # The state, county, province, or region formatted according to country.
4206
- attr_accessor :region
4207
- # Line 1 of the street address.
4208
- attr_accessor :street_address
4209
- # Line 2 of the street address.
4210
- attr_accessor :street_address2
4211
-
4212
- def initialize(
4213
- city: nil,
4214
- country: nil,
4215
- postal_code: nil,
4216
- region: nil,
4217
- street_address: nil,
4218
- street_address2: nil
4219
- )
4220
- @city = city
4221
- @country = country
4222
- @postal_code = postal_code
4223
- @region = region
4224
- @street_address = street_address
4225
- @street_address2 = street_address2
4226
- end
4227
- end
4228
- # Address of the arrival location.
4229
- attr_accessor :address
4230
- # Identifier name or reference for the arrival location.
4231
- attr_accessor :arrival_location
4232
-
4233
- def initialize(address: nil, arrival_location: nil)
4234
- @address = address
4235
- @arrival_location = arrival_location
4236
- end
4237
- end
4238
-
4239
- class Departure < ::Stripe::RequestParams
4240
- class Address < ::Stripe::RequestParams
4241
- # The city or town.
4242
- attr_accessor :city
4243
- # The country in ISO 3166-1 alpha-2 format.
4244
- attr_accessor :country
4245
- # The postal code formatted according to country.
4246
- attr_accessor :postal_code
4247
- # The state, county, province, or region formatted according to country.
4248
- attr_accessor :region
4249
- # Line 1 of the street address.
4250
- attr_accessor :street_address
4251
- # Line 2 of the street address.
4252
- attr_accessor :street_address2
4253
-
4254
- def initialize(
4255
- city: nil,
4256
- country: nil,
4257
- postal_code: nil,
4258
- region: nil,
4259
- street_address: nil,
4260
- street_address2: nil
4261
- )
4262
- @city = city
4263
- @country = country
4264
- @postal_code = postal_code
4265
- @region = region
4266
- @street_address = street_address
4267
- @street_address2 = street_address2
4268
- end
4269
- end
4270
- # Address of the departure location.
4271
- attr_accessor :address
4272
- # Timestamp of departure.
4273
- attr_accessor :departs_at
4274
- # Identifier name or reference for the origin location.
4275
- attr_accessor :departure_location
4276
-
4277
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4278
- @address = address
4279
- @departs_at = departs_at
4280
- @departure_location = departure_location
4281
- end
4282
- end
4283
-
4284
- class Insurance < ::Stripe::RequestParams
4285
- # Insurance currency.
4286
- attr_accessor :currency
4287
- # Name of the company providing the insurance.
4288
- attr_accessor :insurance_company_name
4289
- # Type of insurance.
4290
- attr_accessor :insurance_type
4291
- # Price of insurance in cents.
4292
- attr_accessor :price
4293
-
4294
- def initialize(
4295
- currency: nil,
4296
- insurance_company_name: nil,
4297
- insurance_type: nil,
4298
- price: nil
4299
- )
4300
- @currency = currency
4301
- @insurance_company_name = insurance_company_name
4302
- @insurance_type = insurance_type
4303
- @price = price
4304
- end
4305
- end
4306
-
4307
- class Passenger < ::Stripe::RequestParams
4308
- # The family name of the person.
4309
- attr_accessor :family_name
4310
- # The given name of the person.
4311
- attr_accessor :given_name
4312
-
4313
- def initialize(family_name: nil, given_name: nil)
4314
- @family_name = family_name
4315
- @given_name = given_name
4316
- end
4317
- end
4318
- # Name of associated or partner company for the service.
4319
- attr_accessor :affiliate_name
4320
- # Arrival details.
4321
- attr_accessor :arrival
4322
- # Name of transportation company.
4323
- attr_accessor :carrier_name
4324
- # Currency.
4325
- attr_accessor :currency
4326
- # Departure details.
4327
- attr_accessor :departure
4328
- # List of insurances for this reservation.
4329
- attr_accessor :insurances
4330
- # List of passengers that this reservation applies to.
4331
- attr_accessor :passengers
4332
- # Price in cents.
4333
- attr_accessor :price
4334
- # Ticket class.
4335
- attr_accessor :ticket_class
4336
-
4337
- def initialize(
4338
- affiliate_name: nil,
4339
- arrival: nil,
4340
- carrier_name: nil,
4341
- currency: nil,
4342
- departure: nil,
4343
- insurances: nil,
4344
- passengers: nil,
4345
- price: nil,
4346
- ticket_class: nil
4347
- )
4348
- @affiliate_name = affiliate_name
4349
- @arrival = arrival
4350
- @carrier_name = carrier_name
4351
- @currency = currency
4352
- @departure = departure
4353
- @insurances = insurances
4354
- @passengers = passengers
4355
- @price = price
4356
- @ticket_class = ticket_class
4357
- end
4358
- end
4359
-
4360
- class Voucher < ::Stripe::RequestParams
4361
- # Name of associated or partner company for this voucher.
4362
- attr_accessor :affiliate_name
4363
- # The voucher validity end time.
4364
- attr_accessor :ends_at
4365
- # The voucher validity start time.
4366
- attr_accessor :starts_at
4367
- # The issuer or provider of this voucher.
4368
- attr_accessor :voucher_company
4369
- # The name or reference to identify the voucher.
4370
- attr_accessor :voucher_name
4371
- # The type of this voucher.
4372
- attr_accessor :voucher_type
4373
-
4374
- def initialize(
4375
- affiliate_name: nil,
4376
- ends_at: nil,
4377
- starts_at: nil,
4378
- voucher_company: nil,
4379
- voucher_name: nil,
4380
- voucher_type: nil
4381
- )
4382
- @affiliate_name = affiliate_name
4383
- @ends_at = ends_at
4384
- @starts_at = starts_at
4385
- @voucher_company = voucher_company
4386
- @voucher_name = voucher_name
4387
- @voucher_type = voucher_type
4388
- end
4389
- end
4390
- # Supplementary bus reservation details.
4391
- attr_accessor :bus_reservation_details
4392
- # Supplementary event reservation details.
4393
- attr_accessor :event_reservation_details
4394
- # Supplementary ferry reservation details.
4395
- attr_accessor :ferry_reservation_details
4396
- # Supplementary insurance details.
4397
- attr_accessor :insurances
4398
- # Supplementary marketplace seller details.
4399
- attr_accessor :marketplace_sellers
4400
- # Supplementary round trip reservation details.
4401
- attr_accessor :round_trip_reservation_details
4402
- # Supplementary train reservation details.
4403
- attr_accessor :train_reservation_details
4404
- # Voucher details, such as a gift card or discount code.
4405
- attr_accessor :vouchers
4406
-
4407
- def initialize(
4408
- bus_reservation_details: nil,
4409
- event_reservation_details: nil,
4410
- ferry_reservation_details: nil,
4411
- insurances: nil,
4412
- marketplace_sellers: nil,
4413
- round_trip_reservation_details: nil,
4414
- train_reservation_details: nil,
4415
- vouchers: nil
4416
- )
4417
- @bus_reservation_details = bus_reservation_details
4418
- @event_reservation_details = event_reservation_details
4419
- @ferry_reservation_details = ferry_reservation_details
4420
- @insurances = insurances
4421
- @marketplace_sellers = marketplace_sellers
4422
- @round_trip_reservation_details = round_trip_reservation_details
4423
- @train_reservation_details = train_reservation_details
4424
- @vouchers = vouchers
4425
- end
4426
- end
4427
1680
  # Controls when the funds are captured from the customer's account.
4428
1681
  #
4429
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.
@@ -4446,23 +1699,19 @@ module Stripe
4446
1699
  attr_accessor :setup_future_usage
4447
1700
  # Subscription details if setting up or charging a subscription.
4448
1701
  attr_accessor :subscriptions
4449
- # Supplementary Purchase Data for the corresponding Klarna payment
4450
- attr_accessor :supplementary_purchase_data
4451
1702
 
4452
1703
  def initialize(
4453
1704
  capture_method: nil,
4454
1705
  on_demand: nil,
4455
1706
  preferred_locale: nil,
4456
1707
  setup_future_usage: nil,
4457
- subscriptions: nil,
4458
- supplementary_purchase_data: nil
1708
+ subscriptions: nil
4459
1709
  )
4460
1710
  @capture_method = capture_method
4461
1711
  @on_demand = on_demand
4462
1712
  @preferred_locale = preferred_locale
4463
1713
  @setup_future_usage = setup_future_usage
4464
1714
  @subscriptions = subscriptions
4465
- @supplementary_purchase_data = supplementary_purchase_data
4466
1715
  end
4467
1716
  end
4468
1717
 
@@ -4723,65 +1972,12 @@ module Stripe
4723
1972
  end
4724
1973
 
4725
1974
  class Paypal < ::Stripe::RequestParams
4726
- class LineItem < ::Stripe::RequestParams
4727
- class Tax < ::Stripe::RequestParams
4728
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4729
- attr_accessor :amount
4730
- # The tax behavior for the line item.
4731
- attr_accessor :behavior
4732
-
4733
- def initialize(amount: nil, behavior: nil)
4734
- @amount = amount
4735
- @behavior = behavior
4736
- end
4737
- end
4738
- # Type of the line item.
4739
- attr_accessor :category
4740
- # Description of the line item.
4741
- attr_accessor :description
4742
- # Descriptive name of the line item.
4743
- attr_accessor :name
4744
- # Quantity of the line item. Must be a positive number.
4745
- attr_accessor :quantity
4746
- # Client facing stock keeping unit, article number or similar.
4747
- attr_accessor :sku
4748
- # The Stripe account ID of the connected account that sells the item.
4749
- attr_accessor :sold_by
4750
- # The tax information for the line item.
4751
- attr_accessor :tax
4752
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
4753
- attr_accessor :unit_amount
4754
-
4755
- def initialize(
4756
- category: nil,
4757
- description: nil,
4758
- name: nil,
4759
- quantity: nil,
4760
- sku: nil,
4761
- sold_by: nil,
4762
- tax: nil,
4763
- unit_amount: nil
4764
- )
4765
- @category = category
4766
- @description = description
4767
- @name = name
4768
- @quantity = quantity
4769
- @sku = sku
4770
- @sold_by = sold_by
4771
- @tax = tax
4772
- @unit_amount = unit_amount
4773
- end
4774
- end
4775
1975
  # Controls when the funds will be captured from the customer's account.
4776
1976
  attr_accessor :capture_method
4777
- # The line items purchased by the customer.
4778
- attr_accessor :line_items
4779
1977
  # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
4780
1978
  attr_accessor :preferred_locale
4781
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.
4782
1980
  attr_accessor :reference
4783
- # A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
4784
- attr_accessor :reference_id
4785
1981
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
4786
1982
  attr_accessor :risk_correlation_id
4787
1983
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -4794,40 +1990,19 @@ module Stripe
4794
1990
  #
4795
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`.
4796
1992
  attr_accessor :setup_future_usage
4797
- # 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.
4798
- attr_accessor :subsellers
4799
1993
 
4800
1994
  def initialize(
4801
1995
  capture_method: nil,
4802
- line_items: nil,
4803
1996
  preferred_locale: nil,
4804
1997
  reference: nil,
4805
- reference_id: nil,
4806
1998
  risk_correlation_id: nil,
4807
- setup_future_usage: nil,
4808
- subsellers: nil
1999
+ setup_future_usage: nil
4809
2000
  )
4810
2001
  @capture_method = capture_method
4811
- @line_items = line_items
4812
2002
  @preferred_locale = preferred_locale
4813
2003
  @reference = reference
4814
- @reference_id = reference_id
4815
2004
  @risk_correlation_id = risk_correlation_id
4816
2005
  @setup_future_usage = setup_future_usage
4817
- @subsellers = subsellers
4818
- end
4819
- end
4820
-
4821
- class Paypay < ::Stripe::RequestParams
4822
- # Controls when the funds are captured from the customer's account.
4823
- #
4824
- # 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.
4825
- #
4826
- # 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.
4827
- attr_accessor :capture_method
4828
-
4829
- def initialize(capture_method: nil)
4830
- @capture_method = capture_method
4831
2006
  end
4832
2007
  end
4833
2008
 
@@ -4969,25 +2144,6 @@ module Stripe
4969
2144
  end
4970
2145
  end
4971
2146
 
4972
- class Qris < ::Stripe::RequestParams
4973
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4974
- #
4975
- # 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.
4976
- #
4977
- # 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.
4978
- #
4979
- # 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).
4980
- #
4981
- # 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`.
4982
- attr_accessor :setup_future_usage
4983
-
4984
- def initialize(setup_future_usage: nil)
4985
- @setup_future_usage = setup_future_usage
4986
- end
4987
- end
4988
-
4989
- class Rechnung < ::Stripe::RequestParams; end
4990
-
4991
2147
  class RevolutPay < ::Stripe::RequestParams
4992
2148
  # Controls when the funds are captured from the customer's account.
4993
2149
  #
@@ -5030,9 +2186,18 @@ module Stripe
5030
2186
  #
5031
2187
  # 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.
5032
2188
  attr_accessor :capture_method
2189
+ # Indicates that you intend to make future payments with this PaymentIntent's payment method.
2190
+ #
2191
+ # 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.
2192
+ #
2193
+ # 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.
2194
+ #
2195
+ # 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).
2196
+ attr_accessor :setup_future_usage
5033
2197
 
5034
- def initialize(capture_method: nil)
2198
+ def initialize(capture_method: nil, setup_future_usage: nil)
5035
2199
  @capture_method = capture_method
2200
+ @setup_future_usage = setup_future_usage
5036
2201
  end
5037
2202
  end
5038
2203
 
@@ -5080,23 +2245,6 @@ module Stripe
5080
2245
  end
5081
2246
  end
5082
2247
 
5083
- class Shopeepay < ::Stripe::RequestParams
5084
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5085
- #
5086
- # 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.
5087
- #
5088
- # 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.
5089
- #
5090
- # 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).
5091
- #
5092
- # 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`.
5093
- attr_accessor :setup_future_usage
5094
-
5095
- def initialize(setup_future_usage: nil)
5096
- @setup_future_usage = setup_future_usage
5097
- end
5098
- end
5099
-
5100
2248
  class Sofort < ::Stripe::RequestParams
5101
2249
  # Language shown to the payer on redirect.
5102
2250
  attr_accessor :preferred_language
@@ -5117,7 +2265,13 @@ module Stripe
5117
2265
  end
5118
2266
  end
5119
2267
 
5120
- class StripeBalance < ::Stripe::RequestParams
2268
+ class Sunbit < ::Stripe::RequestParams
2269
+ # Controls when the funds are captured from the customer's account.
2270
+ #
2271
+ # 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.
2272
+ #
2273
+ # 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.
2274
+ attr_accessor :capture_method
5121
2275
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5122
2276
  #
5123
2277
  # 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.
@@ -5125,11 +2279,10 @@ module Stripe
5125
2279
  # 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.
5126
2280
  #
5127
2281
  # 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).
5128
- #
5129
- # 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`.
5130
2282
  attr_accessor :setup_future_usage
5131
2283
 
5132
- def initialize(setup_future_usage: nil)
2284
+ def initialize(capture_method: nil, setup_future_usage: nil)
2285
+ @capture_method = capture_method
5133
2286
  @setup_future_usage = setup_future_usage
5134
2287
  end
5135
2288
  end
@@ -5205,27 +2358,13 @@ module Stripe
5205
2358
  class Filters < ::Stripe::RequestParams
5206
2359
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
5207
2360
  attr_accessor :account_subcategories
5208
- # ID of the institution to use to filter for selectable accounts.
5209
- attr_accessor :institution
5210
2361
 
5211
- def initialize(account_subcategories: nil, institution: nil)
2362
+ def initialize(account_subcategories: nil)
5212
2363
  @account_subcategories = account_subcategories
5213
- @institution = institution
5214
- end
5215
- end
5216
-
5217
- class ManualEntry < ::Stripe::RequestParams
5218
- # Settings for configuring manual entry of account details.
5219
- attr_accessor :mode
5220
-
5221
- def initialize(mode: nil)
5222
- @mode = mode
5223
2364
  end
5224
2365
  end
5225
2366
  # Provide filters for the linked accounts that the customer can select for the payment method.
5226
2367
  attr_accessor :filters
5227
- # Customize manual entry behavior
5228
- attr_accessor :manual_entry
5229
2368
  # 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`.
5230
2369
  attr_accessor :permissions
5231
2370
  # List of data features that you would like to retrieve upon account creation.
@@ -5233,15 +2372,8 @@ module Stripe
5233
2372
  # 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.
5234
2373
  attr_accessor :return_url
5235
2374
 
5236
- def initialize(
5237
- filters: nil,
5238
- manual_entry: nil,
5239
- permissions: nil,
5240
- prefetch: nil,
5241
- return_url: nil
5242
- )
2375
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5243
2376
  @filters = filters
5244
- @manual_entry = manual_entry
5245
2377
  @permissions = permissions
5246
2378
  @prefetch = prefetch
5247
2379
  @return_url = return_url
@@ -5308,7 +2440,7 @@ module Stripe
5308
2440
  end
5309
2441
 
5310
2442
  class WechatPay < ::Stripe::RequestParams
5311
- # The app ID registered with WeChat Pay. Only required when client is ios or android.
2443
+ # The app ID registered with WeChat Pay. Only required when client is ios, android, or mini_program.
5312
2444
  attr_accessor :app_id
5313
2445
  # The client type that the end customer will pay from
5314
2446
  attr_accessor :client
@@ -5388,12 +2520,8 @@ module Stripe
5388
2520
  attr_accessor :fpx
5389
2521
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
5390
2522
  attr_accessor :giropay
5391
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5392
- attr_accessor :gopay
5393
2523
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
5394
2524
  attr_accessor :grabpay
5395
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5396
- attr_accessor :id_bank_transfer
5397
2525
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
5398
2526
  attr_accessor :ideal
5399
2527
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -5430,18 +2558,12 @@ module Stripe
5430
2558
  attr_accessor :paynow
5431
2559
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
5432
2560
  attr_accessor :paypal
5433
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5434
- attr_accessor :paypay
5435
2561
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5436
2562
  attr_accessor :payto
5437
2563
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
5438
2564
  attr_accessor :pix
5439
2565
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
5440
2566
  attr_accessor :promptpay
5441
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5442
- attr_accessor :qris
5443
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5444
- attr_accessor :rechnung
5445
2567
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
5446
2568
  attr_accessor :revolut_pay
5447
2569
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -5452,12 +2574,10 @@ module Stripe
5452
2574
  attr_accessor :scalapay
5453
2575
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5454
2576
  attr_accessor :sepa_debit
5455
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5456
- attr_accessor :shopeepay
5457
2577
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
5458
2578
  attr_accessor :sofort
5459
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5460
- attr_accessor :stripe_balance
2579
+ # If this is a `sunbit` PaymentMethod, this sub-hash contains details about the Sunbit payment method options.
2580
+ attr_accessor :sunbit
5461
2581
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
5462
2582
  attr_accessor :swish
5463
2583
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -5493,9 +2613,7 @@ module Stripe
5493
2613
  eps: nil,
5494
2614
  fpx: nil,
5495
2615
  giropay: nil,
5496
- gopay: nil,
5497
2616
  grabpay: nil,
5498
- id_bank_transfer: nil,
5499
2617
  ideal: nil,
5500
2618
  interac_present: nil,
5501
2619
  kakao_pay: nil,
@@ -5514,20 +2632,16 @@ module Stripe
5514
2632
  payco: nil,
5515
2633
  paynow: nil,
5516
2634
  paypal: nil,
5517
- paypay: nil,
5518
2635
  payto: nil,
5519
2636
  pix: nil,
5520
2637
  promptpay: nil,
5521
- qris: nil,
5522
- rechnung: nil,
5523
2638
  revolut_pay: nil,
5524
2639
  samsung_pay: nil,
5525
2640
  satispay: nil,
5526
2641
  scalapay: nil,
5527
2642
  sepa_debit: nil,
5528
- shopeepay: nil,
5529
2643
  sofort: nil,
5530
- stripe_balance: nil,
2644
+ sunbit: nil,
5531
2645
  swish: nil,
5532
2646
  twint: nil,
5533
2647
  upi: nil,
@@ -5556,9 +2670,7 @@ module Stripe
5556
2670
  @eps = eps
5557
2671
  @fpx = fpx
5558
2672
  @giropay = giropay
5559
- @gopay = gopay
5560
2673
  @grabpay = grabpay
5561
- @id_bank_transfer = id_bank_transfer
5562
2674
  @ideal = ideal
5563
2675
  @interac_present = interac_present
5564
2676
  @kakao_pay = kakao_pay
@@ -5577,20 +2689,16 @@ module Stripe
5577
2689
  @payco = payco
5578
2690
  @paynow = paynow
5579
2691
  @paypal = paypal
5580
- @paypay = paypay
5581
2692
  @payto = payto
5582
2693
  @pix = pix
5583
2694
  @promptpay = promptpay
5584
- @qris = qris
5585
- @rechnung = rechnung
5586
2695
  @revolut_pay = revolut_pay
5587
2696
  @samsung_pay = samsung_pay
5588
2697
  @satispay = satispay
5589
2698
  @scalapay = scalapay
5590
2699
  @sepa_debit = sepa_debit
5591
- @shopeepay = shopeepay
5592
2700
  @sofort = sofort
5593
- @stripe_balance = stripe_balance
2701
+ @sunbit = sunbit
5594
2702
  @swish = swish
5595
2703
  @twint = twint
5596
2704
  @upi = upi
@@ -5663,8 +2771,6 @@ module Stripe
5663
2771
  attr_accessor :amount_details
5664
2772
  # Amount to confirm on the PaymentIntent. Defaults to `amount` if not provided.
5665
2773
  attr_accessor :amount_to_confirm
5666
- # 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).
5667
- attr_accessor :application_fee_amount
5668
2774
  # Controls when the funds will be captured from the customer's account.
5669
2775
  attr_accessor :capture_method
5670
2776
  # ID of the ConfirmationToken used to confirm this PaymentIntent.
@@ -5677,8 +2783,6 @@ module Stripe
5677
2783
  attr_accessor :excluded_payment_method_types
5678
2784
  # Specifies which fields in the response should be expanded.
5679
2785
  attr_accessor :expand
5680
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5681
- attr_accessor :fx_quote
5682
2786
  # Automations to be run during the PaymentIntent lifecycle
5683
2787
  attr_accessor :hooks
5684
2788
  # ID of the mandate that's used for this payment.
@@ -5726,13 +2830,11 @@ module Stripe
5726
2830
  def initialize(
5727
2831
  amount_details: nil,
5728
2832
  amount_to_confirm: nil,
5729
- application_fee_amount: nil,
5730
2833
  capture_method: nil,
5731
2834
  confirmation_token: nil,
5732
2835
  error_on_requires_action: nil,
5733
2836
  excluded_payment_method_types: nil,
5734
2837
  expand: nil,
5735
- fx_quote: nil,
5736
2838
  hooks: nil,
5737
2839
  mandate: nil,
5738
2840
  mandate_data: nil,
@@ -5751,13 +2853,11 @@ module Stripe
5751
2853
  )
5752
2854
  @amount_details = amount_details
5753
2855
  @amount_to_confirm = amount_to_confirm
5754
- @application_fee_amount = application_fee_amount
5755
2856
  @capture_method = capture_method
5756
2857
  @confirmation_token = confirmation_token
5757
2858
  @error_on_requires_action = error_on_requires_action
5758
2859
  @excluded_payment_method_types = excluded_payment_method_types
5759
2860
  @expand = expand
5760
- @fx_quote = fx_quote
5761
2861
  @hooks = hooks
5762
2862
  @mandate = mandate
5763
2863
  @mandate_data = mandate_data