stripe 18.1.0.pre.beta.1 → 18.1.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 (660) hide show
  1. checksums.yaml +4 -4
  2. data/lib/data/ca-certificates.crt +682 -518
  3. data/lib/stripe/api_requestor.rb +0 -34
  4. data/lib/stripe/api_version.rb +2 -1
  5. data/lib/stripe/errors.rb +0 -63
  6. data/lib/stripe/event_types.rb +0 -209
  7. data/lib/stripe/object_types.rb +0 -49
  8. data/lib/stripe/params/account_create_params.rb +48 -329
  9. data/lib/stripe/params/account_external_account_create_params.rb +2 -2
  10. data/lib/stripe/params/account_external_account_update_params.rb +2 -2
  11. data/lib/stripe/params/account_person_create_params.rb +10 -10
  12. data/lib/stripe/params/account_person_update_params.rb +10 -10
  13. data/lib/stripe/params/account_session_create_params.rb +1 -226
  14. data/lib/stripe/params/account_update_params.rb +47 -291
  15. data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
  16. data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
  17. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
  18. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
  19. data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
  20. data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
  21. data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
  22. data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
  23. data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
  24. data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
  25. data/lib/stripe/params/charge_capture_params.rb +2 -1650
  26. data/lib/stripe/params/charge_create_params.rb +12 -12
  27. data/lib/stripe/params/charge_search_params.rb +1 -1
  28. data/lib/stripe/params/charge_update_params.rb +3 -1651
  29. data/lib/stripe/params/checkout/session_create_params.rb +41 -167
  30. data/lib/stripe/params/checkout/session_update_params.rb +12 -152
  31. data/lib/stripe/params/climate/order_create_params.rb +1 -1
  32. data/lib/stripe/params/climate/order_update_params.rb +1 -1
  33. data/lib/stripe/params/confirmation_token_create_params.rb +6 -83
  34. data/lib/stripe/params/coupon_create_params.rb +2 -18
  35. data/lib/stripe/params/coupon_update_params.rb +1 -1
  36. data/lib/stripe/params/credit_note_create_params.rb +1 -1
  37. data/lib/stripe/params/credit_note_list_params.rb +1 -1
  38. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
  39. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
  40. data/lib/stripe/params/credit_note_preview_params.rb +1 -1
  41. data/lib/stripe/params/credit_note_update_params.rb +1 -1
  42. data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
  43. data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
  44. data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
  45. data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
  46. data/lib/stripe/params/customer_create_params.rb +5 -5
  47. data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
  48. data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
  49. data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
  50. data/lib/stripe/params/customer_search_params.rb +1 -1
  51. data/lib/stripe/params/customer_session_create_params.rb +1 -32
  52. data/lib/stripe/params/customer_update_params.rb +7 -7
  53. data/lib/stripe/params/dispute_update_params.rb +4 -13
  54. data/lib/stripe/params/file_create_params.rb +3 -3
  55. data/lib/stripe/params/file_link_create_params.rb +1 -1
  56. data/lib/stripe/params/file_link_update_params.rb +1 -1
  57. data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
  58. data/lib/stripe/params/financial_connections/session_create_params.rb +4 -33
  59. data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
  60. data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
  61. data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
  62. data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
  63. data/lib/stripe/params/invoice_add_lines_params.rb +9 -41
  64. data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
  65. data/lib/stripe/params/invoice_create_params.rb +29 -110
  66. data/lib/stripe/params/invoice_create_preview_params.rb +42 -855
  67. data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
  68. data/lib/stripe/params/invoice_item_create_params.rb +9 -41
  69. data/lib/stripe/params/invoice_item_list_params.rb +2 -2
  70. data/lib/stripe/params/invoice_item_update_params.rb +7 -39
  71. data/lib/stripe/params/invoice_line_item_update_params.rb +8 -40
  72. data/lib/stripe/params/invoice_list_params.rb +2 -2
  73. data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
  74. data/lib/stripe/params/invoice_search_params.rb +1 -1
  75. data/lib/stripe/params/invoice_update_lines_params.rb +9 -41
  76. data/lib/stripe/params/invoice_update_params.rb +26 -107
  77. data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
  78. data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
  79. data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
  80. data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
  81. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
  82. data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
  83. data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
  84. data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
  85. data/lib/stripe/params/issuing/card_create_params.rb +7 -7
  86. data/lib/stripe/params/issuing/card_update_params.rb +6 -6
  87. data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -12
  88. data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
  89. data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
  90. data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
  91. data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
  92. data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
  93. data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
  94. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
  95. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
  96. data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
  97. data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
  98. data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
  99. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
  100. data/lib/stripe/params/payment_intent_capture_params.rb +13 -1639
  101. data/lib/stripe/params/payment_intent_confirm_params.rb +52 -3012
  102. data/lib/stripe/params/payment_intent_create_params.rb +68 -3028
  103. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +11 -32
  104. data/lib/stripe/params/payment_intent_list_params.rb +1 -1
  105. data/lib/stripe/params/payment_intent_search_params.rb +1 -1
  106. data/lib/stripe/params/payment_intent_update_params.rb +57 -3048
  107. data/lib/stripe/params/payment_link_create_params.rb +19 -19
  108. data/lib/stripe/params/payment_link_update_params.rb +9 -9
  109. data/lib/stripe/params/payment_method_attach_params.rb +1 -1
  110. data/lib/stripe/params/payment_method_configuration_create_params.rb +38 -143
  111. data/lib/stripe/params/payment_method_configuration_update_params.rb +38 -143
  112. data/lib/stripe/params/payment_method_create_params.rb +4 -81
  113. data/lib/stripe/params/payment_method_update_params.rb +2 -2
  114. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
  115. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
  116. data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
  117. data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
  118. data/lib/stripe/params/payout_create_params.rb +1 -1
  119. data/lib/stripe/params/payout_reverse_params.rb +1 -1
  120. data/lib/stripe/params/payout_update_params.rb +1 -1
  121. data/lib/stripe/params/plan_create_params.rb +4 -4
  122. data/lib/stripe/params/plan_update_params.rb +2 -2
  123. data/lib/stripe/params/price_create_params.rb +6 -6
  124. data/lib/stripe/params/price_search_params.rb +1 -1
  125. data/lib/stripe/params/price_update_params.rb +3 -22
  126. data/lib/stripe/params/product_create_params.rb +7 -7
  127. data/lib/stripe/params/product_feature_create_params.rb +1 -1
  128. data/lib/stripe/params/product_list_params.rb +1 -1
  129. data/lib/stripe/params/product_search_params.rb +1 -1
  130. data/lib/stripe/params/product_update_params.rb +4 -4
  131. data/lib/stripe/params/promotion_code_create_params.rb +3 -3
  132. data/lib/stripe/params/promotion_code_list_params.rb +1 -1
  133. data/lib/stripe/params/promotion_code_update_params.rb +1 -1
  134. data/lib/stripe/params/quote_create_params.rb +7 -805
  135. data/lib/stripe/params/quote_list_params.rb +2 -6
  136. data/lib/stripe/params/quote_update_params.rb +8 -813
  137. data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
  138. data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
  139. data/lib/stripe/params/refund_create_params.rb +2 -2
  140. data/lib/stripe/params/refund_update_params.rb +1 -1
  141. data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
  142. data/lib/stripe/params/setup_intent_confirm_params.rb +9 -164
  143. data/lib/stripe/params/setup_intent_create_params.rb +15 -170
  144. data/lib/stripe/params/setup_intent_update_params.rb +11 -166
  145. data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
  146. data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
  147. data/lib/stripe/params/source_create_params.rb +3 -3
  148. data/lib/stripe/params/source_update_params.rb +3 -3
  149. data/lib/stripe/params/subscription_create_params.rb +39 -264
  150. data/lib/stripe/params/subscription_item_create_params.rb +12 -56
  151. data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
  152. data/lib/stripe/params/subscription_item_update_params.rb +11 -39
  153. data/lib/stripe/params/subscription_list_params.rb +3 -3
  154. data/lib/stripe/params/subscription_resume_params.rb +2 -2
  155. data/lib/stripe/params/subscription_schedule_create_params.rb +20 -178
  156. data/lib/stripe/params/subscription_schedule_update_params.rb +20 -178
  157. data/lib/stripe/params/subscription_search_params.rb +1 -1
  158. data/lib/stripe/params/subscription_update_params.rb +36 -245
  159. data/lib/stripe/params/tax/association_find_params.rb +1 -1
  160. data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
  161. data/lib/stripe/params/tax/settings_update_params.rb +1 -1
  162. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
  163. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
  164. data/lib/stripe/params/tax_id_create_params.rb +2 -2
  165. data/lib/stripe/params/tax_id_list_params.rb +2 -2
  166. data/lib/stripe/params/tax_rate_create_params.rb +1 -1
  167. data/lib/stripe/params/tax_rate_update_params.rb +1 -1
  168. data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
  169. data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
  170. data/lib/stripe/params/terminal/location_create_params.rb +2 -2
  171. data/lib/stripe/params/terminal/location_update_params.rb +2 -2
  172. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
  173. data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
  174. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
  175. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
  176. data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
  177. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -83
  178. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
  179. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
  180. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
  181. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
  182. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
  183. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
  184. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
  185. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
  186. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
  187. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +2 -26
  188. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +2 -26
  189. data/lib/stripe/params/token_create_params.rb +22 -22
  190. data/lib/stripe/params/topup_create_params.rb +2 -2
  191. data/lib/stripe/params/topup_update_params.rb +1 -1
  192. data/lib/stripe/params/transfer_create_params.rb +3 -7
  193. data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
  194. data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
  195. data/lib/stripe/params/transfer_update_params.rb +1 -1
  196. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
  197. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
  198. data/lib/stripe/params/treasury/financial_account_create_params.rb +2 -9
  199. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
  200. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
  201. data/lib/stripe/params/treasury/financial_account_update_params.rb +2 -9
  202. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
  203. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
  204. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -27
  205. data/lib/stripe/params/treasury/received_credit_create_params.rb +2 -26
  206. data/lib/stripe/params/treasury/received_debit_create_params.rb +2 -26
  207. data/lib/stripe/params/v2/core/account_create_params.rb +46 -271
  208. data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
  209. data/lib/stripe/params/v2/core/account_token_create_params.rb +31 -21
  210. data/lib/stripe/params/v2/core/account_update_params.rb +50 -268
  211. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
  212. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
  213. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
  214. data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
  215. data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
  216. data/lib/stripe/params.rb +0 -146
  217. data/lib/stripe/resources/account.rb +27 -208
  218. data/lib/stripe/resources/account_link.rb +1 -1
  219. data/lib/stripe/resources/account_session.rb +2 -83
  220. data/lib/stripe/resources/application_fee_refund.rb +2 -2
  221. data/lib/stripe/resources/apps/secret.rb +1 -1
  222. data/lib/stripe/resources/balance.rb +2 -2
  223. data/lib/stripe/resources/balance_settings.rb +1 -1
  224. data/lib/stripe/resources/balance_transaction.rb +1 -1
  225. data/lib/stripe/resources/bank_account.rb +10 -10
  226. data/lib/stripe/resources/billing/alert.rb +1 -1
  227. data/lib/stripe/resources/billing/credit_grant.rb +2 -2
  228. data/lib/stripe/resources/billing/meter_event.rb +1 -1
  229. data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
  230. data/lib/stripe/resources/billing_portal/session.rb +6 -6
  231. data/lib/stripe/resources/capability.rb +16 -16
  232. data/lib/stripe/resources/card.rb +2 -4
  233. data/lib/stripe/resources/cash_balance.rb +2 -2
  234. data/lib/stripe/resources/charge.rb +46 -248
  235. data/lib/stripe/resources/checkout/session.rb +23 -123
  236. data/lib/stripe/resources/climate/order.rb +1 -1
  237. data/lib/stripe/resources/confirmation_token.rb +11 -144
  238. data/lib/stripe/resources/coupon.rb +4 -29
  239. data/lib/stripe/resources/credit_note.rb +5 -5
  240. data/lib/stripe/resources/credit_note_line_item.rb +1 -19
  241. data/lib/stripe/resources/customer.rb +8 -8
  242. data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
  243. data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
  244. data/lib/stripe/resources/customer_session.rb +0 -36
  245. data/lib/stripe/resources/discount.rb +3 -3
  246. data/lib/stripe/resources/dispute.rb +5 -27
  247. data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
  248. data/lib/stripe/resources/event.rb +2 -65
  249. data/lib/stripe/resources/exchange_rate.rb +2 -2
  250. data/lib/stripe/resources/file.rb +4 -4
  251. data/lib/stripe/resources/file_link.rb +1 -1
  252. data/lib/stripe/resources/financial_connections/account.rb +3 -28
  253. data/lib/stripe/resources/financial_connections/session.rb +3 -67
  254. data/lib/stripe/resources/forwarding/request.rb +1 -1
  255. data/lib/stripe/resources/funding_instructions.rb +14 -14
  256. data/lib/stripe/resources/identity/verification_report.rb +9 -9
  257. data/lib/stripe/resources/identity/verification_session.rb +11 -11
  258. data/lib/stripe/resources/invoice.rb +49 -166
  259. data/lib/stripe/resources/invoice_item.rb +6 -8
  260. data/lib/stripe/resources/invoice_line_item.rb +6 -44
  261. data/lib/stripe/resources/invoice_payment.rb +1 -1
  262. data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
  263. data/lib/stripe/resources/issuing/authorization.rb +20 -20
  264. data/lib/stripe/resources/issuing/card.rb +12 -12
  265. data/lib/stripe/resources/issuing/cardholder.rb +14 -14
  266. data/lib/stripe/resources/issuing/dispute.rb +7 -7
  267. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  268. data/lib/stripe/resources/issuing/token.rb +1 -1
  269. data/lib/stripe/resources/issuing/transaction.rb +12 -14
  270. data/lib/stripe/resources/line_item.rb +4 -69
  271. data/lib/stripe/resources/login_link.rb +1 -1
  272. data/lib/stripe/resources/mandate.rb +0 -43
  273. data/lib/stripe/resources/payment_attempt_record.rb +79 -201
  274. data/lib/stripe/resources/payment_intent.rb +59 -751
  275. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
  276. data/lib/stripe/resources/payment_link.rb +7 -7
  277. data/lib/stripe/resources/payment_method.rb +13 -148
  278. data/lib/stripe/resources/payment_method_configuration.rb +4 -174
  279. data/lib/stripe/resources/payment_method_domain.rb +1 -1
  280. data/lib/stripe/resources/payment_record.rb +81 -201
  281. data/lib/stripe/resources/payout.rb +7 -7
  282. data/lib/stripe/resources/person.rb +23 -23
  283. data/lib/stripe/resources/plan.rb +5 -5
  284. data/lib/stripe/resources/price.rb +6 -26
  285. data/lib/stripe/resources/product.rb +9 -9
  286. data/lib/stripe/resources/promotion_code.rb +4 -4
  287. data/lib/stripe/resources/quote.rb +14 -581
  288. data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
  289. data/lib/stripe/resources/radar/value_list.rb +2 -2
  290. data/lib/stripe/resources/radar/value_list_item.rb +1 -1
  291. data/lib/stripe/resources/refund.rb +3 -21
  292. data/lib/stripe/resources/reporting/report_run.rb +3 -3
  293. data/lib/stripe/resources/reporting/report_type.rb +3 -3
  294. data/lib/stripe/resources/reversal.rb +4 -4
  295. data/lib/stripe/resources/review.rb +1 -1
  296. data/lib/stripe/resources/setup_attempt.rb +17 -65
  297. data/lib/stripe/resources/setup_intent.rb +20 -107
  298. data/lib/stripe/resources/shipping_rate.rb +3 -3
  299. data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
  300. data/lib/stripe/resources/source.rb +8 -46
  301. data/lib/stripe/resources/source_mandate_notification.rb +3 -3
  302. data/lib/stripe/resources/subscription.rb +23 -221
  303. data/lib/stripe/resources/subscription_item.rb +8 -27
  304. data/lib/stripe/resources/subscription_schedule.rb +11 -204
  305. data/lib/stripe/resources/tax/association.rb +3 -3
  306. data/lib/stripe/resources/tax/calculation.rb +12 -12
  307. data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
  308. data/lib/stripe/resources/tax/registration.rb +3 -3
  309. data/lib/stripe/resources/tax/settings.rb +2 -2
  310. data/lib/stripe/resources/tax/transaction.rb +9 -9
  311. data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
  312. data/lib/stripe/resources/tax_id.rb +4 -4
  313. data/lib/stripe/resources/tax_rate.rb +1 -1
  314. data/lib/stripe/resources/terminal/configuration.rb +0 -16
  315. data/lib/stripe/resources/terminal/connection_token.rb +1 -1
  316. data/lib/stripe/resources/terminal/location.rb +3 -3
  317. data/lib/stripe/resources/terminal/reader.rb +10 -18
  318. data/lib/stripe/resources/token.rb +4 -4
  319. data/lib/stripe/resources/topup.rb +3 -3
  320. data/lib/stripe/resources/transfer.rb +5 -7
  321. data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
  322. data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
  323. data/lib/stripe/resources/treasury/financial_account.rb +1 -3
  324. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
  325. data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
  326. data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
  327. data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -35
  328. data/lib/stripe/resources/treasury/received_credit.rb +10 -40
  329. data/lib/stripe/resources/treasury/received_debit.rb +7 -39
  330. data/lib/stripe/resources/treasury/transaction.rb +11 -11
  331. data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
  332. data/lib/stripe/resources/v2/core/account.rb +133 -789
  333. data/lib/stripe/resources/v2/core/account_link.rb +11 -11
  334. data/lib/stripe/resources/v2/core/account_person.rb +10 -10
  335. data/lib/stripe/resources/webhook_endpoint.rb +1 -1
  336. data/lib/stripe/resources.rb +0 -100
  337. data/lib/stripe/services/billing_service.rb +1 -2
  338. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  339. data/lib/stripe/services/financial_connections_service.rb +1 -2
  340. data/lib/stripe/services/issuing_service.rb +1 -5
  341. data/lib/stripe/services/mandate_service.rb +0 -5
  342. data/lib/stripe/services/payment_intent_service.rb +0 -37
  343. data/lib/stripe/services/payment_method_service.rb +1 -1
  344. data/lib/stripe/services/quote_service.rb +1 -49
  345. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  346. data/lib/stripe/services/subscription_service.rb +0 -11
  347. data/lib/stripe/services/tax_service.rb +1 -2
  348. data/lib/stripe/services/terminal_service.rb +1 -2
  349. data/lib/stripe/services/v1_services.rb +1 -8
  350. data/lib/stripe/services/v2/billing_service.rb +1 -5
  351. data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
  352. data/lib/stripe/services/v2/core/account_service.rb +0 -4
  353. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
  354. data/lib/stripe/services/v2/core_service.rb +1 -2
  355. data/lib/stripe/services/v2_services.rb +1 -3
  356. data/lib/stripe/services.rb +0 -51
  357. data/lib/stripe/stripe_configuration.rb +1 -3
  358. data/lib/stripe/stripe_object.rb +31 -2
  359. data/lib/stripe/util.rb +1 -7
  360. data/lib/stripe/version.rb +1 -1
  361. data/lib/stripe.rb +0 -53
  362. data/rbi/stripe.rbi +17422 -76304
  363. metadata +4 -301
  364. data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
  365. data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
  366. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
  367. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
  368. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
  369. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
  370. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
  371. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
  372. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
  373. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
  374. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
  375. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
  376. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
  377. data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
  378. data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
  379. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
  380. data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
  381. data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
  382. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
  383. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
  384. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
  385. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
  386. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
  387. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
  388. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
  389. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
  390. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
  391. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
  392. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
  393. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
  394. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
  395. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
  396. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
  397. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
  398. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
  399. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
  400. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
  401. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
  402. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
  403. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
  404. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
  405. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
  406. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
  407. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
  408. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
  409. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
  410. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
  411. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
  412. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
  413. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
  414. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
  415. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
  416. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -61
  417. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
  418. data/lib/stripe/params/account_notice_list_params.rb +0 -25
  419. data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
  420. data/lib/stripe/params/account_notice_update_params.rb +0 -36
  421. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
  422. data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
  423. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
  424. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
  425. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
  426. data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
  427. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
  428. data/lib/stripe/params/external_account_create_params.rb +0 -134
  429. data/lib/stripe/params/external_account_delete_params.rb +0 -6
  430. data/lib/stripe/params/external_account_list_params.rb +0 -25
  431. data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
  432. data/lib/stripe/params/external_account_update_params.rb +0 -91
  433. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
  434. data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
  435. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
  436. data/lib/stripe/params/fx_quote_create_params.rb +0 -73
  437. data/lib/stripe/params/fx_quote_list_params.rb +0 -22
  438. data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
  439. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
  440. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
  441. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
  442. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
  443. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
  444. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
  445. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
  446. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
  447. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
  448. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
  449. data/lib/stripe/params/mandate_list_params.rb +0 -39
  450. data/lib/stripe/params/margin_create_params.rb +0 -25
  451. data/lib/stripe/params/margin_list_params.rb +0 -25
  452. data/lib/stripe/params/margin_retrieve_params.rb +0 -13
  453. data/lib/stripe/params/margin_update_params.rb +0 -22
  454. data/lib/stripe/params/order_cancel_params.rb +0 -13
  455. data/lib/stripe/params/order_create_params.rb +0 -2061
  456. data/lib/stripe/params/order_line_item_list_params.rb +0 -22
  457. data/lib/stripe/params/order_list_line_items_params.rb +0 -22
  458. data/lib/stripe/params/order_list_params.rb +0 -25
  459. data/lib/stripe/params/order_reopen_params.rb +0 -13
  460. data/lib/stripe/params/order_retrieve_params.rb +0 -13
  461. data/lib/stripe/params/order_submit_params.rb +0 -16
  462. data/lib/stripe/params/order_update_params.rb +0 -2065
  463. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
  464. data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
  465. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
  466. data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
  467. data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
  468. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
  469. data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
  470. data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
  471. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
  472. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
  473. data/lib/stripe/params/quote_line_list_params.rb +0 -22
  474. data/lib/stripe/params/quote_list_lines_params.rb +0 -22
  475. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
  476. data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
  477. data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
  478. data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
  479. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
  480. data/lib/stripe/params/quote_reestimate_params.rb +0 -13
  481. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
  482. data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
  483. data/lib/stripe/params/tax/form_list_params.rb +0 -51
  484. data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
  485. data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
  486. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
  487. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
  488. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
  489. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
  490. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
  491. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
  492. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
  493. data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
  494. data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
  495. data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
  496. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
  497. data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
  498. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -223
  499. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
  500. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
  501. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -229
  502. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
  503. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
  504. data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
  505. data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
  506. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
  507. data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
  508. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
  509. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
  510. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -50
  511. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
  512. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
  513. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
  514. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
  515. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
  516. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -33
  517. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
  518. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
  519. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
  520. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
  521. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
  522. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
  523. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
  524. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
  525. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
  526. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
  527. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
  528. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
  529. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
  530. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
  531. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
  532. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
  533. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
  534. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
  535. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -98
  536. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
  537. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
  538. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
  539. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
  540. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
  541. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -85
  542. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
  543. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
  544. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -80
  545. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
  546. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
  547. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
  548. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
  549. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
  550. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
  551. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
  552. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
  553. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
  554. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
  555. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
  556. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
  557. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
  558. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
  559. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
  560. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
  561. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
  562. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
  563. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
  564. data/lib/stripe/resources/account_notice.rb +0 -94
  565. data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
  566. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
  567. data/lib/stripe/resources/capital/financing_offer.rb +0 -142
  568. data/lib/stripe/resources/capital/financing_summary.rb +0 -79
  569. data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
  570. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
  571. data/lib/stripe/resources/financial_connections/institution.rb +0 -127
  572. data/lib/stripe/resources/fx_quote.rb +0 -147
  573. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
  574. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
  575. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
  576. data/lib/stripe/resources/issuing/settlement.rb +0 -61
  577. data/lib/stripe/resources/margin.rb +0 -64
  578. data/lib/stripe/resources/order.rb +0 -987
  579. data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
  580. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
  581. data/lib/stripe/resources/quote_line.rb +0 -521
  582. data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
  583. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
  584. data/lib/stripe/resources/tax/form.rb +0 -264
  585. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
  586. data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
  587. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -90
  588. data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
  589. data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
  590. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
  591. data/lib/stripe/resources/v2/billing/profile.rb +0 -46
  592. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
  593. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -81
  594. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
  595. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
  596. data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
  597. data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
  598. data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -132
  599. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
  600. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
  601. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
  602. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
  603. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
  604. data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
  605. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
  606. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
  607. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
  608. data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
  609. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
  610. data/lib/stripe/services/account_notice_service.rb +0 -39
  611. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
  612. data/lib/stripe/services/billing/analytics_service.rb +0 -15
  613. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  614. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  615. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  616. data/lib/stripe/services/capital_service.rb +0 -15
  617. data/lib/stripe/services/external_account_service.rb +0 -68
  618. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  619. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  620. data/lib/stripe/services/fx_quote_service.rb +0 -27
  621. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  622. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  623. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  624. data/lib/stripe/services/margin_service.rb +0 -50
  625. data/lib/stripe/services/order_line_item_service.rb +0 -17
  626. data/lib/stripe/services/order_service.rb +0 -78
  627. data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
  628. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
  629. data/lib/stripe/services/privacy_service.rb +0 -13
  630. data/lib/stripe/services/quote_line_service.rb +0 -17
  631. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  632. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  633. data/lib/stripe/services/tax/form_service.rb +0 -37
  634. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
  635. data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
  636. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
  637. data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
  638. data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -61
  639. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
  640. data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
  641. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
  642. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
  643. data/lib/stripe/services/v2/core/vault_service.rb +0 -18
  644. data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
  645. data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
  646. data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
  647. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
  648. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
  649. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
  650. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -73
  651. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
  652. data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -63
  653. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
  654. data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
  655. data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
  656. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
  657. data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
  658. data/lib/stripe/services/v2/money_management_service.rb +0 -31
  659. data/lib/stripe/services/v2/test_helper_service.rb +0 -15
  660. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
@@ -79,7 +79,7 @@ module Stripe
79
79
  end
80
80
 
81
81
  class Tax < ::Stripe::RequestParams
82
- # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
82
+ # The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
83
83
  #
84
84
  # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
85
85
  attr_accessor :total_tax_amount
@@ -88,7 +88,7 @@ module Stripe
88
88
  @total_tax_amount = total_tax_amount
89
89
  end
90
90
  end
91
- # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
91
+ # The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
92
92
  #
93
93
  # This field is mutually exclusive with the `amount_details[discount_amount]` field.
94
94
  attr_accessor :discount_amount
@@ -104,7 +104,7 @@ module Stripe
104
104
  attr_accessor :quantity
105
105
  # Contains information about the tax on the item.
106
106
  attr_accessor :tax
107
- # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
107
+ # The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
108
108
  attr_accessor :unit_cost
109
109
  # A unit of measure for the line item, such as gallons, feet, meters, etc.
110
110
  attr_accessor :unit_of_measure
@@ -131,7 +131,7 @@ module Stripe
131
131
  end
132
132
 
133
133
  class Shipping < ::Stripe::RequestParams
134
- # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0.
134
+ # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
135
135
  attr_accessor :amount
136
136
  # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
137
137
  attr_accessor :from_postal_code
@@ -146,7 +146,7 @@ module Stripe
146
146
  end
147
147
 
148
148
  class Tax < ::Stripe::RequestParams
149
- # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
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
150
  #
151
151
  # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
152
152
  attr_accessor :total_tax_amount
@@ -155,11 +155,11 @@ module Stripe
155
155
  @total_tax_amount = total_tax_amount
156
156
  end
157
157
  end
158
- # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
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
159
  #
160
160
  # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
161
161
  attr_accessor :discount_amount
162
- # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
162
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
163
163
  attr_accessor :line_items
164
164
  # Contains information about the shipping portion of the amount.
165
165
  attr_accessor :shipping
@@ -177,7 +177,7 @@ module Stripe
177
177
  class AutomaticPaymentMethods < ::Stripe::RequestParams
178
178
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
179
179
  #
180
- # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
180
+ # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment.
181
181
  attr_accessor :allow_redirects
182
182
  # Whether this feature is enabled.
183
183
  attr_accessor :enabled
@@ -191,7 +191,7 @@ module Stripe
191
191
  class Hooks < ::Stripe::RequestParams
192
192
  class Inputs < ::Stripe::RequestParams
193
193
  class Tax < ::Stripe::RequestParams
194
- # The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
194
+ # The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
195
195
  attr_accessor :calculation
196
196
 
197
197
  def initialize(calculation: nil)
@@ -253,1646 +253,20 @@ module Stripe
253
253
  end
254
254
 
255
255
  class PaymentDetails < ::Stripe::RequestParams
256
- class CarRental < ::Stripe::RequestParams
257
- class Affiliate < ::Stripe::RequestParams
258
- # The name of the affiliate that originated the purchase.
259
- attr_accessor :name
260
-
261
- def initialize(name: nil)
262
- @name = name
263
- end
264
- end
265
-
266
- class Delivery < ::Stripe::RequestParams
267
- class Recipient < ::Stripe::RequestParams
268
- # The email of the recipient the ticket is delivered to.
269
- attr_accessor :email
270
- # The name of the recipient the ticket is delivered to.
271
- attr_accessor :name
272
- # The phone number of the recipient the ticket is delivered to.
273
- attr_accessor :phone
274
-
275
- def initialize(email: nil, name: nil, phone: nil)
276
- @email = email
277
- @name = name
278
- @phone = phone
279
- end
280
- end
281
- # The delivery method for the payment
282
- attr_accessor :mode
283
- # Details of the recipient.
284
- attr_accessor :recipient
285
-
286
- def initialize(mode: nil, recipient: nil)
287
- @mode = mode
288
- @recipient = recipient
289
- end
290
- end
291
-
292
- class Distance < ::Stripe::RequestParams
293
- # Distance traveled.
294
- attr_accessor :amount
295
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
296
- attr_accessor :unit
297
-
298
- def initialize(amount: nil, unit: nil)
299
- @amount = amount
300
- @unit = unit
301
- end
302
- end
303
-
304
- class Driver < ::Stripe::RequestParams
305
- # Driver's identification number.
306
- attr_accessor :driver_identification_number
307
- # Driver's tax number.
308
- attr_accessor :driver_tax_number
309
- # Full name of the person or entity on the car reservation.
310
- attr_accessor :name
311
-
312
- def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
313
- @driver_identification_number = driver_identification_number
314
- @driver_tax_number = driver_tax_number
315
- @name = name
316
- end
317
- end
318
-
319
- class PickupAddress < ::Stripe::RequestParams
320
- # City, district, suburb, town, or village.
321
- attr_accessor :city
322
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
323
- attr_accessor :country
324
- # Address line 1, such as the street, PO Box, or company name.
325
- attr_accessor :line1
326
- # Address line 2, such as the apartment, suite, unit, or building.
327
- attr_accessor :line2
328
- # ZIP or postal code.
329
- attr_accessor :postal_code
330
- # State, county, province, or region.
331
- attr_accessor :state
332
-
333
- def initialize(
334
- city: nil,
335
- country: nil,
336
- line1: nil,
337
- line2: nil,
338
- postal_code: nil,
339
- state: nil
340
- )
341
- @city = city
342
- @country = country
343
- @line1 = line1
344
- @line2 = line2
345
- @postal_code = postal_code
346
- @state = state
347
- end
348
- end
349
-
350
- class ReturnAddress < ::Stripe::RequestParams
351
- # City, district, suburb, town, or village.
352
- attr_accessor :city
353
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
354
- attr_accessor :country
355
- # Address line 1, such as the street, PO Box, or company name.
356
- attr_accessor :line1
357
- # Address line 2, such as the apartment, suite, unit, or building.
358
- attr_accessor :line2
359
- # ZIP or postal code.
360
- attr_accessor :postal_code
361
- # State, county, province, or region.
362
- attr_accessor :state
363
-
364
- def initialize(
365
- city: nil,
366
- country: nil,
367
- line1: nil,
368
- line2: nil,
369
- postal_code: nil,
370
- state: nil
371
- )
372
- @city = city
373
- @country = country
374
- @line1 = line1
375
- @line2 = line2
376
- @postal_code = postal_code
377
- @state = state
378
- end
379
- end
380
- # Affiliate details for this purchase.
381
- attr_accessor :affiliate
382
- # The booking number associated with the car rental.
383
- attr_accessor :booking_number
384
- # Class code of the car.
385
- attr_accessor :car_class_code
386
- # Make of the car.
387
- attr_accessor :car_make
388
- # Model of the car.
389
- attr_accessor :car_model
390
- # The name of the rental car company.
391
- attr_accessor :company
392
- # The customer service phone number of the car rental company.
393
- attr_accessor :customer_service_phone_number
394
- # Number of days the car is being rented.
395
- attr_accessor :days_rented
396
- # Delivery details for this purchase.
397
- attr_accessor :delivery
398
- # The details of the distance traveled during the rental period.
399
- attr_accessor :distance
400
- # The details of the passengers in the travel reservation
401
- attr_accessor :drivers
402
- # List of additional charges being billed.
403
- attr_accessor :extra_charges
404
- # Indicates if the customer did not keep nor cancel their booking.
405
- attr_accessor :no_show
406
- # Car pick-up address.
407
- attr_accessor :pickup_address
408
- # Car pick-up time. Measured in seconds since the Unix epoch.
409
- attr_accessor :pickup_at
410
- # Name of the pickup location.
411
- attr_accessor :pickup_location_name
412
- # Rental rate.
413
- attr_accessor :rate_amount
414
- # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
415
- attr_accessor :rate_interval
416
- # The name of the person or entity renting the car.
417
- attr_accessor :renter_name
418
- # Car return address.
419
- attr_accessor :return_address
420
- # Car return time. Measured in seconds since the Unix epoch.
421
- attr_accessor :return_at
422
- # Name of the return location.
423
- attr_accessor :return_location_name
424
- # Indicates whether the goods or services are tax-exempt or tax is not collected.
425
- attr_accessor :tax_exempt
426
- # The vehicle identification number.
427
- attr_accessor :vehicle_identification_number
428
-
429
- def initialize(
430
- affiliate: nil,
431
- booking_number: nil,
432
- car_class_code: nil,
433
- car_make: nil,
434
- car_model: nil,
435
- company: nil,
436
- customer_service_phone_number: nil,
437
- days_rented: nil,
438
- delivery: nil,
439
- distance: nil,
440
- drivers: nil,
441
- extra_charges: nil,
442
- no_show: nil,
443
- pickup_address: nil,
444
- pickup_at: nil,
445
- pickup_location_name: nil,
446
- rate_amount: nil,
447
- rate_interval: nil,
448
- renter_name: nil,
449
- return_address: nil,
450
- return_at: nil,
451
- return_location_name: nil,
452
- tax_exempt: nil,
453
- vehicle_identification_number: nil
454
- )
455
- @affiliate = affiliate
456
- @booking_number = booking_number
457
- @car_class_code = car_class_code
458
- @car_make = car_make
459
- @car_model = car_model
460
- @company = company
461
- @customer_service_phone_number = customer_service_phone_number
462
- @days_rented = days_rented
463
- @delivery = delivery
464
- @distance = distance
465
- @drivers = drivers
466
- @extra_charges = extra_charges
467
- @no_show = no_show
468
- @pickup_address = pickup_address
469
- @pickup_at = pickup_at
470
- @pickup_location_name = pickup_location_name
471
- @rate_amount = rate_amount
472
- @rate_interval = rate_interval
473
- @renter_name = renter_name
474
- @return_address = return_address
475
- @return_at = return_at
476
- @return_location_name = return_location_name
477
- @tax_exempt = tax_exempt
478
- @vehicle_identification_number = vehicle_identification_number
479
- end
480
- end
481
-
482
- class CarRentalDatum < ::Stripe::RequestParams
483
- class Affiliate < ::Stripe::RequestParams
484
- # Affiliate partner code.
485
- attr_accessor :code
486
- # Name of affiliate partner.
487
- attr_accessor :name
488
-
489
- def initialize(code: nil, name: nil)
490
- @code = code
491
- @name = name
492
- end
493
- end
494
-
495
- class Distance < ::Stripe::RequestParams
496
- # Distance traveled.
497
- attr_accessor :amount
498
- # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
499
- attr_accessor :unit
500
-
501
- def initialize(amount: nil, unit: nil)
502
- @amount = amount
503
- @unit = unit
504
- end
505
- end
506
-
507
- class Driver < ::Stripe::RequestParams
508
- class DateOfBirth < ::Stripe::RequestParams
509
- # Day of birth (1-31).
510
- attr_accessor :day
511
- # Month of birth (1-12).
512
- attr_accessor :month
513
- # Year of birth (must be greater than 1900).
514
- attr_accessor :year
515
-
516
- def initialize(day: nil, month: nil, year: nil)
517
- @day = day
518
- @month = month
519
- @year = year
520
- end
521
- end
522
- # Driver's date of birth.
523
- attr_accessor :date_of_birth
524
- # Driver's identification number.
525
- attr_accessor :driver_identification_number
526
- # Driver's tax number.
527
- attr_accessor :driver_tax_number
528
- # Driver's full name.
529
- attr_accessor :name
530
-
531
- def initialize(
532
- date_of_birth: nil,
533
- driver_identification_number: nil,
534
- driver_tax_number: nil,
535
- name: nil
536
- )
537
- @date_of_birth = date_of_birth
538
- @driver_identification_number = driver_identification_number
539
- @driver_tax_number = driver_tax_number
540
- @name = name
541
- end
542
- end
543
-
544
- class DropOff < ::Stripe::RequestParams
545
- class Address < ::Stripe::RequestParams
546
- # City, district, suburb, town, or village.
547
- attr_accessor :city
548
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
549
- attr_accessor :country
550
- # Address line 1, such as the street, PO Box, or company name.
551
- attr_accessor :line1
552
- # Address line 2, such as the apartment, suite, unit, or building.
553
- attr_accessor :line2
554
- # ZIP or postal code.
555
- attr_accessor :postal_code
556
- # State, county, province, or region.
557
- attr_accessor :state
558
-
559
- def initialize(
560
- city: nil,
561
- country: nil,
562
- line1: nil,
563
- line2: nil,
564
- postal_code: nil,
565
- state: nil
566
- )
567
- @city = city
568
- @country = country
569
- @line1 = line1
570
- @line2 = line2
571
- @postal_code = postal_code
572
- @state = state
573
- end
574
- end
575
- # Address of the rental location.
576
- attr_accessor :address
577
- # Location name.
578
- attr_accessor :location_name
579
- # Timestamp for the location.
580
- attr_accessor :time
581
-
582
- def initialize(address: nil, location_name: nil, time: nil)
583
- @address = address
584
- @location_name = location_name
585
- @time = time
586
- end
587
- end
588
-
589
- class Insurance < ::Stripe::RequestParams
590
- # Amount of the insurance coverage in cents.
591
- attr_accessor :amount
592
- # Currency of the insurance amount.
593
- attr_accessor :currency
594
- # Name of the insurance company.
595
- attr_accessor :insurance_company_name
596
- # Type of insurance coverage.
597
- attr_accessor :insurance_type
598
-
599
- def initialize(
600
- amount: nil,
601
- currency: nil,
602
- insurance_company_name: nil,
603
- insurance_type: nil
604
- )
605
- @amount = amount
606
- @currency = currency
607
- @insurance_company_name = insurance_company_name
608
- @insurance_type = insurance_type
609
- end
610
- end
611
-
612
- class Pickup < ::Stripe::RequestParams
613
- class Address < ::Stripe::RequestParams
614
- # City, district, suburb, town, or village.
615
- attr_accessor :city
616
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
617
- attr_accessor :country
618
- # Address line 1, such as the street, PO Box, or company name.
619
- attr_accessor :line1
620
- # Address line 2, such as the apartment, suite, unit, or building.
621
- attr_accessor :line2
622
- # ZIP or postal code.
623
- attr_accessor :postal_code
624
- # State, county, province, or region.
625
- attr_accessor :state
626
-
627
- def initialize(
628
- city: nil,
629
- country: nil,
630
- line1: nil,
631
- line2: nil,
632
- postal_code: nil,
633
- state: nil
634
- )
635
- @city = city
636
- @country = country
637
- @line1 = line1
638
- @line2 = line2
639
- @postal_code = postal_code
640
- @state = state
641
- end
642
- end
643
- # Address of the rental location.
644
- attr_accessor :address
645
- # Location name.
646
- attr_accessor :location_name
647
- # Timestamp for the location.
648
- attr_accessor :time
649
-
650
- def initialize(address: nil, location_name: nil, time: nil)
651
- @address = address
652
- @location_name = location_name
653
- @time = time
654
- end
655
- end
656
-
657
- class Total < ::Stripe::RequestParams
658
- class Discounts < ::Stripe::RequestParams
659
- # Corporate client discount code.
660
- attr_accessor :corporate_client_code
661
- # Coupon code applied to the rental.
662
- attr_accessor :coupon
663
- # Maximum number of free miles or kilometers included.
664
- attr_accessor :maximum_free_miles_or_kilometers
665
-
666
- def initialize(
667
- corporate_client_code: nil,
668
- coupon: nil,
669
- maximum_free_miles_or_kilometers: nil
670
- )
671
- @corporate_client_code = corporate_client_code
672
- @coupon = coupon
673
- @maximum_free_miles_or_kilometers = maximum_free_miles_or_kilometers
674
- end
675
- end
676
-
677
- class ExtraCharge < ::Stripe::RequestParams
678
- # Amount of the extra charge in cents.
679
- attr_accessor :amount
680
- # Type of extra charge.
681
- attr_accessor :type
682
-
683
- def initialize(amount: nil, type: nil)
684
- @amount = amount
685
- @type = type
686
- end
687
- end
688
-
689
- class Tax < ::Stripe::RequestParams
690
- class Tax < ::Stripe::RequestParams
691
- # Tax amount.
692
- attr_accessor :amount
693
- # Tax rate applied.
694
- attr_accessor :rate
695
- # Type of tax applied.
696
- attr_accessor :type
697
-
698
- def initialize(amount: nil, rate: nil, type: nil)
699
- @amount = amount
700
- @rate = rate
701
- @type = type
702
- end
703
- end
704
- # Indicates if the transaction is tax exempt.
705
- attr_accessor :tax_exempt_indicator
706
- # Array of tax details.
707
- attr_accessor :taxes
708
-
709
- def initialize(tax_exempt_indicator: nil, taxes: nil)
710
- @tax_exempt_indicator = tax_exempt_indicator
711
- @taxes = taxes
712
- end
713
- end
714
- # Total amount in cents.
715
- attr_accessor :amount
716
- # Currency of the amount.
717
- attr_accessor :currency
718
- # Discount details for the rental.
719
- attr_accessor :discounts
720
- # Additional charges for the rental.
721
- attr_accessor :extra_charges
722
- # Rate per unit for the rental.
723
- attr_accessor :rate_per_unit
724
- # Unit of measurement for the rate.
725
- attr_accessor :rate_unit
726
- # Tax breakdown for the rental.
727
- attr_accessor :tax
728
-
729
- def initialize(
730
- amount: nil,
731
- currency: nil,
732
- discounts: nil,
733
- extra_charges: nil,
734
- rate_per_unit: nil,
735
- rate_unit: nil,
736
- tax: nil
737
- )
738
- @amount = amount
739
- @currency = currency
740
- @discounts = discounts
741
- @extra_charges = extra_charges
742
- @rate_per_unit = rate_per_unit
743
- @rate_unit = rate_unit
744
- @tax = tax
745
- end
746
- end
747
-
748
- class Vehicle < ::Stripe::RequestParams
749
- # Make of the rental vehicle.
750
- attr_accessor :make
751
- # Model of the rental vehicle.
752
- attr_accessor :model
753
- # Odometer reading at the time of rental.
754
- attr_accessor :odometer
755
- # Type of the rental vehicle.
756
- attr_accessor :type
757
- # Class of the rental vehicle.
758
- attr_accessor :vehicle_class
759
- # Vehicle identification number (VIN).
760
- attr_accessor :vehicle_identification_number
761
-
762
- def initialize(
763
- make: nil,
764
- model: nil,
765
- odometer: nil,
766
- type: nil,
767
- vehicle_class: nil,
768
- vehicle_identification_number: nil
769
- )
770
- @make = make
771
- @model = model
772
- @odometer = odometer
773
- @type = type
774
- @vehicle_class = vehicle_class
775
- @vehicle_identification_number = vehicle_identification_number
776
- end
777
- end
778
- # Affiliate (such as travel agency) details for the rental.
779
- attr_accessor :affiliate
780
- # Booking confirmation number for the car rental.
781
- attr_accessor :booking_number
782
- # Name of the car rental company.
783
- attr_accessor :carrier_name
784
- # Customer service phone number for the car rental company.
785
- attr_accessor :customer_service_phone_number
786
- # Number of days the car is being rented.
787
- attr_accessor :days_rented
788
- # Distance details for the rental.
789
- attr_accessor :distance
790
- # List of drivers for the rental.
791
- attr_accessor :drivers
792
- # Drop-off location details.
793
- attr_accessor :drop_off
794
- # Insurance details for the rental.
795
- attr_accessor :insurances
796
- # Indicates if the customer was a no-show.
797
- attr_accessor :no_show_indicator
798
- # Pickup location details.
799
- attr_accessor :pickup
800
- # Name of the person renting the vehicle.
801
- attr_accessor :renter_name
802
- # Total cost breakdown for the rental.
803
- attr_accessor :total
804
- # Vehicle details for the rental.
805
- attr_accessor :vehicle
806
-
807
- def initialize(
808
- affiliate: nil,
809
- booking_number: nil,
810
- carrier_name: nil,
811
- customer_service_phone_number: nil,
812
- days_rented: nil,
813
- distance: nil,
814
- drivers: nil,
815
- drop_off: nil,
816
- insurances: nil,
817
- no_show_indicator: nil,
818
- pickup: nil,
819
- renter_name: nil,
820
- total: nil,
821
- vehicle: nil
822
- )
823
- @affiliate = affiliate
824
- @booking_number = booking_number
825
- @carrier_name = carrier_name
826
- @customer_service_phone_number = customer_service_phone_number
827
- @days_rented = days_rented
828
- @distance = distance
829
- @drivers = drivers
830
- @drop_off = drop_off
831
- @insurances = insurances
832
- @no_show_indicator = no_show_indicator
833
- @pickup = pickup
834
- @renter_name = renter_name
835
- @total = total
836
- @vehicle = vehicle
837
- end
838
- end
839
-
840
- class EventDetails < ::Stripe::RequestParams
841
- class Address < ::Stripe::RequestParams
842
- # City, district, suburb, town, or village.
843
- attr_accessor :city
844
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
845
- attr_accessor :country
846
- # Address line 1, such as the street, PO Box, or company name.
847
- attr_accessor :line1
848
- # Address line 2, such as the apartment, suite, unit, or building.
849
- attr_accessor :line2
850
- # ZIP or postal code.
851
- attr_accessor :postal_code
852
- # State, county, province, or region.
853
- attr_accessor :state
854
-
855
- def initialize(
856
- city: nil,
857
- country: nil,
858
- line1: nil,
859
- line2: nil,
860
- postal_code: nil,
861
- state: nil
862
- )
863
- @city = city
864
- @country = country
865
- @line1 = line1
866
- @line2 = line2
867
- @postal_code = postal_code
868
- @state = state
869
- end
870
- end
871
-
872
- class Affiliate < ::Stripe::RequestParams
873
- # The name of the affiliate that originated the purchase.
874
- attr_accessor :name
875
-
876
- def initialize(name: nil)
877
- @name = name
878
- end
879
- end
880
-
881
- class Delivery < ::Stripe::RequestParams
882
- class Recipient < ::Stripe::RequestParams
883
- # The email of the recipient the ticket is delivered to.
884
- attr_accessor :email
885
- # The name of the recipient the ticket is delivered to.
886
- attr_accessor :name
887
- # The phone number of the recipient the ticket is delivered to.
888
- attr_accessor :phone
889
-
890
- def initialize(email: nil, name: nil, phone: nil)
891
- @email = email
892
- @name = name
893
- @phone = phone
894
- end
895
- end
896
- # The delivery method for the payment
897
- attr_accessor :mode
898
- # Details of the recipient.
899
- attr_accessor :recipient
900
-
901
- def initialize(mode: nil, recipient: nil)
902
- @mode = mode
903
- @recipient = recipient
904
- end
905
- end
906
- # Indicates if the tickets are digitally checked when entering the venue.
907
- attr_accessor :access_controlled_venue
908
- # The event location's address.
909
- attr_accessor :address
910
- # Affiliate details for this purchase.
911
- attr_accessor :affiliate
912
- # The name of the company
913
- attr_accessor :company
914
- # Delivery details for this purchase.
915
- attr_accessor :delivery
916
- # Event end time. Measured in seconds since the Unix epoch.
917
- attr_accessor :ends_at
918
- # Type of the event entertainment (concert, sports event etc)
919
- attr_accessor :genre
920
- # The name of the event.
921
- attr_accessor :name
922
- # Event start time. Measured in seconds since the Unix epoch.
923
- attr_accessor :starts_at
924
-
925
- def initialize(
926
- access_controlled_venue: nil,
927
- address: nil,
928
- affiliate: nil,
929
- company: nil,
930
- delivery: nil,
931
- ends_at: nil,
932
- genre: nil,
933
- name: nil,
934
- starts_at: nil
935
- )
936
- @access_controlled_venue = access_controlled_venue
937
- @address = address
938
- @affiliate = affiliate
939
- @company = company
940
- @delivery = delivery
941
- @ends_at = ends_at
942
- @genre = genre
943
- @name = name
944
- @starts_at = starts_at
945
- end
946
- end
947
-
948
- class Flight < ::Stripe::RequestParams
949
- class Affiliate < ::Stripe::RequestParams
950
- # The name of the affiliate that originated the purchase.
951
- attr_accessor :name
952
-
953
- def initialize(name: nil)
954
- @name = name
955
- end
956
- end
957
-
958
- class Delivery < ::Stripe::RequestParams
959
- class Recipient < ::Stripe::RequestParams
960
- # The email of the recipient the ticket is delivered to.
961
- attr_accessor :email
962
- # The name of the recipient the ticket is delivered to.
963
- attr_accessor :name
964
- # The phone number of the recipient the ticket is delivered to.
965
- attr_accessor :phone
966
-
967
- def initialize(email: nil, name: nil, phone: nil)
968
- @email = email
969
- @name = name
970
- @phone = phone
971
- end
972
- end
973
- # The delivery method for the payment
974
- attr_accessor :mode
975
- # Details of the recipient.
976
- attr_accessor :recipient
977
-
978
- def initialize(mode: nil, recipient: nil)
979
- @mode = mode
980
- @recipient = recipient
981
- end
982
- end
983
-
984
- class Passenger < ::Stripe::RequestParams
985
- # Full name of the person or entity on the flight reservation.
986
- attr_accessor :name
987
-
988
- def initialize(name: nil)
989
- @name = name
990
- end
991
- end
992
-
993
- class Segment < ::Stripe::RequestParams
994
- # The flight segment amount.
995
- attr_accessor :amount
996
- # The International Air Transport Association (IATA) airport code for the arrival airport.
997
- attr_accessor :arrival_airport
998
- # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
999
- attr_accessor :arrives_at
1000
- # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1001
- attr_accessor :carrier
1002
- # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1003
- attr_accessor :departs_at
1004
- # The International Air Transport Association (IATA) airport code for the departure airport.
1005
- attr_accessor :departure_airport
1006
- # The flight number associated with the segment
1007
- attr_accessor :flight_number
1008
- # The fare class for the segment.
1009
- attr_accessor :service_class
1010
-
1011
- def initialize(
1012
- amount: nil,
1013
- arrival_airport: nil,
1014
- arrives_at: nil,
1015
- carrier: nil,
1016
- departs_at: nil,
1017
- departure_airport: nil,
1018
- flight_number: nil,
1019
- service_class: nil
1020
- )
1021
- @amount = amount
1022
- @arrival_airport = arrival_airport
1023
- @arrives_at = arrives_at
1024
- @carrier = carrier
1025
- @departs_at = departs_at
1026
- @departure_airport = departure_airport
1027
- @flight_number = flight_number
1028
- @service_class = service_class
1029
- end
1030
- end
1031
- # Affiliate details for this purchase.
1032
- attr_accessor :affiliate
1033
- # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1034
- attr_accessor :agency_number
1035
- # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1036
- attr_accessor :carrier
1037
- # Delivery details for this purchase.
1038
- attr_accessor :delivery
1039
- # The name of the person or entity on the reservation.
1040
- attr_accessor :passenger_name
1041
- # The details of the passengers in the travel reservation.
1042
- attr_accessor :passengers
1043
- # The individual flight segments associated with the trip.
1044
- attr_accessor :segments
1045
- # The ticket number associated with the travel reservation.
1046
- attr_accessor :ticket_number
1047
-
1048
- def initialize(
1049
- affiliate: nil,
1050
- agency_number: nil,
1051
- carrier: nil,
1052
- delivery: nil,
1053
- passenger_name: nil,
1054
- passengers: nil,
1055
- segments: nil,
1056
- ticket_number: nil
1057
- )
1058
- @affiliate = affiliate
1059
- @agency_number = agency_number
1060
- @carrier = carrier
1061
- @delivery = delivery
1062
- @passenger_name = passenger_name
1063
- @passengers = passengers
1064
- @segments = segments
1065
- @ticket_number = ticket_number
1066
- end
1067
- end
1068
-
1069
- class FlightDatum < ::Stripe::RequestParams
1070
- class Affiliate < ::Stripe::RequestParams
1071
- # Affiliate partner code.
1072
- attr_accessor :code
1073
- # Name of affiliate partner.
1074
- attr_accessor :name
1075
- # Code provided by the company to a travel agent authorizing ticket issuance.
1076
- attr_accessor :travel_authorization_code
1077
-
1078
- def initialize(code: nil, name: nil, travel_authorization_code: nil)
1079
- @code = code
1080
- @name = name
1081
- @travel_authorization_code = travel_authorization_code
1082
- end
1083
- end
1084
-
1085
- class Insurance < ::Stripe::RequestParams
1086
- # Insurance cost.
1087
- attr_accessor :amount
1088
- # Insurance currency.
1089
- attr_accessor :currency
1090
- # Insurance company name.
1091
- attr_accessor :insurance_company_name
1092
- # Type of insurance.
1093
- attr_accessor :insurance_type
1094
-
1095
- def initialize(
1096
- amount: nil,
1097
- currency: nil,
1098
- insurance_company_name: nil,
1099
- insurance_type: nil
1100
- )
1101
- @amount = amount
1102
- @currency = currency
1103
- @insurance_company_name = insurance_company_name
1104
- @insurance_type = insurance_type
1105
- end
1106
- end
1107
-
1108
- class Passenger < ::Stripe::RequestParams
1109
- # Passenger's full name.
1110
- attr_accessor :name
1111
-
1112
- def initialize(name: nil)
1113
- @name = name
1114
- end
1115
- end
1116
-
1117
- class Segment < ::Stripe::RequestParams
1118
- class Arrival < ::Stripe::RequestParams
1119
- # Arrival airport IATA code.
1120
- attr_accessor :airport
1121
- # Arrival date/time.
1122
- attr_accessor :arrives_at
1123
- # Arrival city.
1124
- attr_accessor :city
1125
- # Arrival country.
1126
- attr_accessor :country
1127
-
1128
- def initialize(airport: nil, arrives_at: nil, city: nil, country: nil)
1129
- @airport = airport
1130
- @arrives_at = arrives_at
1131
- @city = city
1132
- @country = country
1133
- end
1134
- end
1135
-
1136
- class Departure < ::Stripe::RequestParams
1137
- # Departure airport IATA code.
1138
- attr_accessor :airport
1139
- # Departure city.
1140
- attr_accessor :city
1141
- # Departure country.
1142
- attr_accessor :country
1143
- # Departure date/time.
1144
- attr_accessor :departs_at
1145
-
1146
- def initialize(airport: nil, city: nil, country: nil, departs_at: nil)
1147
- @airport = airport
1148
- @city = city
1149
- @country = country
1150
- @departs_at = departs_at
1151
- end
1152
- end
1153
- # Segment fare amount.
1154
- attr_accessor :amount
1155
- # Arrival details.
1156
- attr_accessor :arrival
1157
- # Airline carrier code.
1158
- attr_accessor :carrier_code
1159
- # Carrier name.
1160
- attr_accessor :carrier_name
1161
- # Segment currency.
1162
- attr_accessor :currency
1163
- # Departure details.
1164
- attr_accessor :departure
1165
- # Exchange ticket number.
1166
- attr_accessor :exchange_ticket_number
1167
- # Fare basis code.
1168
- attr_accessor :fare_basis_code
1169
- # Additional fees.
1170
- attr_accessor :fees
1171
- # Flight number.
1172
- attr_accessor :flight_number
1173
- # Stopover indicator.
1174
- attr_accessor :is_stop_over_indicator
1175
- # Refundable ticket indicator.
1176
- attr_accessor :refundable
1177
- # Class of service.
1178
- attr_accessor :service_class
1179
- # Tax amount for segment.
1180
- attr_accessor :tax_amount
1181
- # Ticket number.
1182
- attr_accessor :ticket_number
1183
-
1184
- def initialize(
1185
- amount: nil,
1186
- arrival: nil,
1187
- carrier_code: nil,
1188
- carrier_name: nil,
1189
- currency: nil,
1190
- departure: nil,
1191
- exchange_ticket_number: nil,
1192
- fare_basis_code: nil,
1193
- fees: nil,
1194
- flight_number: nil,
1195
- is_stop_over_indicator: nil,
1196
- refundable: nil,
1197
- service_class: nil,
1198
- tax_amount: nil,
1199
- ticket_number: nil
1200
- )
1201
- @amount = amount
1202
- @arrival = arrival
1203
- @carrier_code = carrier_code
1204
- @carrier_name = carrier_name
1205
- @currency = currency
1206
- @departure = departure
1207
- @exchange_ticket_number = exchange_ticket_number
1208
- @fare_basis_code = fare_basis_code
1209
- @fees = fees
1210
- @flight_number = flight_number
1211
- @is_stop_over_indicator = is_stop_over_indicator
1212
- @refundable = refundable
1213
- @service_class = service_class
1214
- @tax_amount = tax_amount
1215
- @ticket_number = ticket_number
1216
- end
1217
- end
1218
-
1219
- class Total < ::Stripe::RequestParams
1220
- class Discounts < ::Stripe::RequestParams
1221
- # Corporate client discount code.
1222
- attr_accessor :corporate_client_code
1223
-
1224
- def initialize(corporate_client_code: nil)
1225
- @corporate_client_code = corporate_client_code
1226
- end
1227
- end
1228
-
1229
- class ExtraCharge < ::Stripe::RequestParams
1230
- # Amount of additional charges.
1231
- attr_accessor :amount
1232
- # Type of additional charges.
1233
- attr_accessor :type
1234
-
1235
- def initialize(amount: nil, type: nil)
1236
- @amount = amount
1237
- @type = type
1238
- end
1239
- end
1240
-
1241
- class Tax < ::Stripe::RequestParams
1242
- class Tax < ::Stripe::RequestParams
1243
- # Tax amount.
1244
- attr_accessor :amount
1245
- # Tax rate.
1246
- attr_accessor :rate
1247
- # Type of tax.
1248
- attr_accessor :type
1249
-
1250
- def initialize(amount: nil, rate: nil, type: nil)
1251
- @amount = amount
1252
- @rate = rate
1253
- @type = type
1254
- end
1255
- end
1256
- # Array of tax details.
1257
- attr_accessor :taxes
1258
-
1259
- def initialize(taxes: nil)
1260
- @taxes = taxes
1261
- end
1262
- end
1263
- # Total flight amount.
1264
- attr_accessor :amount
1265
- # Reason for credit.
1266
- attr_accessor :credit_reason
1267
- # Total currency.
1268
- attr_accessor :currency
1269
- # Discount details.
1270
- attr_accessor :discounts
1271
- # Additional charges.
1272
- attr_accessor :extra_charges
1273
- # Tax breakdown.
1274
- attr_accessor :tax
1275
-
1276
- def initialize(
1277
- amount: nil,
1278
- credit_reason: nil,
1279
- currency: nil,
1280
- discounts: nil,
1281
- extra_charges: nil,
1282
- tax: nil
1283
- )
1284
- @amount = amount
1285
- @credit_reason = credit_reason
1286
- @currency = currency
1287
- @discounts = discounts
1288
- @extra_charges = extra_charges
1289
- @tax = tax
1290
- end
1291
- end
1292
- # Affiliate details if applicable.
1293
- attr_accessor :affiliate
1294
- # Reservation reference.
1295
- attr_accessor :booking_number
1296
- # Computerized reservation system used to make the reservation and purchase the ticket.
1297
- attr_accessor :computerized_reservation_system
1298
- # Ticket restrictions.
1299
- attr_accessor :endorsements_and_restrictions
1300
- # List of insurances.
1301
- attr_accessor :insurances
1302
- # List of passengers.
1303
- attr_accessor :passengers
1304
- # List of flight segments.
1305
- attr_accessor :segments
1306
- # Electronic ticket indicator.
1307
- attr_accessor :ticket_electronically_issued_indicator
1308
- # Total cost breakdown.
1309
- attr_accessor :total
1310
- # Type of flight transaction.
1311
- attr_accessor :transaction_type
1312
-
1313
- def initialize(
1314
- affiliate: nil,
1315
- booking_number: nil,
1316
- computerized_reservation_system: nil,
1317
- endorsements_and_restrictions: nil,
1318
- insurances: nil,
1319
- passengers: nil,
1320
- segments: nil,
1321
- ticket_electronically_issued_indicator: nil,
1322
- total: nil,
1323
- transaction_type: nil
1324
- )
1325
- @affiliate = affiliate
1326
- @booking_number = booking_number
1327
- @computerized_reservation_system = computerized_reservation_system
1328
- @endorsements_and_restrictions = endorsements_and_restrictions
1329
- @insurances = insurances
1330
- @passengers = passengers
1331
- @segments = segments
1332
- @ticket_electronically_issued_indicator = ticket_electronically_issued_indicator
1333
- @total = total
1334
- @transaction_type = transaction_type
1335
- end
1336
- end
1337
-
1338
- class Lodging < ::Stripe::RequestParams
1339
- class Address < ::Stripe::RequestParams
1340
- # City, district, suburb, town, or village.
1341
- attr_accessor :city
1342
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1343
- attr_accessor :country
1344
- # Address line 1, such as the street, PO Box, or company name.
1345
- attr_accessor :line1
1346
- # Address line 2, such as the apartment, suite, unit, or building.
1347
- attr_accessor :line2
1348
- # ZIP or postal code.
1349
- attr_accessor :postal_code
1350
- # State, county, province, or region.
1351
- attr_accessor :state
1352
-
1353
- def initialize(
1354
- city: nil,
1355
- country: nil,
1356
- line1: nil,
1357
- line2: nil,
1358
- postal_code: nil,
1359
- state: nil
1360
- )
1361
- @city = city
1362
- @country = country
1363
- @line1 = line1
1364
- @line2 = line2
1365
- @postal_code = postal_code
1366
- @state = state
1367
- end
1368
- end
1369
-
1370
- class Affiliate < ::Stripe::RequestParams
1371
- # The name of the affiliate that originated the purchase.
1372
- attr_accessor :name
1373
-
1374
- def initialize(name: nil)
1375
- @name = name
1376
- end
1377
- end
1378
-
1379
- class Delivery < ::Stripe::RequestParams
1380
- class Recipient < ::Stripe::RequestParams
1381
- # The email of the recipient the ticket is delivered to.
1382
- attr_accessor :email
1383
- # The name of the recipient the ticket is delivered to.
1384
- attr_accessor :name
1385
- # The phone number of the recipient the ticket is delivered to.
1386
- attr_accessor :phone
1387
-
1388
- def initialize(email: nil, name: nil, phone: nil)
1389
- @email = email
1390
- @name = name
1391
- @phone = phone
1392
- end
1393
- end
1394
- # The delivery method for the payment
1395
- attr_accessor :mode
1396
- # Details of the recipient.
1397
- attr_accessor :recipient
1398
-
1399
- def initialize(mode: nil, recipient: nil)
1400
- @mode = mode
1401
- @recipient = recipient
1402
- end
1403
- end
1404
-
1405
- class Passenger < ::Stripe::RequestParams
1406
- # Full name of the person or entity on the lodging reservation.
1407
- attr_accessor :name
1408
-
1409
- def initialize(name: nil)
1410
- @name = name
1411
- end
1412
- end
1413
- # The lodging location's address.
1414
- attr_accessor :address
1415
- # The number of adults on the booking
1416
- attr_accessor :adults
1417
- # Affiliate details for this purchase.
1418
- attr_accessor :affiliate
1419
- # The booking number associated with the lodging reservation.
1420
- attr_accessor :booking_number
1421
- # The lodging category
1422
- attr_accessor :category
1423
- # Lodging check-in time. Measured in seconds since the Unix epoch.
1424
- attr_accessor :checkin_at
1425
- # Lodging check-out time. Measured in seconds since the Unix epoch.
1426
- attr_accessor :checkout_at
1427
- # The customer service phone number of the lodging company.
1428
- attr_accessor :customer_service_phone_number
1429
- # The daily lodging room rate.
1430
- attr_accessor :daily_room_rate_amount
1431
- # Delivery details for this purchase.
1432
- attr_accessor :delivery
1433
- # List of additional charges being billed.
1434
- attr_accessor :extra_charges
1435
- # Indicates whether the lodging location is compliant with the Fire Safety Act.
1436
- attr_accessor :fire_safety_act_compliance
1437
- # The name of the lodging location.
1438
- attr_accessor :name
1439
- # Indicates if the customer did not keep their booking while failing to cancel the reservation.
1440
- attr_accessor :no_show
1441
- # The number of rooms on the booking
1442
- attr_accessor :number_of_rooms
1443
- # The details of the passengers in the travel reservation
1444
- attr_accessor :passengers
1445
- # The phone number of the lodging location.
1446
- attr_accessor :property_phone_number
1447
- # The room class for this purchase.
1448
- attr_accessor :room_class
1449
- # The number of room nights
1450
- attr_accessor :room_nights
1451
- # The total tax amount associating with the room reservation.
1452
- attr_accessor :total_room_tax_amount
1453
- # The total tax amount
1454
- attr_accessor :total_tax_amount
1455
-
1456
- def initialize(
1457
- address: nil,
1458
- adults: nil,
1459
- affiliate: nil,
1460
- booking_number: nil,
1461
- category: nil,
1462
- checkin_at: nil,
1463
- checkout_at: nil,
1464
- customer_service_phone_number: nil,
1465
- daily_room_rate_amount: nil,
1466
- delivery: nil,
1467
- extra_charges: nil,
1468
- fire_safety_act_compliance: nil,
1469
- name: nil,
1470
- no_show: nil,
1471
- number_of_rooms: nil,
1472
- passengers: nil,
1473
- property_phone_number: nil,
1474
- room_class: nil,
1475
- room_nights: nil,
1476
- total_room_tax_amount: nil,
1477
- total_tax_amount: nil
1478
- )
1479
- @address = address
1480
- @adults = adults
1481
- @affiliate = affiliate
1482
- @booking_number = booking_number
1483
- @category = category
1484
- @checkin_at = checkin_at
1485
- @checkout_at = checkout_at
1486
- @customer_service_phone_number = customer_service_phone_number
1487
- @daily_room_rate_amount = daily_room_rate_amount
1488
- @delivery = delivery
1489
- @extra_charges = extra_charges
1490
- @fire_safety_act_compliance = fire_safety_act_compliance
1491
- @name = name
1492
- @no_show = no_show
1493
- @number_of_rooms = number_of_rooms
1494
- @passengers = passengers
1495
- @property_phone_number = property_phone_number
1496
- @room_class = room_class
1497
- @room_nights = room_nights
1498
- @total_room_tax_amount = total_room_tax_amount
1499
- @total_tax_amount = total_tax_amount
1500
- end
1501
- end
1502
-
1503
- class LodgingDatum < ::Stripe::RequestParams
1504
- class Accommodation < ::Stripe::RequestParams
1505
- # Type of accommodation.
1506
- attr_accessor :accommodation_type
1507
- # Bed type.
1508
- attr_accessor :bed_type
1509
- # Daily accommodation rate in cents.
1510
- attr_accessor :daily_rate_amount
1511
- # Number of nights.
1512
- attr_accessor :nights
1513
- # Number of rooms, cabanas, apartments, and so on.
1514
- attr_accessor :number_of_rooms
1515
- # Rate type.
1516
- attr_accessor :rate_type
1517
- # Whether smoking is allowed.
1518
- attr_accessor :smoking_indicator
1519
-
1520
- def initialize(
1521
- accommodation_type: nil,
1522
- bed_type: nil,
1523
- daily_rate_amount: nil,
1524
- nights: nil,
1525
- number_of_rooms: nil,
1526
- rate_type: nil,
1527
- smoking_indicator: nil
1528
- )
1529
- @accommodation_type = accommodation_type
1530
- @bed_type = bed_type
1531
- @daily_rate_amount = daily_rate_amount
1532
- @nights = nights
1533
- @number_of_rooms = number_of_rooms
1534
- @rate_type = rate_type
1535
- @smoking_indicator = smoking_indicator
1536
- end
1537
- end
1538
-
1539
- class Affiliate < ::Stripe::RequestParams
1540
- # Affiliate partner code.
1541
- attr_accessor :code
1542
- # Affiliate partner name.
1543
- attr_accessor :name
1544
-
1545
- def initialize(code: nil, name: nil)
1546
- @code = code
1547
- @name = name
1548
- end
1549
- end
1550
-
1551
- class Guest < ::Stripe::RequestParams
1552
- # Guest's full name.
1553
- attr_accessor :name
1554
-
1555
- def initialize(name: nil)
1556
- @name = name
1557
- end
1558
- end
1559
-
1560
- class Host < ::Stripe::RequestParams
1561
- class Address < ::Stripe::RequestParams
1562
- # City, district, suburb, town, or village.
1563
- attr_accessor :city
1564
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1565
- attr_accessor :country
1566
- # Address line 1, such as the street, PO Box, or company name.
1567
- attr_accessor :line1
1568
- # Address line 2, such as the apartment, suite, unit, or building.
1569
- attr_accessor :line2
1570
- # ZIP or postal code.
1571
- attr_accessor :postal_code
1572
- # State, county, province, or region.
1573
- attr_accessor :state
1574
-
1575
- def initialize(
1576
- city: nil,
1577
- country: nil,
1578
- line1: nil,
1579
- line2: nil,
1580
- postal_code: nil,
1581
- state: nil
1582
- )
1583
- @city = city
1584
- @country = country
1585
- @line1 = line1
1586
- @line2 = line2
1587
- @postal_code = postal_code
1588
- @state = state
1589
- end
1590
- end
1591
- # Address of the host.
1592
- attr_accessor :address
1593
- # Host's country of domicile.
1594
- attr_accessor :country_of_domicile
1595
- # Reference number for the host.
1596
- attr_accessor :host_reference
1597
- # Type of host.
1598
- attr_accessor :host_type
1599
- # Name of the lodging property or host.
1600
- attr_accessor :name
1601
- # Total number of reservations for the host.
1602
- attr_accessor :number_of_reservations
1603
- # Property phone number.
1604
- attr_accessor :property_phone_number
1605
- # Host's registration date.
1606
- attr_accessor :registered_at
1607
-
1608
- def initialize(
1609
- address: nil,
1610
- country_of_domicile: nil,
1611
- host_reference: nil,
1612
- host_type: nil,
1613
- name: nil,
1614
- number_of_reservations: nil,
1615
- property_phone_number: nil,
1616
- registered_at: nil
1617
- )
1618
- @address = address
1619
- @country_of_domicile = country_of_domicile
1620
- @host_reference = host_reference
1621
- @host_type = host_type
1622
- @name = name
1623
- @number_of_reservations = number_of_reservations
1624
- @property_phone_number = property_phone_number
1625
- @registered_at = registered_at
1626
- end
1627
- end
1628
-
1629
- class Insurance < ::Stripe::RequestParams
1630
- # Price of the insurance coverage in cents.
1631
- attr_accessor :amount
1632
- # Currency of the insurance amount.
1633
- attr_accessor :currency
1634
- # Name of the insurance company.
1635
- attr_accessor :insurance_company_name
1636
- # Type of insurance coverage.
1637
- attr_accessor :insurance_type
1638
-
1639
- def initialize(
1640
- amount: nil,
1641
- currency: nil,
1642
- insurance_company_name: nil,
1643
- insurance_type: nil
1644
- )
1645
- @amount = amount
1646
- @currency = currency
1647
- @insurance_company_name = insurance_company_name
1648
- @insurance_type = insurance_type
1649
- end
1650
- end
1651
-
1652
- class Total < ::Stripe::RequestParams
1653
- class Discounts < ::Stripe::RequestParams
1654
- # Corporate client discount code.
1655
- attr_accessor :corporate_client_code
1656
- # Coupon code.
1657
- attr_accessor :coupon
1658
-
1659
- def initialize(corporate_client_code: nil, coupon: nil)
1660
- @corporate_client_code = corporate_client_code
1661
- @coupon = coupon
1662
- end
1663
- end
1664
-
1665
- class ExtraCharge < ::Stripe::RequestParams
1666
- # Amount of the extra charge in cents.
1667
- attr_accessor :amount
1668
- # Type of extra charge.
1669
- attr_accessor :type
1670
-
1671
- def initialize(amount: nil, type: nil)
1672
- @amount = amount
1673
- @type = type
1674
- end
1675
- end
1676
-
1677
- class Tax < ::Stripe::RequestParams
1678
- class Tax < ::Stripe::RequestParams
1679
- # Tax amount in cents.
1680
- attr_accessor :amount
1681
- # Tax rate.
1682
- attr_accessor :rate
1683
- # Type of tax applied.
1684
- attr_accessor :type
1685
-
1686
- def initialize(amount: nil, rate: nil, type: nil)
1687
- @amount = amount
1688
- @rate = rate
1689
- @type = type
1690
- end
1691
- end
1692
- # Indicates whether the transaction is tax exempt.
1693
- attr_accessor :tax_exempt_indicator
1694
- # Tax details.
1695
- attr_accessor :taxes
1696
-
1697
- def initialize(tax_exempt_indicator: nil, taxes: nil)
1698
- @tax_exempt_indicator = tax_exempt_indicator
1699
- @taxes = taxes
1700
- end
1701
- end
1702
- # Total price of the lodging reservation in cents.
1703
- attr_accessor :amount
1704
- # Cash advances in cents.
1705
- attr_accessor :cash_advances
1706
- # Currency of the total amount.
1707
- attr_accessor :currency
1708
- # Discount details for the lodging.
1709
- attr_accessor :discounts
1710
- # Additional charges for the lodging.
1711
- attr_accessor :extra_charges
1712
- # Prepaid amount in cents.
1713
- attr_accessor :prepaid_amount
1714
- # Tax breakdown for the lodging reservation.
1715
- attr_accessor :tax
1716
-
1717
- def initialize(
1718
- amount: nil,
1719
- cash_advances: nil,
1720
- currency: nil,
1721
- discounts: nil,
1722
- extra_charges: nil,
1723
- prepaid_amount: nil,
1724
- tax: nil
1725
- )
1726
- @amount = amount
1727
- @cash_advances = cash_advances
1728
- @currency = currency
1729
- @discounts = discounts
1730
- @extra_charges = extra_charges
1731
- @prepaid_amount = prepaid_amount
1732
- @tax = tax
1733
- end
1734
- end
1735
- # Accommodation details for the lodging.
1736
- attr_accessor :accommodation
1737
- # Affiliate details if applicable.
1738
- attr_accessor :affiliate
1739
- # Booking confirmation number for the lodging.
1740
- attr_accessor :booking_number
1741
- # Check-in date.
1742
- attr_accessor :checkin_at
1743
- # Check-out date.
1744
- attr_accessor :checkout_at
1745
- # Customer service phone number for the lodging company.
1746
- attr_accessor :customer_service_phone_number
1747
- # Whether the lodging is compliant with any hotel fire safety regulations.
1748
- attr_accessor :fire_safety_act_compliance_indicator
1749
- # List of guests for the lodging.
1750
- attr_accessor :guests
1751
- # Host details for the lodging.
1752
- attr_accessor :host
1753
- # List of insurances for the lodging.
1754
- attr_accessor :insurances
1755
- # Whether the renter is a no-show.
1756
- attr_accessor :no_show_indicator
1757
- # Renter ID number for the lodging.
1758
- attr_accessor :renter_id_number
1759
- # Renter name for the lodging.
1760
- attr_accessor :renter_name
1761
- # Total details for the lodging.
1762
- attr_accessor :total
1763
-
1764
- def initialize(
1765
- accommodation: nil,
1766
- affiliate: nil,
1767
- booking_number: nil,
1768
- checkin_at: nil,
1769
- checkout_at: nil,
1770
- customer_service_phone_number: nil,
1771
- fire_safety_act_compliance_indicator: nil,
1772
- guests: nil,
1773
- host: nil,
1774
- insurances: nil,
1775
- no_show_indicator: nil,
1776
- renter_id_number: nil,
1777
- renter_name: nil,
1778
- total: nil
1779
- )
1780
- @accommodation = accommodation
1781
- @affiliate = affiliate
1782
- @booking_number = booking_number
1783
- @checkin_at = checkin_at
1784
- @checkout_at = checkout_at
1785
- @customer_service_phone_number = customer_service_phone_number
1786
- @fire_safety_act_compliance_indicator = fire_safety_act_compliance_indicator
1787
- @guests = guests
1788
- @host = host
1789
- @insurances = insurances
1790
- @no_show_indicator = no_show_indicator
1791
- @renter_id_number = renter_id_number
1792
- @renter_name = renter_name
1793
- @total = total
1794
- end
1795
- end
1796
-
1797
- class Subscription < ::Stripe::RequestParams
1798
- class Affiliate < ::Stripe::RequestParams
1799
- # The name of the affiliate that originated the purchase.
1800
- attr_accessor :name
1801
-
1802
- def initialize(name: nil)
1803
- @name = name
1804
- end
1805
- end
1806
-
1807
- class BillingInterval < ::Stripe::RequestParams
1808
- # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1809
- attr_accessor :count
1810
- # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1811
- attr_accessor :interval
1812
-
1813
- def initialize(count: nil, interval: nil)
1814
- @count = count
1815
- @interval = interval
1816
- end
1817
- end
1818
- # Affiliate details for this purchase.
1819
- attr_accessor :affiliate
1820
- # Info whether the subscription will be auto renewed upon expiry.
1821
- attr_accessor :auto_renewal
1822
- # Subscription billing details for this purchase.
1823
- attr_accessor :billing_interval
1824
- # Subscription end time. Measured in seconds since the Unix epoch.
1825
- attr_accessor :ends_at
1826
- # Name of the product on subscription. e.g. Apple Music Subscription
1827
- attr_accessor :name
1828
- # Subscription start time. Measured in seconds since the Unix epoch.
1829
- attr_accessor :starts_at
1830
-
1831
- def initialize(
1832
- affiliate: nil,
1833
- auto_renewal: nil,
1834
- billing_interval: nil,
1835
- ends_at: nil,
1836
- name: nil,
1837
- starts_at: nil
1838
- )
1839
- @affiliate = affiliate
1840
- @auto_renewal = auto_renewal
1841
- @billing_interval = billing_interval
1842
- @ends_at = ends_at
1843
- @name = name
1844
- @starts_at = starts_at
1845
- end
1846
- end
1847
- # Car rental details for this PaymentIntent.
1848
- attr_accessor :car_rental
1849
- # Car rental data for this PaymentIntent.
1850
- attr_accessor :car_rental_data
1851
256
  # A unique value to identify the customer. This field is available only for card payments.
1852
257
  #
1853
258
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1854
259
  attr_accessor :customer_reference
1855
- # Event details for this PaymentIntent
1856
- attr_accessor :event_details
1857
- # Flight reservation details for this PaymentIntent
1858
- attr_accessor :flight
1859
- # Flight data for this PaymentIntent.
1860
- attr_accessor :flight_data
1861
- # Lodging reservation details for this PaymentIntent
1862
- attr_accessor :lodging
1863
- # Lodging data for this PaymentIntent.
1864
- attr_accessor :lodging_data
1865
260
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1866
261
  #
1867
262
  # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1868
263
  #
1869
264
  # 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.
1870
265
  attr_accessor :order_reference
1871
- # Subscription details for this PaymentIntent
1872
- attr_accessor :subscription
1873
266
 
1874
- def initialize(
1875
- car_rental: nil,
1876
- car_rental_data: nil,
1877
- customer_reference: nil,
1878
- event_details: nil,
1879
- flight: nil,
1880
- flight_data: nil,
1881
- lodging: nil,
1882
- lodging_data: nil,
1883
- order_reference: nil,
1884
- subscription: nil
1885
- )
1886
- @car_rental = car_rental
1887
- @car_rental_data = car_rental_data
267
+ def initialize(customer_reference: nil, order_reference: nil)
1888
268
  @customer_reference = customer_reference
1889
- @event_details = event_details
1890
- @flight = flight
1891
- @flight_data = flight_data
1892
- @lodging = lodging
1893
- @lodging_data = lodging_data
1894
269
  @order_reference = order_reference
1895
- @subscription = subscription
1896
270
  end
1897
271
  end
1898
272
 
@@ -1957,7 +331,7 @@ module Stripe
1957
331
  attr_accessor :line2
1958
332
  # ZIP or postal code.
1959
333
  attr_accessor :postal_code
1960
- # State, county, province, or region.
334
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1961
335
  attr_accessor :state
1962
336
 
1963
337
  def initialize(
@@ -2033,18 +407,8 @@ module Stripe
2033
407
  end
2034
408
 
2035
409
  class Giropay < ::Stripe::RequestParams; end
2036
- class Gopay < ::Stripe::RequestParams; end
2037
410
  class Grabpay < ::Stripe::RequestParams; end
2038
411
 
2039
- class IdBankTransfer < ::Stripe::RequestParams
2040
- # Bank where the account is held.
2041
- attr_accessor :bank
2042
-
2043
- def initialize(bank: nil)
2044
- @bank = bank
2045
- end
2046
- end
2047
-
2048
412
  class Ideal < ::Stripe::RequestParams
2049
413
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
2050
414
  attr_accessor :bank
@@ -2142,7 +506,6 @@ module Stripe
2142
506
  class Payco < ::Stripe::RequestParams; end
2143
507
  class Paynow < ::Stripe::RequestParams; end
2144
508
  class Paypal < ::Stripe::RequestParams; end
2145
- class Paypay < ::Stripe::RequestParams; end
2146
509
 
2147
510
  class Payto < ::Stripe::RequestParams
2148
511
  # The account number for the bank account.
@@ -2161,10 +524,9 @@ module Stripe
2161
524
 
2162
525
  class Pix < ::Stripe::RequestParams; end
2163
526
  class Promptpay < ::Stripe::RequestParams; end
2164
- class Qris < ::Stripe::RequestParams; end
2165
527
 
2166
528
  class RadarOptions < ::Stripe::RequestParams
2167
- # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
529
+ # 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.
2168
530
  attr_accessor :session
2169
531
 
2170
532
  def initialize(session: nil)
@@ -2172,29 +534,6 @@ module Stripe
2172
534
  end
2173
535
  end
2174
536
 
2175
- class Rechnung < ::Stripe::RequestParams
2176
- class Dob < ::Stripe::RequestParams
2177
- # The day of birth, between 1 and 31.
2178
- attr_accessor :day
2179
- # The month of birth, between 1 and 12.
2180
- attr_accessor :month
2181
- # The four-digit year of birth.
2182
- attr_accessor :year
2183
-
2184
- def initialize(day: nil, month: nil, year: nil)
2185
- @day = day
2186
- @month = month
2187
- @year = year
2188
- end
2189
- end
2190
- # Customer's date of birth
2191
- attr_accessor :dob
2192
-
2193
- def initialize(dob: nil)
2194
- @dob = dob
2195
- end
2196
- end
2197
-
2198
537
  class RevolutPay < ::Stripe::RequestParams; end
2199
538
  class SamsungPay < ::Stripe::RequestParams; end
2200
539
  class Satispay < ::Stripe::RequestParams; end
@@ -2208,8 +547,6 @@ module Stripe
2208
547
  end
2209
548
  end
2210
549
 
2211
- class Shopeepay < ::Stripe::RequestParams; end
2212
-
2213
550
  class Sofort < ::Stripe::RequestParams
2214
551
  # Two-letter ISO code representing the country the bank account is located in.
2215
552
  attr_accessor :country
@@ -2219,18 +556,6 @@ module Stripe
2219
556
  end
2220
557
  end
2221
558
 
2222
- class StripeBalance < ::Stripe::RequestParams
2223
- # The connected account ID whose Stripe balance to use as the source of payment
2224
- attr_accessor :account
2225
- # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
2226
- attr_accessor :source_type
2227
-
2228
- def initialize(account: nil, source_type: nil)
2229
- @account = account
2230
- @source_type = source_type
2231
- end
2232
- end
2233
-
2234
559
  class Swish < ::Stripe::RequestParams; end
2235
560
  class Twint < ::Stripe::RequestParams; end
2236
561
 
@@ -2303,12 +628,8 @@ module Stripe
2303
628
  attr_accessor :fpx
2304
629
  # If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
2305
630
  attr_accessor :giropay
2306
- # If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
2307
- attr_accessor :gopay
2308
631
  # If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
2309
632
  attr_accessor :grabpay
2310
- # If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
2311
- attr_accessor :id_bank_transfer
2312
633
  # If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
2313
634
  attr_accessor :ideal
2314
635
  # If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
@@ -2325,7 +646,7 @@ module Stripe
2325
646
  attr_accessor :link
2326
647
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2327
648
  attr_accessor :mb_way
2328
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
649
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2329
650
  attr_accessor :metadata
2330
651
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
2331
652
  attr_accessor :mobilepay
@@ -2347,20 +668,14 @@ module Stripe
2347
668
  attr_accessor :paynow
2348
669
  # If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
2349
670
  attr_accessor :paypal
2350
- # If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
2351
- attr_accessor :paypay
2352
671
  # If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2353
672
  attr_accessor :payto
2354
673
  # If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2355
674
  attr_accessor :pix
2356
675
  # If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
2357
676
  attr_accessor :promptpay
2358
- # If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
2359
- attr_accessor :qris
2360
- # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
677
+ # Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
2361
678
  attr_accessor :radar_options
2362
- # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2363
- attr_accessor :rechnung
2364
679
  # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2365
680
  attr_accessor :revolut_pay
2366
681
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
@@ -2369,12 +684,8 @@ module Stripe
2369
684
  attr_accessor :satispay
2370
685
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
2371
686
  attr_accessor :sepa_debit
2372
- # If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
2373
- attr_accessor :shopeepay
2374
687
  # If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
2375
688
  attr_accessor :sofort
2376
- # This hash contains details about the Stripe balance payment method.
2377
- attr_accessor :stripe_balance
2378
689
  # If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
2379
690
  attr_accessor :swish
2380
691
  # If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
@@ -2409,9 +720,7 @@ module Stripe
2409
720
  eps: nil,
2410
721
  fpx: nil,
2411
722
  giropay: nil,
2412
- gopay: nil,
2413
723
  grabpay: nil,
2414
- id_bank_transfer: nil,
2415
724
  ideal: nil,
2416
725
  interac_present: nil,
2417
726
  kakao_pay: nil,
@@ -2431,20 +740,15 @@ module Stripe
2431
740
  payco: nil,
2432
741
  paynow: nil,
2433
742
  paypal: nil,
2434
- paypay: nil,
2435
743
  payto: nil,
2436
744
  pix: nil,
2437
745
  promptpay: nil,
2438
- qris: nil,
2439
746
  radar_options: nil,
2440
- rechnung: nil,
2441
747
  revolut_pay: nil,
2442
748
  samsung_pay: nil,
2443
749
  satispay: nil,
2444
750
  sepa_debit: nil,
2445
- shopeepay: nil,
2446
751
  sofort: nil,
2447
- stripe_balance: nil,
2448
752
  swish: nil,
2449
753
  twint: nil,
2450
754
  type: nil,
@@ -2472,9 +776,7 @@ module Stripe
2472
776
  @eps = eps
2473
777
  @fpx = fpx
2474
778
  @giropay = giropay
2475
- @gopay = gopay
2476
779
  @grabpay = grabpay
2477
- @id_bank_transfer = id_bank_transfer
2478
780
  @ideal = ideal
2479
781
  @interac_present = interac_present
2480
782
  @kakao_pay = kakao_pay
@@ -2494,20 +796,15 @@ module Stripe
2494
796
  @payco = payco
2495
797
  @paynow = paynow
2496
798
  @paypal = paypal
2497
- @paypay = paypay
2498
799
  @payto = payto
2499
800
  @pix = pix
2500
801
  @promptpay = promptpay
2501
- @qris = qris
2502
802
  @radar_options = radar_options
2503
- @rechnung = rechnung
2504
803
  @revolut_pay = revolut_pay
2505
804
  @samsung_pay = samsung_pay
2506
805
  @satispay = satispay
2507
806
  @sepa_debit = sepa_debit
2508
- @shopeepay = shopeepay
2509
807
  @sofort = sofort
2510
- @stripe_balance = stripe_balance
2511
808
  @swish = swish
2512
809
  @twint = twint
2513
810
  @type = type
@@ -2878,48 +1175,6 @@ module Stripe
2878
1175
  end
2879
1176
  end
2880
1177
 
2881
- class StatementDetails < ::Stripe::RequestParams
2882
- class Address < ::Stripe::RequestParams
2883
- # City, district, suburb, town, or village.
2884
- attr_accessor :city
2885
- # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2886
- attr_accessor :country
2887
- # Address line 1, such as the street, PO Box, or company name.
2888
- attr_accessor :line1
2889
- # Address line 2, such as the apartment, suite, unit, or building.
2890
- attr_accessor :line2
2891
- # ZIP or postal code.
2892
- attr_accessor :postal_code
2893
- # State, county, province, or region.
2894
- attr_accessor :state
2895
-
2896
- def initialize(
2897
- city: nil,
2898
- country: nil,
2899
- line1: nil,
2900
- line2: nil,
2901
- postal_code: nil,
2902
- state: nil
2903
- )
2904
- @city = city
2905
- @country = country
2906
- @line1 = line1
2907
- @line2 = line2
2908
- @postal_code = postal_code
2909
- @state = state
2910
- end
2911
- end
2912
- # Please pass in an address that is within your Stripe user account country
2913
- attr_accessor :address
2914
- # Phone number (e.g., a toll-free number that customers can call)
2915
- attr_accessor :phone
2916
-
2917
- def initialize(address: nil, phone: nil)
2918
- @address = address
2919
- @phone = phone
2920
- end
2921
- end
2922
-
2923
1178
  class ThreeDSecure < ::Stripe::RequestParams
2924
1179
  class NetworkOptions < ::Stripe::RequestParams
2925
1180
  class CartesBancaires < ::Stripe::RequestParams
@@ -3004,7 +1259,7 @@ module Stripe
3004
1259
  attr_accessor :cvc_token
3005
1260
  # Installment configuration for payments attempted on this PaymentIntent.
3006
1261
  #
3007
- # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1262
+ # For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
3008
1263
  attr_accessor :installments
3009
1264
  # Configuration options for setting up an eMandate for cards issued in India.
3010
1265
  attr_accessor :mandate_options
@@ -3014,19 +1269,15 @@ module Stripe
3014
1269
  attr_accessor :moto
3015
1270
  # 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.
3016
1271
  attr_accessor :network
3017
- # Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
3018
- attr_accessor :request_decremental_authorization
3019
- # Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1272
+ # Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
3020
1273
  attr_accessor :request_extended_authorization
3021
- # Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
1274
+ # Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
3022
1275
  attr_accessor :request_incremental_authorization
3023
- # Request ability to make [multiple captures](https://stripe.com/docs/payments/multicapture) for this PaymentIntent.
1276
+ # Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
3024
1277
  attr_accessor :request_multicapture
3025
- # Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
1278
+ # Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
3026
1279
  attr_accessor :request_overcapture
3027
- # Request partial authorization on this PaymentIntent.
3028
- attr_accessor :request_partial_authorization
3029
- # 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://stripe.com/docs/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://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
1280
+ # 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.
3030
1281
  attr_accessor :request_three_d_secure
3031
1282
  # 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).
3032
1283
  attr_accessor :require_cvc_recollection
@@ -3044,8 +1295,6 @@ module Stripe
3044
1295
  attr_accessor :statement_descriptor_suffix_kana
3045
1296
  # 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.
3046
1297
  attr_accessor :statement_descriptor_suffix_kanji
3047
- # Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
3048
- attr_accessor :statement_details
3049
1298
  # If 3D Secure authentication was performed with a third-party provider,
3050
1299
  # the authentication details to use for this payment.
3051
1300
  attr_accessor :three_d_secure
@@ -3057,18 +1306,15 @@ module Stripe
3057
1306
  mandate_options: nil,
3058
1307
  moto: nil,
3059
1308
  network: nil,
3060
- request_decremental_authorization: nil,
3061
1309
  request_extended_authorization: nil,
3062
1310
  request_incremental_authorization: nil,
3063
1311
  request_multicapture: nil,
3064
1312
  request_overcapture: nil,
3065
- request_partial_authorization: nil,
3066
1313
  request_three_d_secure: nil,
3067
1314
  require_cvc_recollection: nil,
3068
1315
  setup_future_usage: nil,
3069
1316
  statement_descriptor_suffix_kana: nil,
3070
1317
  statement_descriptor_suffix_kanji: nil,
3071
- statement_details: nil,
3072
1318
  three_d_secure: nil
3073
1319
  )
3074
1320
  @capture_method = capture_method
@@ -3077,18 +1323,15 @@ module Stripe
3077
1323
  @mandate_options = mandate_options
3078
1324
  @moto = moto
3079
1325
  @network = network
3080
- @request_decremental_authorization = request_decremental_authorization
3081
1326
  @request_extended_authorization = request_extended_authorization
3082
1327
  @request_incremental_authorization = request_incremental_authorization
3083
1328
  @request_multicapture = request_multicapture
3084
1329
  @request_overcapture = request_overcapture
3085
- @request_partial_authorization = request_partial_authorization
3086
1330
  @request_three_d_secure = request_three_d_secure
3087
1331
  @require_cvc_recollection = require_cvc_recollection
3088
1332
  @setup_future_usage = setup_future_usage
3089
1333
  @statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
3090
1334
  @statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
3091
- @statement_details = statement_details
3092
1335
  @three_d_secure = three_d_secure
3093
1336
  end
3094
1337
  end
@@ -3108,9 +1351,9 @@ module Stripe
3108
1351
  #
3109
1352
  # 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.
3110
1353
  attr_accessor :capture_method
3111
- # Request ability to capture this payment beyond the standard [authorization validity window](https://stripe.com/docs/terminal/features/extended-authorizations#authorization-validity)
1354
+ # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
3112
1355
  attr_accessor :request_extended_authorization
3113
- # Request ability to [increment](https://stripe.com/docs/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://stripe.com/docs/api/payment_intents/confirm) response to verify support.
1356
+ # Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
3114
1357
  attr_accessor :request_incremental_authorization_support
3115
1358
  # Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
3116
1359
  attr_accessor :routing
@@ -3186,54 +1429,18 @@ module Stripe
3186
1429
  # Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
3187
1430
  attr_accessor :requested_address_types
3188
1431
  # The list of bank transfer types that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
3189
- attr_accessor :type
3190
-
3191
- def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
3192
- @eu_bank_transfer = eu_bank_transfer
3193
- @requested_address_types = requested_address_types
3194
- @type = type
3195
- end
3196
- end
3197
- # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
3198
- attr_accessor :bank_transfer
3199
- # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
3200
- attr_accessor :funding_type
3201
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3202
- #
3203
- # 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.
3204
- #
3205
- # 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.
3206
- #
3207
- # 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).
3208
- #
3209
- # 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`.
3210
- attr_accessor :setup_future_usage
3211
-
3212
- def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
3213
- @bank_transfer = bank_transfer
3214
- @funding_type = funding_type
3215
- @setup_future_usage = setup_future_usage
3216
- end
3217
- end
3218
-
3219
- class Eps < ::Stripe::RequestParams
3220
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3221
- #
3222
- # 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.
3223
- #
3224
- # 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.
3225
- #
3226
- # 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).
3227
- #
3228
- # 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`.
3229
- attr_accessor :setup_future_usage
1432
+ attr_accessor :type
3230
1433
 
3231
- def initialize(setup_future_usage: nil)
3232
- @setup_future_usage = setup_future_usage
1434
+ def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
1435
+ @eu_bank_transfer = eu_bank_transfer
1436
+ @requested_address_types = requested_address_types
1437
+ @type = type
1438
+ end
3233
1439
  end
3234
- end
3235
-
3236
- class Fpx < ::Stripe::RequestParams
1440
+ # Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
1441
+ attr_accessor :bank_transfer
1442
+ # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
1443
+ attr_accessor :funding_type
3237
1444
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3238
1445
  #
3239
1446
  # 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.
@@ -3245,12 +1452,14 @@ module Stripe
3245
1452
  # 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`.
3246
1453
  attr_accessor :setup_future_usage
3247
1454
 
3248
- def initialize(setup_future_usage: nil)
1455
+ def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
1456
+ @bank_transfer = bank_transfer
1457
+ @funding_type = funding_type
3249
1458
  @setup_future_usage = setup_future_usage
3250
1459
  end
3251
1460
  end
3252
1461
 
3253
- class Giropay < ::Stripe::RequestParams
1462
+ class Eps < ::Stripe::RequestParams
3254
1463
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3255
1464
  #
3256
1465
  # 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.
@@ -3267,7 +1476,7 @@ module Stripe
3267
1476
  end
3268
1477
  end
3269
1478
 
3270
- class Gopay < ::Stripe::RequestParams
1479
+ class Fpx < ::Stripe::RequestParams
3271
1480
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3272
1481
  #
3273
1482
  # 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.
@@ -3284,7 +1493,7 @@ module Stripe
3284
1493
  end
3285
1494
  end
3286
1495
 
3287
- class Grabpay < ::Stripe::RequestParams
1496
+ class Giropay < ::Stripe::RequestParams
3288
1497
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3289
1498
  #
3290
1499
  # 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.
@@ -3301,11 +1510,7 @@ module Stripe
3301
1510
  end
3302
1511
  end
3303
1512
 
3304
- class IdBankTransfer < ::Stripe::RequestParams
3305
- # 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.
3306
- attr_accessor :expires_after
3307
- # 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.
3308
- attr_accessor :expires_at
1513
+ class Grabpay < ::Stripe::RequestParams
3309
1514
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
3310
1515
  #
3311
1516
  # 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.
@@ -3317,9 +1522,7 @@ module Stripe
3317
1522
  # 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`.
3318
1523
  attr_accessor :setup_future_usage
3319
1524
 
3320
- def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
3321
- @expires_after = expires_after
3322
- @expires_at = expires_at
1525
+ def initialize(setup_future_usage: nil)
3323
1526
  @setup_future_usage = setup_future_usage
3324
1527
  end
3325
1528
  end
@@ -3430,939 +1633,6 @@ module Stripe
3430
1633
  @reference = reference
3431
1634
  end
3432
1635
  end
3433
-
3434
- class SupplementaryPurchaseData < ::Stripe::RequestParams
3435
- class BusReservationDetail < ::Stripe::RequestParams
3436
- class Arrival < ::Stripe::RequestParams
3437
- class Address < ::Stripe::RequestParams
3438
- # The city or town.
3439
- attr_accessor :city
3440
- # The country in ISO 3166-1 alpha-2 format.
3441
- attr_accessor :country
3442
- # The postal code formatted according to country.
3443
- attr_accessor :postal_code
3444
- # The state, county, province, or region formatted according to country.
3445
- attr_accessor :region
3446
- # Line 1 of the street address.
3447
- attr_accessor :street_address
3448
- # Line 2 of the street address.
3449
- attr_accessor :street_address2
3450
-
3451
- def initialize(
3452
- city: nil,
3453
- country: nil,
3454
- postal_code: nil,
3455
- region: nil,
3456
- street_address: nil,
3457
- street_address2: nil
3458
- )
3459
- @city = city
3460
- @country = country
3461
- @postal_code = postal_code
3462
- @region = region
3463
- @street_address = street_address
3464
- @street_address2 = street_address2
3465
- end
3466
- end
3467
- # Address of the arrival location.
3468
- attr_accessor :address
3469
- # Identifier name or reference for the arrival location.
3470
- attr_accessor :arrival_location
3471
-
3472
- def initialize(address: nil, arrival_location: nil)
3473
- @address = address
3474
- @arrival_location = arrival_location
3475
- end
3476
- end
3477
-
3478
- class Departure < ::Stripe::RequestParams
3479
- class Address < ::Stripe::RequestParams
3480
- # The city or town.
3481
- attr_accessor :city
3482
- # The country in ISO 3166-1 alpha-2 format.
3483
- attr_accessor :country
3484
- # The postal code formatted according to country.
3485
- attr_accessor :postal_code
3486
- # The state, county, province, or region formatted according to country.
3487
- attr_accessor :region
3488
- # Line 1 of the street address.
3489
- attr_accessor :street_address
3490
- # Line 2 of the street address.
3491
- attr_accessor :street_address2
3492
-
3493
- def initialize(
3494
- city: nil,
3495
- country: nil,
3496
- postal_code: nil,
3497
- region: nil,
3498
- street_address: nil,
3499
- street_address2: nil
3500
- )
3501
- @city = city
3502
- @country = country
3503
- @postal_code = postal_code
3504
- @region = region
3505
- @street_address = street_address
3506
- @street_address2 = street_address2
3507
- end
3508
- end
3509
- # Address of the departure location.
3510
- attr_accessor :address
3511
- # Timestamp of departure.
3512
- attr_accessor :departs_at
3513
- # Identifier name or reference for the origin location.
3514
- attr_accessor :departure_location
3515
-
3516
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3517
- @address = address
3518
- @departs_at = departs_at
3519
- @departure_location = departure_location
3520
- end
3521
- end
3522
-
3523
- class Insurance < ::Stripe::RequestParams
3524
- # Insurance currency.
3525
- attr_accessor :currency
3526
- # Name of the company providing the insurance.
3527
- attr_accessor :insurance_company_name
3528
- # Type of insurance.
3529
- attr_accessor :insurance_type
3530
- # Price of insurance in cents.
3531
- attr_accessor :price
3532
-
3533
- def initialize(
3534
- currency: nil,
3535
- insurance_company_name: nil,
3536
- insurance_type: nil,
3537
- price: nil
3538
- )
3539
- @currency = currency
3540
- @insurance_company_name = insurance_company_name
3541
- @insurance_type = insurance_type
3542
- @price = price
3543
- end
3544
- end
3545
-
3546
- class Passenger < ::Stripe::RequestParams
3547
- # The family name of the person.
3548
- attr_accessor :family_name
3549
- # The given name of the person.
3550
- attr_accessor :given_name
3551
-
3552
- def initialize(family_name: nil, given_name: nil)
3553
- @family_name = family_name
3554
- @given_name = given_name
3555
- end
3556
- end
3557
- # Name of associated or partner company for the service.
3558
- attr_accessor :affiliate_name
3559
- # Arrival details.
3560
- attr_accessor :arrival
3561
- # Name of transportation company.
3562
- attr_accessor :carrier_name
3563
- # Currency.
3564
- attr_accessor :currency
3565
- # Departure details.
3566
- attr_accessor :departure
3567
- # List of insurances for this reservation.
3568
- attr_accessor :insurances
3569
- # List of passengers that this reservation applies to.
3570
- attr_accessor :passengers
3571
- # Price in cents.
3572
- attr_accessor :price
3573
- # Ticket class.
3574
- attr_accessor :ticket_class
3575
-
3576
- def initialize(
3577
- affiliate_name: nil,
3578
- arrival: nil,
3579
- carrier_name: nil,
3580
- currency: nil,
3581
- departure: nil,
3582
- insurances: nil,
3583
- passengers: nil,
3584
- price: nil,
3585
- ticket_class: nil
3586
- )
3587
- @affiliate_name = affiliate_name
3588
- @arrival = arrival
3589
- @carrier_name = carrier_name
3590
- @currency = currency
3591
- @departure = departure
3592
- @insurances = insurances
3593
- @passengers = passengers
3594
- @price = price
3595
- @ticket_class = ticket_class
3596
- end
3597
- end
3598
-
3599
- class EventReservationDetail < ::Stripe::RequestParams
3600
- class Address < ::Stripe::RequestParams
3601
- # The city or town.
3602
- attr_accessor :city
3603
- # The country in ISO 3166-1 alpha-2 format.
3604
- attr_accessor :country
3605
- # The postal code formatted according to country.
3606
- attr_accessor :postal_code
3607
- # The state, county, province, or region formatted according to country.
3608
- attr_accessor :region
3609
- # Line 1 of the street address.
3610
- attr_accessor :street_address
3611
- # Line 2 of the street address.
3612
- attr_accessor :street_address2
3613
-
3614
- def initialize(
3615
- city: nil,
3616
- country: nil,
3617
- postal_code: nil,
3618
- region: nil,
3619
- street_address: nil,
3620
- street_address2: nil
3621
- )
3622
- @city = city
3623
- @country = country
3624
- @postal_code = postal_code
3625
- @region = region
3626
- @street_address = street_address
3627
- @street_address2 = street_address2
3628
- end
3629
- end
3630
-
3631
- class Insurance < ::Stripe::RequestParams
3632
- # Insurance currency.
3633
- attr_accessor :currency
3634
- # Name of the company providing the insurance.
3635
- attr_accessor :insurance_company_name
3636
- # Type of insurance.
3637
- attr_accessor :insurance_type
3638
- # Price of insurance in cents.
3639
- attr_accessor :price
3640
-
3641
- def initialize(
3642
- currency: nil,
3643
- insurance_company_name: nil,
3644
- insurance_type: nil,
3645
- price: nil
3646
- )
3647
- @currency = currency
3648
- @insurance_company_name = insurance_company_name
3649
- @insurance_type = insurance_type
3650
- @price = price
3651
- end
3652
- end
3653
- # Indicates if the tickets are digitally checked when entering the venue.
3654
- attr_accessor :access_controlled_venue
3655
- # Address of the event.
3656
- attr_accessor :address
3657
- # Name of associated or partner company for the service.
3658
- attr_accessor :affiliate_name
3659
- # End timestamp of the event.
3660
- attr_accessor :ends_at
3661
- # Company selling the ticket.
3662
- attr_accessor :event_company_name
3663
- # Name of the event.
3664
- attr_accessor :event_name
3665
- # Type of the event.
3666
- attr_accessor :event_type
3667
- # List of insurances for this event.
3668
- attr_accessor :insurances
3669
- # Start timestamp of the event.
3670
- attr_accessor :starts_at
3671
- # Name of the venue where the event takes place.
3672
- attr_accessor :venue_name
3673
-
3674
- def initialize(
3675
- access_controlled_venue: nil,
3676
- address: nil,
3677
- affiliate_name: nil,
3678
- ends_at: nil,
3679
- event_company_name: nil,
3680
- event_name: nil,
3681
- event_type: nil,
3682
- insurances: nil,
3683
- starts_at: nil,
3684
- venue_name: nil
3685
- )
3686
- @access_controlled_venue = access_controlled_venue
3687
- @address = address
3688
- @affiliate_name = affiliate_name
3689
- @ends_at = ends_at
3690
- @event_company_name = event_company_name
3691
- @event_name = event_name
3692
- @event_type = event_type
3693
- @insurances = insurances
3694
- @starts_at = starts_at
3695
- @venue_name = venue_name
3696
- end
3697
- end
3698
-
3699
- class FerryReservationDetail < ::Stripe::RequestParams
3700
- class Arrival < ::Stripe::RequestParams
3701
- class Address < ::Stripe::RequestParams
3702
- # The city or town.
3703
- attr_accessor :city
3704
- # The country in ISO 3166-1 alpha-2 format.
3705
- attr_accessor :country
3706
- # The postal code formatted according to country.
3707
- attr_accessor :postal_code
3708
- # The state, county, province, or region formatted according to country.
3709
- attr_accessor :region
3710
- # Line 1 of the street address.
3711
- attr_accessor :street_address
3712
- # Line 2 of the street address.
3713
- attr_accessor :street_address2
3714
-
3715
- def initialize(
3716
- city: nil,
3717
- country: nil,
3718
- postal_code: nil,
3719
- region: nil,
3720
- street_address: nil,
3721
- street_address2: nil
3722
- )
3723
- @city = city
3724
- @country = country
3725
- @postal_code = postal_code
3726
- @region = region
3727
- @street_address = street_address
3728
- @street_address2 = street_address2
3729
- end
3730
- end
3731
- # Address of the arrival location.
3732
- attr_accessor :address
3733
- # Identifier name or reference for the arrival location.
3734
- attr_accessor :arrival_location
3735
-
3736
- def initialize(address: nil, arrival_location: nil)
3737
- @address = address
3738
- @arrival_location = arrival_location
3739
- end
3740
- end
3741
-
3742
- class Departure < ::Stripe::RequestParams
3743
- class Address < ::Stripe::RequestParams
3744
- # The city or town.
3745
- attr_accessor :city
3746
- # The country in ISO 3166-1 alpha-2 format.
3747
- attr_accessor :country
3748
- # The postal code formatted according to country.
3749
- attr_accessor :postal_code
3750
- # The state, county, province, or region formatted according to country.
3751
- attr_accessor :region
3752
- # Line 1 of the street address.
3753
- attr_accessor :street_address
3754
- # Line 2 of the street address.
3755
- attr_accessor :street_address2
3756
-
3757
- def initialize(
3758
- city: nil,
3759
- country: nil,
3760
- postal_code: nil,
3761
- region: nil,
3762
- street_address: nil,
3763
- street_address2: nil
3764
- )
3765
- @city = city
3766
- @country = country
3767
- @postal_code = postal_code
3768
- @region = region
3769
- @street_address = street_address
3770
- @street_address2 = street_address2
3771
- end
3772
- end
3773
- # Address of the departure location.
3774
- attr_accessor :address
3775
- # Timestamp of departure.
3776
- attr_accessor :departs_at
3777
- # Identifier name or reference for the origin location.
3778
- attr_accessor :departure_location
3779
-
3780
- def initialize(address: nil, departs_at: nil, departure_location: nil)
3781
- @address = address
3782
- @departs_at = departs_at
3783
- @departure_location = departure_location
3784
- end
3785
- end
3786
-
3787
- class Insurance < ::Stripe::RequestParams
3788
- # Insurance currency.
3789
- attr_accessor :currency
3790
- # Name of the company providing the insurance.
3791
- attr_accessor :insurance_company_name
3792
- # Type of insurance.
3793
- attr_accessor :insurance_type
3794
- # Price of insurance in cents.
3795
- attr_accessor :price
3796
-
3797
- def initialize(
3798
- currency: nil,
3799
- insurance_company_name: nil,
3800
- insurance_type: nil,
3801
- price: nil
3802
- )
3803
- @currency = currency
3804
- @insurance_company_name = insurance_company_name
3805
- @insurance_type = insurance_type
3806
- @price = price
3807
- end
3808
- end
3809
-
3810
- class Passenger < ::Stripe::RequestParams
3811
- # The family name of the person.
3812
- attr_accessor :family_name
3813
- # The given name of the person.
3814
- attr_accessor :given_name
3815
-
3816
- def initialize(family_name: nil, given_name: nil)
3817
- @family_name = family_name
3818
- @given_name = given_name
3819
- end
3820
- end
3821
- # Name of associated or partner company for the service.
3822
- attr_accessor :affiliate_name
3823
- # Arrival details.
3824
- attr_accessor :arrival
3825
- # Name of transportation company.
3826
- attr_accessor :carrier_name
3827
- # Currency.
3828
- attr_accessor :currency
3829
- # Departure details.
3830
- attr_accessor :departure
3831
- # List of insurances for this reservation.
3832
- attr_accessor :insurances
3833
- # List of passengers that this reservation applies to.
3834
- attr_accessor :passengers
3835
- # Price in cents.
3836
- attr_accessor :price
3837
- # Ticket class.
3838
- attr_accessor :ticket_class
3839
-
3840
- def initialize(
3841
- affiliate_name: nil,
3842
- arrival: nil,
3843
- carrier_name: nil,
3844
- currency: nil,
3845
- departure: nil,
3846
- insurances: nil,
3847
- passengers: nil,
3848
- price: nil,
3849
- ticket_class: nil
3850
- )
3851
- @affiliate_name = affiliate_name
3852
- @arrival = arrival
3853
- @carrier_name = carrier_name
3854
- @currency = currency
3855
- @departure = departure
3856
- @insurances = insurances
3857
- @passengers = passengers
3858
- @price = price
3859
- @ticket_class = ticket_class
3860
- end
3861
- end
3862
-
3863
- class Insurance < ::Stripe::RequestParams
3864
- # Insurance currency.
3865
- attr_accessor :currency
3866
- # Name of the company providing the insurance.
3867
- attr_accessor :insurance_company_name
3868
- # Type of insurance
3869
- attr_accessor :insurance_type
3870
- # Price of insurance in cents.
3871
- attr_accessor :price
3872
-
3873
- def initialize(
3874
- currency: nil,
3875
- insurance_company_name: nil,
3876
- insurance_type: nil,
3877
- price: nil
3878
- )
3879
- @currency = currency
3880
- @insurance_company_name = insurance_company_name
3881
- @insurance_type = insurance_type
3882
- @price = price
3883
- end
3884
- end
3885
-
3886
- class MarketplaceSeller < ::Stripe::RequestParams
3887
- class MarketplaceSellerAddress < ::Stripe::RequestParams
3888
- # The city or town.
3889
- attr_accessor :city
3890
- # The country in ISO 3166-1 alpha-2 format.
3891
- attr_accessor :country
3892
- # The postal code formatted according to country.
3893
- attr_accessor :postal_code
3894
- # The state, county, province, or region formatted according to country.
3895
- attr_accessor :region
3896
- # Line 1 of the street address.
3897
- attr_accessor :street_address
3898
- # Line 2 of the street address.
3899
- attr_accessor :street_address2
3900
-
3901
- def initialize(
3902
- city: nil,
3903
- country: nil,
3904
- postal_code: nil,
3905
- region: nil,
3906
- street_address: nil,
3907
- street_address2: nil
3908
- )
3909
- @city = city
3910
- @country = country
3911
- @postal_code = postal_code
3912
- @region = region
3913
- @street_address = street_address
3914
- @street_address2 = street_address2
3915
- end
3916
- end
3917
- # The references to line items for purchases with multiple associated sub-sellers.
3918
- attr_accessor :line_item_references
3919
- # The address of the selling or delivering merchant.
3920
- attr_accessor :marketplace_seller_address
3921
- # The name of the marketplace seller.
3922
- attr_accessor :marketplace_seller_name
3923
- # The unique identifier for the marketplace seller.
3924
- attr_accessor :marketplace_seller_reference
3925
- # The number of transactions the sub-seller completed in the last 12 months.
3926
- attr_accessor :number_of_transactions
3927
- # The category of the product.
3928
- attr_accessor :product_category
3929
- # The date when the seller's account with the marketplace was last logged in.
3930
- attr_accessor :seller_last_login_at
3931
- # The current rating of the marketplace seller. If the marketplace uses numeric ranking, map these to the enum values.
3932
- attr_accessor :seller_rating
3933
- # The date when the seller's account with the marketplace was created.
3934
- attr_accessor :seller_registered_at
3935
- # The date when the seller's account with the marketplace was last updated.
3936
- attr_accessor :seller_updated_at
3937
- # The references to shipping addresses for purchases with multiple associated sub-sellers.
3938
- attr_accessor :shipping_references
3939
- # 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.
3940
- attr_accessor :volume_of_transactions
3941
-
3942
- def initialize(
3943
- line_item_references: nil,
3944
- marketplace_seller_address: nil,
3945
- marketplace_seller_name: nil,
3946
- marketplace_seller_reference: nil,
3947
- number_of_transactions: nil,
3948
- product_category: nil,
3949
- seller_last_login_at: nil,
3950
- seller_rating: nil,
3951
- seller_registered_at: nil,
3952
- seller_updated_at: nil,
3953
- shipping_references: nil,
3954
- volume_of_transactions: nil
3955
- )
3956
- @line_item_references = line_item_references
3957
- @marketplace_seller_address = marketplace_seller_address
3958
- @marketplace_seller_name = marketplace_seller_name
3959
- @marketplace_seller_reference = marketplace_seller_reference
3960
- @number_of_transactions = number_of_transactions
3961
- @product_category = product_category
3962
- @seller_last_login_at = seller_last_login_at
3963
- @seller_rating = seller_rating
3964
- @seller_registered_at = seller_registered_at
3965
- @seller_updated_at = seller_updated_at
3966
- @shipping_references = shipping_references
3967
- @volume_of_transactions = volume_of_transactions
3968
- end
3969
- end
3970
-
3971
- class RoundTripReservationDetail < ::Stripe::RequestParams
3972
- class Arrival < ::Stripe::RequestParams
3973
- class Address < ::Stripe::RequestParams
3974
- # The city or town.
3975
- attr_accessor :city
3976
- # The country in ISO 3166-1 alpha-2 format.
3977
- attr_accessor :country
3978
- # The postal code formatted according to country.
3979
- attr_accessor :postal_code
3980
- # The state, county, province, or region formatted according to country.
3981
- attr_accessor :region
3982
- # Line 1 of the street address.
3983
- attr_accessor :street_address
3984
- # Line 2 of the street address.
3985
- attr_accessor :street_address2
3986
-
3987
- def initialize(
3988
- city: nil,
3989
- country: nil,
3990
- postal_code: nil,
3991
- region: nil,
3992
- street_address: nil,
3993
- street_address2: nil
3994
- )
3995
- @city = city
3996
- @country = country
3997
- @postal_code = postal_code
3998
- @region = region
3999
- @street_address = street_address
4000
- @street_address2 = street_address2
4001
- end
4002
- end
4003
- # Address of the arrival location.
4004
- attr_accessor :address
4005
- # Identifier name or reference for the arrival location.
4006
- attr_accessor :arrival_location
4007
-
4008
- def initialize(address: nil, arrival_location: nil)
4009
- @address = address
4010
- @arrival_location = arrival_location
4011
- end
4012
- end
4013
-
4014
- class Departure < ::Stripe::RequestParams
4015
- class Address < ::Stripe::RequestParams
4016
- # The city or town.
4017
- attr_accessor :city
4018
- # The country in ISO 3166-1 alpha-2 format.
4019
- attr_accessor :country
4020
- # The postal code formatted according to country.
4021
- attr_accessor :postal_code
4022
- # The state, county, province, or region formatted according to country.
4023
- attr_accessor :region
4024
- # Line 1 of the street address.
4025
- attr_accessor :street_address
4026
- # Line 2 of the street address.
4027
- attr_accessor :street_address2
4028
-
4029
- def initialize(
4030
- city: nil,
4031
- country: nil,
4032
- postal_code: nil,
4033
- region: nil,
4034
- street_address: nil,
4035
- street_address2: nil
4036
- )
4037
- @city = city
4038
- @country = country
4039
- @postal_code = postal_code
4040
- @region = region
4041
- @street_address = street_address
4042
- @street_address2 = street_address2
4043
- end
4044
- end
4045
- # Address of the departure location.
4046
- attr_accessor :address
4047
- # Timestamp of departure.
4048
- attr_accessor :departs_at
4049
- # Identifier name or reference for the origin location.
4050
- attr_accessor :departure_location
4051
-
4052
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4053
- @address = address
4054
- @departs_at = departs_at
4055
- @departure_location = departure_location
4056
- end
4057
- end
4058
-
4059
- class Insurance < ::Stripe::RequestParams
4060
- # Insurance currency.
4061
- attr_accessor :currency
4062
- # Name of the company providing the insurance.
4063
- attr_accessor :insurance_company_name
4064
- # Type of insurance.
4065
- attr_accessor :insurance_type
4066
- # Price of insurance in cents.
4067
- attr_accessor :price
4068
-
4069
- def initialize(
4070
- currency: nil,
4071
- insurance_company_name: nil,
4072
- insurance_type: nil,
4073
- price: nil
4074
- )
4075
- @currency = currency
4076
- @insurance_company_name = insurance_company_name
4077
- @insurance_type = insurance_type
4078
- @price = price
4079
- end
4080
- end
4081
-
4082
- class Passenger < ::Stripe::RequestParams
4083
- # The family name of the person.
4084
- attr_accessor :family_name
4085
- # The given name of the person.
4086
- attr_accessor :given_name
4087
-
4088
- def initialize(family_name: nil, given_name: nil)
4089
- @family_name = family_name
4090
- @given_name = given_name
4091
- end
4092
- end
4093
- # Name of associated or partner company for the service.
4094
- attr_accessor :affiliate_name
4095
- # Arrival details.
4096
- attr_accessor :arrival
4097
- # Name of transportation company.
4098
- attr_accessor :carrier_name
4099
- # Currency.
4100
- attr_accessor :currency
4101
- # Departure details.
4102
- attr_accessor :departure
4103
- # List of insurances for this reservation.
4104
- attr_accessor :insurances
4105
- # List of passengers that this reservation applies to.
4106
- attr_accessor :passengers
4107
- # Price in cents.
4108
- attr_accessor :price
4109
- # Ticket class.
4110
- attr_accessor :ticket_class
4111
-
4112
- def initialize(
4113
- affiliate_name: nil,
4114
- arrival: nil,
4115
- carrier_name: nil,
4116
- currency: nil,
4117
- departure: nil,
4118
- insurances: nil,
4119
- passengers: nil,
4120
- price: nil,
4121
- ticket_class: nil
4122
- )
4123
- @affiliate_name = affiliate_name
4124
- @arrival = arrival
4125
- @carrier_name = carrier_name
4126
- @currency = currency
4127
- @departure = departure
4128
- @insurances = insurances
4129
- @passengers = passengers
4130
- @price = price
4131
- @ticket_class = ticket_class
4132
- end
4133
- end
4134
-
4135
- class TrainReservationDetail < ::Stripe::RequestParams
4136
- class Arrival < ::Stripe::RequestParams
4137
- class Address < ::Stripe::RequestParams
4138
- # The city or town.
4139
- attr_accessor :city
4140
- # The country in ISO 3166-1 alpha-2 format.
4141
- attr_accessor :country
4142
- # The postal code formatted according to country.
4143
- attr_accessor :postal_code
4144
- # The state, county, province, or region formatted according to country.
4145
- attr_accessor :region
4146
- # Line 1 of the street address.
4147
- attr_accessor :street_address
4148
- # Line 2 of the street address.
4149
- attr_accessor :street_address2
4150
-
4151
- def initialize(
4152
- city: nil,
4153
- country: nil,
4154
- postal_code: nil,
4155
- region: nil,
4156
- street_address: nil,
4157
- street_address2: nil
4158
- )
4159
- @city = city
4160
- @country = country
4161
- @postal_code = postal_code
4162
- @region = region
4163
- @street_address = street_address
4164
- @street_address2 = street_address2
4165
- end
4166
- end
4167
- # Address of the arrival location.
4168
- attr_accessor :address
4169
- # Identifier name or reference for the arrival location.
4170
- attr_accessor :arrival_location
4171
-
4172
- def initialize(address: nil, arrival_location: nil)
4173
- @address = address
4174
- @arrival_location = arrival_location
4175
- end
4176
- end
4177
-
4178
- class Departure < ::Stripe::RequestParams
4179
- class Address < ::Stripe::RequestParams
4180
- # The city or town.
4181
- attr_accessor :city
4182
- # The country in ISO 3166-1 alpha-2 format.
4183
- attr_accessor :country
4184
- # The postal code formatted according to country.
4185
- attr_accessor :postal_code
4186
- # The state, county, province, or region formatted according to country.
4187
- attr_accessor :region
4188
- # Line 1 of the street address.
4189
- attr_accessor :street_address
4190
- # Line 2 of the street address.
4191
- attr_accessor :street_address2
4192
-
4193
- def initialize(
4194
- city: nil,
4195
- country: nil,
4196
- postal_code: nil,
4197
- region: nil,
4198
- street_address: nil,
4199
- street_address2: nil
4200
- )
4201
- @city = city
4202
- @country = country
4203
- @postal_code = postal_code
4204
- @region = region
4205
- @street_address = street_address
4206
- @street_address2 = street_address2
4207
- end
4208
- end
4209
- # Address of the departure location.
4210
- attr_accessor :address
4211
- # Timestamp of departure.
4212
- attr_accessor :departs_at
4213
- # Identifier name or reference for the origin location.
4214
- attr_accessor :departure_location
4215
-
4216
- def initialize(address: nil, departs_at: nil, departure_location: nil)
4217
- @address = address
4218
- @departs_at = departs_at
4219
- @departure_location = departure_location
4220
- end
4221
- end
4222
-
4223
- class Insurance < ::Stripe::RequestParams
4224
- # Insurance currency.
4225
- attr_accessor :currency
4226
- # Name of the company providing the insurance.
4227
- attr_accessor :insurance_company_name
4228
- # Type of insurance.
4229
- attr_accessor :insurance_type
4230
- # Price of insurance in cents.
4231
- attr_accessor :price
4232
-
4233
- def initialize(
4234
- currency: nil,
4235
- insurance_company_name: nil,
4236
- insurance_type: nil,
4237
- price: nil
4238
- )
4239
- @currency = currency
4240
- @insurance_company_name = insurance_company_name
4241
- @insurance_type = insurance_type
4242
- @price = price
4243
- end
4244
- end
4245
-
4246
- class Passenger < ::Stripe::RequestParams
4247
- # The family name of the person.
4248
- attr_accessor :family_name
4249
- # The given name of the person.
4250
- attr_accessor :given_name
4251
-
4252
- def initialize(family_name: nil, given_name: nil)
4253
- @family_name = family_name
4254
- @given_name = given_name
4255
- end
4256
- end
4257
- # Name of associated or partner company for the service.
4258
- attr_accessor :affiliate_name
4259
- # Arrival details.
4260
- attr_accessor :arrival
4261
- # Name of transportation company.
4262
- attr_accessor :carrier_name
4263
- # Currency.
4264
- attr_accessor :currency
4265
- # Departure details.
4266
- attr_accessor :departure
4267
- # List of insurances for this reservation.
4268
- attr_accessor :insurances
4269
- # List of passengers that this reservation applies to.
4270
- attr_accessor :passengers
4271
- # Price in cents.
4272
- attr_accessor :price
4273
- # Ticket class.
4274
- attr_accessor :ticket_class
4275
-
4276
- def initialize(
4277
- affiliate_name: nil,
4278
- arrival: nil,
4279
- carrier_name: nil,
4280
- currency: nil,
4281
- departure: nil,
4282
- insurances: nil,
4283
- passengers: nil,
4284
- price: nil,
4285
- ticket_class: nil
4286
- )
4287
- @affiliate_name = affiliate_name
4288
- @arrival = arrival
4289
- @carrier_name = carrier_name
4290
- @currency = currency
4291
- @departure = departure
4292
- @insurances = insurances
4293
- @passengers = passengers
4294
- @price = price
4295
- @ticket_class = ticket_class
4296
- end
4297
- end
4298
-
4299
- class Voucher < ::Stripe::RequestParams
4300
- # Name of associated or partner company for this voucher.
4301
- attr_accessor :affiliate_name
4302
- # The voucher validity end time.
4303
- attr_accessor :ends_at
4304
- # The voucher validity start time.
4305
- attr_accessor :starts_at
4306
- # The issuer or provider of this voucher.
4307
- attr_accessor :voucher_company
4308
- # The name or reference to identify the voucher.
4309
- attr_accessor :voucher_name
4310
- # The type of this voucher.
4311
- attr_accessor :voucher_type
4312
-
4313
- def initialize(
4314
- affiliate_name: nil,
4315
- ends_at: nil,
4316
- starts_at: nil,
4317
- voucher_company: nil,
4318
- voucher_name: nil,
4319
- voucher_type: nil
4320
- )
4321
- @affiliate_name = affiliate_name
4322
- @ends_at = ends_at
4323
- @starts_at = starts_at
4324
- @voucher_company = voucher_company
4325
- @voucher_name = voucher_name
4326
- @voucher_type = voucher_type
4327
- end
4328
- end
4329
- # Supplementary bus reservation details.
4330
- attr_accessor :bus_reservation_details
4331
- # Supplementary event reservation details.
4332
- attr_accessor :event_reservation_details
4333
- # Supplementary ferry reservation details.
4334
- attr_accessor :ferry_reservation_details
4335
- # Supplementary insurance details.
4336
- attr_accessor :insurances
4337
- # Supplementary marketplace seller details.
4338
- attr_accessor :marketplace_sellers
4339
- # Supplementary round trip reservation details.
4340
- attr_accessor :round_trip_reservation_details
4341
- # Supplementary train reservation details.
4342
- attr_accessor :train_reservation_details
4343
- # Voucher details, such as a gift card or discount code.
4344
- attr_accessor :vouchers
4345
-
4346
- def initialize(
4347
- bus_reservation_details: nil,
4348
- event_reservation_details: nil,
4349
- ferry_reservation_details: nil,
4350
- insurances: nil,
4351
- marketplace_sellers: nil,
4352
- round_trip_reservation_details: nil,
4353
- train_reservation_details: nil,
4354
- vouchers: nil
4355
- )
4356
- @bus_reservation_details = bus_reservation_details
4357
- @event_reservation_details = event_reservation_details
4358
- @ferry_reservation_details = ferry_reservation_details
4359
- @insurances = insurances
4360
- @marketplace_sellers = marketplace_sellers
4361
- @round_trip_reservation_details = round_trip_reservation_details
4362
- @train_reservation_details = train_reservation_details
4363
- @vouchers = vouchers
4364
- end
4365
- end
4366
1636
  # Controls when the funds are captured from the customer's account.
4367
1637
  #
4368
1638
  # 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.
@@ -4385,23 +1655,19 @@ module Stripe
4385
1655
  attr_accessor :setup_future_usage
4386
1656
  # Subscription details if setting up or charging a subscription.
4387
1657
  attr_accessor :subscriptions
4388
- # Supplementary Purchase Data for the corresponding Klarna payment
4389
- attr_accessor :supplementary_purchase_data
4390
1658
 
4391
1659
  def initialize(
4392
1660
  capture_method: nil,
4393
1661
  on_demand: nil,
4394
1662
  preferred_locale: nil,
4395
1663
  setup_future_usage: nil,
4396
- subscriptions: nil,
4397
- supplementary_purchase_data: nil
1664
+ subscriptions: nil
4398
1665
  )
4399
1666
  @capture_method = capture_method
4400
1667
  @on_demand = on_demand
4401
1668
  @preferred_locale = preferred_locale
4402
1669
  @setup_future_usage = setup_future_usage
4403
1670
  @subscriptions = subscriptions
4404
- @supplementary_purchase_data = supplementary_purchase_data
4405
1671
  end
4406
1672
  end
4407
1673
 
@@ -4662,65 +1928,12 @@ module Stripe
4662
1928
  end
4663
1929
 
4664
1930
  class Paypal < ::Stripe::RequestParams
4665
- class LineItem < ::Stripe::RequestParams
4666
- class Tax < ::Stripe::RequestParams
4667
- # The tax for a single unit of the line item in minor units. Cannot be a negative number.
4668
- attr_accessor :amount
4669
- # The tax behavior for the line item.
4670
- attr_accessor :behavior
4671
-
4672
- def initialize(amount: nil, behavior: nil)
4673
- @amount = amount
4674
- @behavior = behavior
4675
- end
4676
- end
4677
- # Type of the line item.
4678
- attr_accessor :category
4679
- # Description of the line item.
4680
- attr_accessor :description
4681
- # Descriptive name of the line item.
4682
- attr_accessor :name
4683
- # Quantity of the line item. Must be a positive number.
4684
- attr_accessor :quantity
4685
- # Client facing stock keeping unit, article number or similar.
4686
- attr_accessor :sku
4687
- # The Stripe account ID of the connected account that sells the item.
4688
- attr_accessor :sold_by
4689
- # The tax information for the line item.
4690
- attr_accessor :tax
4691
- # Price for a single unit of the line item in minor units. Cannot be a negative number.
4692
- attr_accessor :unit_amount
4693
-
4694
- def initialize(
4695
- category: nil,
4696
- description: nil,
4697
- name: nil,
4698
- quantity: nil,
4699
- sku: nil,
4700
- sold_by: nil,
4701
- tax: nil,
4702
- unit_amount: nil
4703
- )
4704
- @category = category
4705
- @description = description
4706
- @name = name
4707
- @quantity = quantity
4708
- @sku = sku
4709
- @sold_by = sold_by
4710
- @tax = tax
4711
- @unit_amount = unit_amount
4712
- end
4713
- end
4714
1931
  # Controls when the funds will be captured from the customer's account.
4715
1932
  attr_accessor :capture_method
4716
- # The line items purchased by the customer.
4717
- attr_accessor :line_items
4718
- # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
1933
+ # [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
4719
1934
  attr_accessor :preferred_locale
4720
1935
  # 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.
4721
1936
  attr_accessor :reference
4722
- # 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.
4723
- attr_accessor :reference_id
4724
1937
  # The risk correlation ID for an on-session payment using a saved PayPal payment method.
4725
1938
  attr_accessor :risk_correlation_id
4726
1939
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -4733,40 +1946,19 @@ module Stripe
4733
1946
  #
4734
1947
  # 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`.
4735
1948
  attr_accessor :setup_future_usage
4736
- # 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.
4737
- attr_accessor :subsellers
4738
1949
 
4739
1950
  def initialize(
4740
1951
  capture_method: nil,
4741
- line_items: nil,
4742
1952
  preferred_locale: nil,
4743
1953
  reference: nil,
4744
- reference_id: nil,
4745
1954
  risk_correlation_id: nil,
4746
- setup_future_usage: nil,
4747
- subsellers: nil
1955
+ setup_future_usage: nil
4748
1956
  )
4749
1957
  @capture_method = capture_method
4750
- @line_items = line_items
4751
1958
  @preferred_locale = preferred_locale
4752
1959
  @reference = reference
4753
- @reference_id = reference_id
4754
1960
  @risk_correlation_id = risk_correlation_id
4755
1961
  @setup_future_usage = setup_future_usage
4756
- @subsellers = subsellers
4757
- end
4758
- end
4759
-
4760
- class Paypay < ::Stripe::RequestParams
4761
- # Controls when the funds are captured from the customer's account.
4762
- #
4763
- # 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.
4764
- #
4765
- # 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.
4766
- attr_accessor :capture_method
4767
-
4768
- def initialize(capture_method: nil)
4769
- @capture_method = capture_method
4770
1962
  end
4771
1963
  end
4772
1964
 
@@ -4821,52 +2013,12 @@ module Stripe
4821
2013
  end
4822
2014
 
4823
2015
  class Pix < ::Stripe::RequestParams
4824
- class MandateOptions < ::Stripe::RequestParams
4825
- # Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4826
- attr_accessor :amount
4827
- # Determines if the amount includes the IOF tax. Defaults to `never`.
4828
- attr_accessor :amount_includes_iof
4829
- # Type of amount. Defaults to `maximum`.
4830
- attr_accessor :amount_type
4831
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4832
- attr_accessor :currency
4833
- # Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
4834
- attr_accessor :end_date
4835
- # Schedule at which the future payments will be charged. Defaults to `weekly`.
4836
- attr_accessor :payment_schedule
4837
- # Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4838
- attr_accessor :reference
4839
- # Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
4840
- attr_accessor :start_date
4841
-
4842
- def initialize(
4843
- amount: nil,
4844
- amount_includes_iof: nil,
4845
- amount_type: nil,
4846
- currency: nil,
4847
- end_date: nil,
4848
- payment_schedule: nil,
4849
- reference: nil,
4850
- start_date: nil
4851
- )
4852
- @amount = amount
4853
- @amount_includes_iof = amount_includes_iof
4854
- @amount_type = amount_type
4855
- @currency = currency
4856
- @end_date = end_date
4857
- @payment_schedule = payment_schedule
4858
- @reference = reference
4859
- @start_date = start_date
4860
- end
4861
- end
4862
2016
  # Determines if the amount includes the IOF tax. Defaults to `never`.
4863
2017
  attr_accessor :amount_includes_iof
4864
2018
  # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
4865
2019
  attr_accessor :expires_after_seconds
4866
2020
  # The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
4867
2021
  attr_accessor :expires_at
4868
- # Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4869
- attr_accessor :mandate_options
4870
2022
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4871
2023
  #
4872
2024
  # 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.
@@ -4882,13 +2034,11 @@ module Stripe
4882
2034
  amount_includes_iof: nil,
4883
2035
  expires_after_seconds: nil,
4884
2036
  expires_at: nil,
4885
- mandate_options: nil,
4886
2037
  setup_future_usage: nil
4887
2038
  )
4888
2039
  @amount_includes_iof = amount_includes_iof
4889
2040
  @expires_after_seconds = expires_after_seconds
4890
2041
  @expires_at = expires_at
4891
- @mandate_options = mandate_options
4892
2042
  @setup_future_usage = setup_future_usage
4893
2043
  end
4894
2044
  end
@@ -4910,25 +2060,6 @@ module Stripe
4910
2060
  end
4911
2061
  end
4912
2062
 
4913
- class Qris < ::Stripe::RequestParams
4914
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
4915
- #
4916
- # 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.
4917
- #
4918
- # 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.
4919
- #
4920
- # 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).
4921
- #
4922
- # 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`.
4923
- attr_accessor :setup_future_usage
4924
-
4925
- def initialize(setup_future_usage: nil)
4926
- @setup_future_usage = setup_future_usage
4927
- end
4928
- end
4929
-
4930
- class Rechnung < ::Stripe::RequestParams; end
4931
-
4932
2063
  class RevolutPay < ::Stripe::RequestParams
4933
2064
  # Controls when the funds are captured from the customer's account.
4934
2065
  #
@@ -5008,23 +2139,6 @@ module Stripe
5008
2139
  end
5009
2140
  end
5010
2141
 
5011
- class Shopeepay < ::Stripe::RequestParams
5012
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5013
- #
5014
- # 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.
5015
- #
5016
- # 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.
5017
- #
5018
- # 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).
5019
- #
5020
- # 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`.
5021
- attr_accessor :setup_future_usage
5022
-
5023
- def initialize(setup_future_usage: nil)
5024
- @setup_future_usage = setup_future_usage
5025
- end
5026
- end
5027
-
5028
2142
  class Sofort < ::Stripe::RequestParams
5029
2143
  # Language shown to the payer on redirect.
5030
2144
  attr_accessor :preferred_language
@@ -5045,23 +2159,6 @@ module Stripe
5045
2159
  end
5046
2160
  end
5047
2161
 
5048
- class StripeBalance < ::Stripe::RequestParams
5049
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5050
- #
5051
- # 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.
5052
- #
5053
- # 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.
5054
- #
5055
- # 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).
5056
- #
5057
- # 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`.
5058
- attr_accessor :setup_future_usage
5059
-
5060
- def initialize(setup_future_usage: nil)
5061
- @setup_future_usage = setup_future_usage
5062
- end
5063
- end
5064
-
5065
2162
  class Swish < ::Stripe::RequestParams
5066
2163
  # A reference for this payment to be displayed in the Swish app.
5067
2164
  attr_accessor :reference
@@ -5104,27 +2201,13 @@ module Stripe
5104
2201
  class Filters < ::Stripe::RequestParams
5105
2202
  # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
5106
2203
  attr_accessor :account_subcategories
5107
- # ID of the institution to use to filter for selectable accounts.
5108
- attr_accessor :institution
5109
2204
 
5110
- def initialize(account_subcategories: nil, institution: nil)
2205
+ def initialize(account_subcategories: nil)
5111
2206
  @account_subcategories = account_subcategories
5112
- @institution = institution
5113
- end
5114
- end
5115
-
5116
- class ManualEntry < ::Stripe::RequestParams
5117
- # Settings for configuring manual entry of account details.
5118
- attr_accessor :mode
5119
-
5120
- def initialize(mode: nil)
5121
- @mode = mode
5122
2207
  end
5123
2208
  end
5124
2209
  # Provide filters for the linked accounts that the customer can select for the payment method.
5125
2210
  attr_accessor :filters
5126
- # Customize manual entry behavior
5127
- attr_accessor :manual_entry
5128
2211
  # 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`.
5129
2212
  attr_accessor :permissions
5130
2213
  # List of data features that you would like to retrieve upon account creation.
@@ -5132,15 +2215,8 @@ module Stripe
5132
2215
  # 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.
5133
2216
  attr_accessor :return_url
5134
2217
 
5135
- def initialize(
5136
- filters: nil,
5137
- manual_entry: nil,
5138
- permissions: nil,
5139
- prefetch: nil,
5140
- return_url: nil
5141
- )
2218
+ def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
5142
2219
  @filters = filters
5143
- @manual_entry = manual_entry
5144
2220
  @permissions = permissions
5145
2221
  @prefetch = prefetch
5146
2222
  @return_url = return_url
@@ -5285,12 +2361,8 @@ module Stripe
5285
2361
  attr_accessor :fpx
5286
2362
  # If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
5287
2363
  attr_accessor :giropay
5288
- # If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
5289
- attr_accessor :gopay
5290
2364
  # If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
5291
2365
  attr_accessor :grabpay
5292
- # If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
5293
- attr_accessor :id_bank_transfer
5294
2366
  # If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
5295
2367
  attr_accessor :ideal
5296
2368
  # If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
@@ -5327,18 +2399,12 @@ module Stripe
5327
2399
  attr_accessor :paynow
5328
2400
  # If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
5329
2401
  attr_accessor :paypal
5330
- # If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
5331
- attr_accessor :paypay
5332
2402
  # If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
5333
2403
  attr_accessor :payto
5334
2404
  # If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
5335
2405
  attr_accessor :pix
5336
2406
  # If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
5337
2407
  attr_accessor :promptpay
5338
- # If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
5339
- attr_accessor :qris
5340
- # If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
5341
- attr_accessor :rechnung
5342
2408
  # If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
5343
2409
  attr_accessor :revolut_pay
5344
2410
  # If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
@@ -5347,12 +2413,8 @@ module Stripe
5347
2413
  attr_accessor :satispay
5348
2414
  # If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
5349
2415
  attr_accessor :sepa_debit
5350
- # If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
5351
- attr_accessor :shopeepay
5352
2416
  # If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
5353
2417
  attr_accessor :sofort
5354
- # If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
5355
- attr_accessor :stripe_balance
5356
2418
  # If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
5357
2419
  attr_accessor :swish
5358
2420
  # If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
@@ -5385,9 +2447,7 @@ module Stripe
5385
2447
  eps: nil,
5386
2448
  fpx: nil,
5387
2449
  giropay: nil,
5388
- gopay: nil,
5389
2450
  grabpay: nil,
5390
- id_bank_transfer: nil,
5391
2451
  ideal: nil,
5392
2452
  interac_present: nil,
5393
2453
  kakao_pay: nil,
@@ -5406,19 +2466,14 @@ module Stripe
5406
2466
  payco: nil,
5407
2467
  paynow: nil,
5408
2468
  paypal: nil,
5409
- paypay: nil,
5410
2469
  payto: nil,
5411
2470
  pix: nil,
5412
2471
  promptpay: nil,
5413
- qris: nil,
5414
- rechnung: nil,
5415
2472
  revolut_pay: nil,
5416
2473
  samsung_pay: nil,
5417
2474
  satispay: nil,
5418
2475
  sepa_debit: nil,
5419
- shopeepay: nil,
5420
2476
  sofort: nil,
5421
- stripe_balance: nil,
5422
2477
  swish: nil,
5423
2478
  twint: nil,
5424
2479
  us_bank_account: nil,
@@ -5445,9 +2500,7 @@ module Stripe
5445
2500
  @eps = eps
5446
2501
  @fpx = fpx
5447
2502
  @giropay = giropay
5448
- @gopay = gopay
5449
2503
  @grabpay = grabpay
5450
- @id_bank_transfer = id_bank_transfer
5451
2504
  @ideal = ideal
5452
2505
  @interac_present = interac_present
5453
2506
  @kakao_pay = kakao_pay
@@ -5466,19 +2519,14 @@ module Stripe
5466
2519
  @payco = payco
5467
2520
  @paynow = paynow
5468
2521
  @paypal = paypal
5469
- @paypay = paypay
5470
2522
  @payto = payto
5471
2523
  @pix = pix
5472
2524
  @promptpay = promptpay
5473
- @qris = qris
5474
- @rechnung = rechnung
5475
2525
  @revolut_pay = revolut_pay
5476
2526
  @samsung_pay = samsung_pay
5477
2527
  @satispay = satispay
5478
2528
  @sepa_debit = sepa_debit
5479
- @shopeepay = shopeepay
5480
2529
  @sofort = sofort
5481
- @stripe_balance = stripe_balance
5482
2530
  @swish = swish
5483
2531
  @twint = twint
5484
2532
  @us_bank_account = us_bank_account
@@ -5488,7 +2536,7 @@ module Stripe
5488
2536
  end
5489
2537
 
5490
2538
  class RadarOptions < ::Stripe::RequestParams
5491
- # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
2539
+ # 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.
5492
2540
  attr_accessor :session
5493
2541
 
5494
2542
  def initialize(session: nil)
@@ -5508,7 +2556,7 @@ module Stripe
5508
2556
  attr_accessor :line2
5509
2557
  # ZIP or postal code.
5510
2558
  attr_accessor :postal_code
5511
- # State, county, province, or region.
2559
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
5512
2560
  attr_accessor :state
5513
2561
 
5514
2562
  def initialize(
@@ -5553,7 +2601,7 @@ module Stripe
5553
2601
  # the full amount is transferred.
5554
2602
  #
5555
2603
  # If you intend to collect a fee and you need a more robust reporting experience, using
5556
- # [application_fee_amount](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-application_fee_amount)
2604
+ # [application_fee_amount](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-application_fee_amount)
5557
2605
  # might be a better fit for your integration.
5558
2606
  attr_accessor :amount
5559
2607
  # If specified, successful charges will be attributed to the destination
@@ -5567,17 +2615,17 @@ module Stripe
5567
2615
  @destination = destination
5568
2616
  end
5569
2617
  end
5570
- # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
2618
+ # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
5571
2619
  attr_accessor :amount
5572
2620
  # Provides industry-specific information about the amount.
5573
2621
  attr_accessor :amount_details
5574
- # 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://stripe.com/docs/payments/connected-accounts).
2622
+ # 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).
5575
2623
  attr_accessor :application_fee_amount
5576
2624
  # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
5577
2625
  attr_accessor :automatic_payment_methods
5578
2626
  # Controls when the funds will be captured from the customer's account.
5579
2627
  attr_accessor :capture_method
5580
- # Set to `true` to attempt to [confirm this PaymentIntent](https://stripe.com/docs/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://stripe.com/docs/api/payment_intents/confirm).
2628
+ # Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately. This parameter defaults to `false`. When creating and confirming a PaymentIntent at the same time, you can also provide the parameters available in the [Confirm API](https://docs.stripe.com/api/payment_intents/confirm).
5581
2629
  attr_accessor :confirm
5582
2630
  # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
5583
2631
  attr_accessor :confirmation_method
@@ -5591,62 +2639,58 @@ module Stripe
5591
2639
  #
5592
2640
  # Payment methods attached to other Customers cannot be used with this PaymentIntent.
5593
2641
  #
5594
- # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2642
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
5595
2643
  attr_accessor :customer
5596
- # ID of the Account this PaymentIntent belongs to, if one exists.
2644
+ # ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
5597
2645
  #
5598
2646
  # Payment methods attached to other Accounts cannot be used with this PaymentIntent.
5599
2647
  #
5600
- # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
2648
+ # If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
5601
2649
  attr_accessor :customer_account
5602
2650
  # An arbitrary string attached to the object. Often useful for displaying to users.
5603
2651
  attr_accessor :description
5604
- # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2652
+ # Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5605
2653
  attr_accessor :error_on_requires_action
5606
2654
  # The list of payment method types to exclude from use with this payment.
5607
2655
  attr_accessor :excluded_payment_method_types
5608
2656
  # Specifies which fields in the response should be expanded.
5609
2657
  attr_accessor :expand
5610
- # The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
5611
- attr_accessor :fx_quote
5612
2658
  # Automations to be run during the PaymentIntent lifecycle
5613
2659
  attr_accessor :hooks
5614
- # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2660
+ # ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5615
2661
  attr_accessor :mandate
5616
- # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2662
+ # This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5617
2663
  attr_accessor :mandate_data
5618
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2664
+ # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
5619
2665
  attr_accessor :metadata
5620
- # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2666
+ # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards). This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5621
2667
  attr_accessor :off_session
5622
- # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2668
+ # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5623
2669
  attr_accessor :on_behalf_of
5624
2670
  # Provides industry-specific information about the charge.
5625
2671
  attr_accessor :payment_details
5626
- # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
2672
+ # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
5627
2673
  #
5628
2674
  # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
5629
- # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://stripe.com/docs/api#create_payment_intent-customer) parameter of this PaymentIntent.
2675
+ # If the payment method is attached to a Customer, you must also provide the ID of that Customer as the [customer](https://api.stripe.com#create_payment_intent-customer) parameter of this PaymentIntent.
5630
2676
  # end
5631
2677
  attr_accessor :payment_method
5632
- # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent.
2678
+ # The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
5633
2679
  attr_accessor :payment_method_configuration
5634
2680
  # If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
5635
- # in the [payment_method](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
2681
+ # in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
5636
2682
  # property on the PaymentIntent.
5637
2683
  attr_accessor :payment_method_data
5638
2684
  # Payment method-specific configuration for this PaymentIntent.
5639
2685
  attr_accessor :payment_method_options
5640
2686
  # The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
5641
2687
  attr_accessor :payment_method_types
5642
- # Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/docs/radar/radar-session).
2688
+ # Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
5643
2689
  attr_accessor :radar_options
5644
2690
  # Email address to send the receipt to. If you specify `receipt_email` for a payment in live mode, you send a receipt regardless of your [email settings](https://dashboard.stripe.com/account/emails).
5645
2691
  attr_accessor :receipt_email
5646
- # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
2692
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-confirm).
5647
2693
  attr_accessor :return_url
5648
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
5649
- attr_accessor :secret_key_confirmation
5650
2694
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
5651
2695
  #
5652
2696
  # 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.
@@ -5664,9 +2708,9 @@ module Stripe
5664
2708
  # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
5665
2709
  attr_accessor :statement_descriptor_suffix
5666
2710
  # The parameters that you can use to automatically create a Transfer.
5667
- # Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
2711
+ # Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
5668
2712
  attr_accessor :transfer_data
5669
- # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
2713
+ # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers).
5670
2714
  attr_accessor :transfer_group
5671
2715
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
5672
2716
  attr_accessor :use_stripe_sdk
@@ -5687,7 +2731,6 @@ module Stripe
5687
2731
  error_on_requires_action: nil,
5688
2732
  excluded_payment_method_types: nil,
5689
2733
  expand: nil,
5690
- fx_quote: nil,
5691
2734
  hooks: nil,
5692
2735
  mandate: nil,
5693
2736
  mandate_data: nil,
@@ -5703,7 +2746,6 @@ module Stripe
5703
2746
  radar_options: nil,
5704
2747
  receipt_email: nil,
5705
2748
  return_url: nil,
5706
- secret_key_confirmation: nil,
5707
2749
  setup_future_usage: nil,
5708
2750
  shipping: nil,
5709
2751
  statement_descriptor: nil,
@@ -5727,7 +2769,6 @@ module Stripe
5727
2769
  @error_on_requires_action = error_on_requires_action
5728
2770
  @excluded_payment_method_types = excluded_payment_method_types
5729
2771
  @expand = expand
5730
- @fx_quote = fx_quote
5731
2772
  @hooks = hooks
5732
2773
  @mandate = mandate
5733
2774
  @mandate_data = mandate_data
@@ -5743,7 +2784,6 @@ module Stripe
5743
2784
  @radar_options = radar_options
5744
2785
  @receipt_email = receipt_email
5745
2786
  @return_url = return_url
5746
- @secret_key_confirmation = secret_key_confirmation
5747
2787
  @setup_future_usage = setup_future_usage
5748
2788
  @shipping = shipping
5749
2789
  @statement_descriptor = statement_descriptor