stripe 15.0.0 → 15.1.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1537 -676
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_requestor.rb +28 -0
  6. data/lib/stripe/api_version.rb +1 -1
  7. data/lib/stripe/errors.rb +54 -0
  8. data/lib/stripe/event_types.rb +75 -0
  9. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  10. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  15. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  17. data/lib/stripe/events/v2_core_account_link_completed_event.rb +13 -0
  18. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  19. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  20. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  21. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  22. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  23. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  24. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  25. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  32. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  41. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  49. data/lib/stripe/object_types.rb +51 -0
  50. data/lib/stripe/request_signing_authenticator.rb +79 -0
  51. data/lib/stripe/resources/account.rb +663 -1
  52. data/lib/stripe/resources/account_notice.rb +123 -0
  53. data/lib/stripe/resources/account_session.rb +299 -1
  54. data/lib/stripe/resources/balance_settings.rb +101 -0
  55. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  56. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  57. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  58. data/lib/stripe/resources/billing/meter_error_report.rb +59 -0
  59. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  60. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  61. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  62. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  63. data/lib/stripe/resources/card.rb +2 -0
  64. data/lib/stripe/resources/cash_balance.rb +2 -0
  65. data/lib/stripe/resources/charge.rb +1454 -0
  66. data/lib/stripe/resources/checkout/session.rb +295 -7
  67. data/lib/stripe/resources/confirmation_token.rb +237 -3
  68. data/lib/stripe/resources/coupon.rb +1 -1
  69. data/lib/stripe/resources/credit_note.rb +10 -0
  70. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  71. data/lib/stripe/resources/customer.rb +2 -0
  72. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  73. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  74. data/lib/stripe/resources/customer_session.rb +6 -1
  75. data/lib/stripe/resources/discount.rb +2 -0
  76. data/lib/stripe/resources/event.rb +33 -0
  77. data/lib/stripe/resources/financial_connections/account.rb +20 -1
  78. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  79. data/lib/stripe/resources/financial_connections/institution.rb +90 -0
  80. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  81. data/lib/stripe/resources/gift_cards/card.rb +208 -0
  82. data/lib/stripe/resources/gift_cards/transaction.rb +272 -0
  83. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  84. data/lib/stripe/resources/invoice.rb +1176 -16
  85. data/lib/stripe/resources/invoice_item.rb +78 -2
  86. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  87. data/lib/stripe/resources/invoice_payment.rb +2 -53
  88. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  89. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  90. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  91. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  92. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  93. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  94. data/lib/stripe/resources/line_item.rb +37 -0
  95. data/lib/stripe/resources/login_link.rb +2 -1
  96. data/lib/stripe/resources/mandate.rb +24 -0
  97. data/lib/stripe/resources/margin.rb +115 -0
  98. data/lib/stripe/resources/order.rb +2859 -0
  99. data/lib/stripe/resources/payment_attempt_record.rb +1078 -0
  100. data/lib/stripe/resources/payment_intent.rb +5242 -440
  101. data/lib/stripe/resources/payment_method.rb +199 -4
  102. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  103. data/lib/stripe/resources/payment_method_domain.rb +13 -0
  104. data/lib/stripe/resources/payment_record.rb +1607 -0
  105. data/lib/stripe/resources/payout.rb +6 -0
  106. data/lib/stripe/resources/price.rb +30 -0
  107. data/lib/stripe/resources/privacy/redaction_job.rb +251 -0
  108. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +35 -0
  109. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +54 -0
  110. data/lib/stripe/resources/product.rb +59 -0
  111. data/lib/stripe/resources/promotion_code.rb +10 -0
  112. data/lib/stripe/resources/quote.rb +2042 -6
  113. data/lib/stripe/resources/quote_line.rb +274 -0
  114. data/lib/stripe/resources/quote_preview_invoice.rb +663 -0
  115. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +337 -0
  116. data/lib/stripe/resources/refund.rb +9 -0
  117. data/lib/stripe/resources/setup_attempt.rb +21 -0
  118. data/lib/stripe/resources/setup_intent.rb +605 -18
  119. data/lib/stripe/resources/source.rb +30 -1
  120. data/lib/stripe/resources/subscription.rb +292 -9
  121. data/lib/stripe/resources/subscription_item.rb +84 -3
  122. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  123. data/lib/stripe/resources/tax/association.rb +89 -0
  124. data/lib/stripe/resources/tax/form.rb +211 -0
  125. data/lib/stripe/resources/tax/registration.rb +20 -0
  126. data/lib/stripe/resources/tax_id.rb +12 -2
  127. data/lib/stripe/resources/terminal/reader.rb +406 -0
  128. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  129. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  130. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  131. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  132. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  133. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  134. data/lib/stripe/resources/v2/core/account.rb +1715 -0
  135. data/lib/stripe/resources/v2/core/account_link.rb +54 -0
  136. data/lib/stripe/resources/v2/core/person.rb +272 -0
  137. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +72 -0
  138. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +37 -0
  139. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +18 -0
  140. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +20 -0
  141. data/lib/stripe/resources/v2/money_management/adjustment.rb +49 -0
  142. data/lib/stripe/resources/v2/money_management/financial_account.rb +56 -0
  143. data/lib/stripe/resources/v2/money_management/financial_address.rb +66 -0
  144. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +92 -0
  145. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +127 -0
  146. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +74 -0
  147. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +43 -0
  148. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +115 -0
  149. data/lib/stripe/resources/v2/money_management/payout_method.rb +73 -0
  150. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +47 -0
  151. data/lib/stripe/resources/v2/money_management/received_credit.rb +134 -0
  152. data/lib/stripe/resources/v2/money_management/received_debit.rb +106 -0
  153. data/lib/stripe/resources/v2/money_management/transaction.rb +76 -0
  154. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +66 -0
  155. data/lib/stripe/resources.rb +88 -0
  156. data/lib/stripe/services/account_notice_service.rb +101 -0
  157. data/lib/stripe/services/account_service.rb +570 -1
  158. data/lib/stripe/services/account_session_service.rb +269 -1
  159. data/lib/stripe/services/balance_settings_service.rb +96 -0
  160. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  161. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  162. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  163. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  164. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  165. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  166. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  167. data/lib/stripe/services/capital_service.rb +15 -0
  168. data/lib/stripe/services/charge_service.rb +1334 -0
  169. data/lib/stripe/services/checkout/session_service.rb +195 -4
  170. data/lib/stripe/services/credit_note_service.rb +4 -0
  171. data/lib/stripe/services/customer_session_service.rb +4 -1
  172. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -123
  173. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  174. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  175. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  176. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  177. data/lib/stripe/services/financial_connections_service.rb +2 -1
  178. data/lib/stripe/services/gift_cards/card_service.rb +170 -0
  179. data/lib/stripe/services/gift_cards/transaction_service.rb +209 -0
  180. data/lib/stripe/services/gift_cards_service.rb +14 -0
  181. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  182. data/lib/stripe/services/invoice_item_service.rb +74 -2
  183. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  184. data/lib/stripe/services/invoice_payment_service.rb +5 -33
  185. data/lib/stripe/services/invoice_service.rb +1088 -17
  186. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  187. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  188. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  189. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  190. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  191. data/lib/stripe/services/issuing_service.rb +5 -1
  192. data/lib/stripe/services/margin_service.rb +119 -0
  193. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  194. data/lib/stripe/services/order_service.rb +2268 -0
  195. data/lib/stripe/services/payment_attempt_record_service.rb +49 -0
  196. data/lib/stripe/services/payment_intent_service.rb +4634 -261
  197. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  198. data/lib/stripe/services/payment_method_service.rb +129 -4
  199. data/lib/stripe/services/payment_record_service.rb +542 -0
  200. data/lib/stripe/services/payout_service.rb +4 -0
  201. data/lib/stripe/services/price_service.rb +19 -0
  202. data/lib/stripe/services/privacy/redaction_job_service.rb +231 -0
  203. data/{rbi/stripe/services/climate/product_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +36 -25
  204. data/lib/stripe/services/privacy_service.rb +13 -0
  205. data/lib/stripe/services/product_service.rb +38 -0
  206. data/lib/stripe/services/promotion_code_service.rb +8 -0
  207. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  208. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  209. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_subscription_schedule_service.rb} +20 -16
  210. data/lib/stripe/services/quote_service.rb +1726 -7
  211. data/lib/stripe/services/setup_intent_service.rb +565 -18
  212. data/lib/stripe/services/subscription_item_service.rb +75 -3
  213. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  214. data/lib/stripe/services/subscription_service.rb +253 -9
  215. data/lib/stripe/services/tax/association_service.rb +31 -0
  216. data/lib/stripe/services/tax/form_service.rb +100 -0
  217. data/lib/stripe/services/tax/registration_service.rb +13 -0
  218. data/lib/stripe/services/tax_id_service.rb +8 -2
  219. data/lib/stripe/services/tax_service.rb +3 -1
  220. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  221. data/lib/stripe/services/terminal/reader_service.rb +180 -0
  222. data/lib/stripe/services/terminal_service.rb +2 -1
  223. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +151 -3
  224. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  225. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  226. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  227. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  228. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  229. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  230. data/lib/stripe/services/v1_services.rb +11 -2
  231. data/lib/stripe/services/v2/core/account_link_service.rb +76 -0
  232. data/lib/stripe/services/v2/core/account_service.rb +4130 -0
  233. data/lib/stripe/services/v2/core/accounts/person_service.rb +1040 -0
  234. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +135 -0
  235. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +109 -0
  236. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  237. data/lib/stripe/services/v2/core_service.rb +4 -1
  238. data/lib/stripe/services/v2/money_management/adjustment_service.rb +75 -0
  239. data/lib/stripe/services/v2/money_management/financial_account_service.rb +44 -0
  240. data/lib/stripe/services/v2/money_management/financial_address_service.rb +81 -0
  241. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +126 -0
  242. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +80 -0
  243. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +202 -0
  244. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +237 -0
  245. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +174 -0
  246. data/lib/stripe/services/v2/money_management/payout_method_service.rb +95 -0
  247. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  248. data/lib/stripe/services/v2/money_management/received_credit_service.rb +71 -0
  249. data/lib/stripe/services/v2/money_management/received_debit_service.rb +44 -0
  250. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +70 -0
  251. data/lib/stripe/services/v2/money_management/transaction_service.rb +74 -0
  252. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  253. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  254. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +50 -0
  255. data/lib/stripe/services/v2_services.rb +4 -2
  256. data/lib/stripe/services.rb +52 -0
  257. data/lib/stripe/stripe_configuration.rb +3 -1
  258. data/lib/stripe/stripe_object.rb +1 -1
  259. data/lib/stripe/util.rb +7 -1
  260. data/lib/stripe/version.rb +1 -1
  261. data/lib/stripe.rb +55 -0
  262. data/rbi/stripe.rbi +190156 -0
  263. data/stripe.gemspec +4 -1
  264. metadata +146 -324
  265. data/rbi/stripe/resources/account.rbi +0 -4840
  266. data/rbi/stripe/resources/account_link.rbi +0 -74
  267. data/rbi/stripe/resources/account_session.rbi +0 -894
  268. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -90
  269. data/rbi/stripe/resources/application.rbi +0 -20
  270. data/rbi/stripe/resources/application_fee.rbi +0 -118
  271. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  272. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  273. data/rbi/stripe/resources/balance.rbi +0 -180
  274. data/rbi/stripe/resources/balance_transaction.rbi +0 -144
  275. data/rbi/stripe/resources/bank_account.rbi +0 -127
  276. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  277. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  278. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  279. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  280. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  281. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  282. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  283. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  284. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  285. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -645
  286. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  287. data/rbi/stripe/resources/capability.rbi +0 -125
  288. data/rbi/stripe/resources/card.rbi +0 -125
  289. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  290. data/rbi/stripe/resources/charge.rbi +0 -2054
  291. data/rbi/stripe/resources/checkout/session.rbi +0 -3951
  292. data/rbi/stripe/resources/climate/order.rbi +0 -245
  293. data/rbi/stripe/resources/climate/product.rbi +0 -75
  294. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  295. data/rbi/stripe/resources/confirmation_token.rbi +0 -1793
  296. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  297. data/rbi/stripe/resources/country_spec.rbi +0 -85
  298. data/rbi/stripe/resources/coupon.rbi +0 -252
  299. data/rbi/stripe/resources/credit_note.rbi +0 -747
  300. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  301. data/rbi/stripe/resources/customer.rbi +0 -1009
  302. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  303. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  304. data/rbi/stripe/resources/customer_session.rbi +0 -200
  305. data/rbi/stripe/resources/discount.rbi +0 -53
  306. data/rbi/stripe/resources/dispute.rbi +0 -761
  307. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  308. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  309. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  310. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  311. data/rbi/stripe/resources/event.rbi +0 -146
  312. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  313. data/rbi/stripe/resources/file.rbi +0 -143
  314. data/rbi/stripe/resources/file_link.rbi +0 -141
  315. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  316. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  317. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  318. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  319. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  320. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  321. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  322. data/rbi/stripe/resources/identity/verification_report.rbi +0 -351
  323. data/rbi/stripe/resources/identity/verification_session.rbi +0 -517
  324. data/rbi/stripe/resources/invoice.rbi +0 -3733
  325. data/rbi/stripe/resources/invoice_item.rbi +0 -475
  326. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  327. data/rbi/stripe/resources/invoice_payment.rbi +0 -114
  328. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  329. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  330. data/rbi/stripe/resources/issuing/card.rbi +0 -741
  331. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  332. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  333. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  334. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  335. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  336. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  337. data/rbi/stripe/resources/line_item.rbi +0 -72
  338. data/rbi/stripe/resources/login_link.rbi +0 -18
  339. data/rbi/stripe/resources/mandate.rbi +0 -187
  340. data/rbi/stripe/resources/payment_intent.rbi +0 -9731
  341. data/rbi/stripe/resources/payment_link.rbi +0 -1801
  342. data/rbi/stripe/resources/payment_method.rbi +0 -1822
  343. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3154
  344. data/rbi/stripe/resources/payment_method_domain.rbi +0 -212
  345. data/rbi/stripe/resources/payout.rbi +0 -300
  346. data/rbi/stripe/resources/person.rbi +0 -371
  347. data/rbi/stripe/resources/plan.rbi +0 -373
  348. data/rbi/stripe/resources/price.rbi +0 -694
  349. data/rbi/stripe/resources/product.rbi +0 -557
  350. data/rbi/stripe/resources/product_feature.rbi +0 -26
  351. data/rbi/stripe/resources/promotion_code.rbi +0 -261
  352. data/rbi/stripe/resources/quote.rbi +0 -1123
  353. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  354. data/rbi/stripe/resources/radar/value_list.rbi +0 -170
  355. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -131
  356. data/rbi/stripe/resources/refund.rbi +0 -516
  357. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  358. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  359. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  360. data/rbi/stripe/resources/reversal.rbi +0 -51
  361. data/rbi/stripe/resources/review.rbi +0 -154
  362. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  363. data/rbi/stripe/resources/setup_intent.rbi +0 -3860
  364. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  365. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  366. data/rbi/stripe/resources/source.rbi +0 -1496
  367. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  368. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  369. data/rbi/stripe/resources/subscription.rbi +0 -1964
  370. data/rbi/stripe/resources/subscription_item.rbi +0 -370
  371. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1495
  372. data/rbi/stripe/resources/tax/calculation.rbi +0 -474
  373. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -88
  374. data/rbi/stripe/resources/tax/registration.rbi +0 -2485
  375. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  376. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  377. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  378. data/rbi/stripe/resources/tax_code.rbi +0 -44
  379. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  380. data/rbi/stripe/resources/tax_id.rbi +0 -167
  381. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  382. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1388
  383. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  384. data/rbi/stripe/resources/terminal/location.rbi +0 -224
  385. data/rbi/stripe/resources/terminal/reader.rbi +0 -587
  386. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -134
  387. data/rbi/stripe/resources/token.rbi +0 -1217
  388. data/rbi/stripe/resources/topup.rbi +0 -222
  389. data/rbi/stripe/resources/transfer.rbi +0 -199
  390. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  391. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  392. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -865
  393. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  394. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  395. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  396. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  397. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  398. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  399. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  400. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  401. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  402. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  403. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  404. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  405. data/rbi/stripe/resources/v2/event.rbi +0 -48
  406. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  407. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -170
  408. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  409. data/rbi/stripe/services/account_link_service.rbi +0 -58
  410. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  411. data/rbi/stripe/services/account_person_service.rbi +0 -923
  412. data/rbi/stripe/services/account_service.rbi +0 -4143
  413. data/rbi/stripe/services/account_session_service.rbi +0 -572
  414. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -78
  415. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  416. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  417. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  418. data/rbi/stripe/services/apps_service.rbi +0 -9
  419. data/rbi/stripe/services/balance_service.rbi +0 -21
  420. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  421. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  422. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  423. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  424. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  425. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  426. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  427. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  428. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  429. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -511
  430. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  431. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  432. data/rbi/stripe/services/billing_service.rbi +0 -15
  433. data/rbi/stripe/services/charge_service.rbi +0 -448
  434. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  435. data/rbi/stripe/services/checkout/session_service.rbi +0 -2585
  436. data/rbi/stripe/services/checkout_service.rbi +0 -9
  437. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  438. data/rbi/stripe/services/climate_service.rbi +0 -11
  439. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  440. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  441. data/rbi/stripe/services/coupon_service.rbi +0 -196
  442. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  443. data/rbi/stripe/services/credit_note_service.rbi +0 -416
  444. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  445. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  446. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  447. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  448. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  449. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  450. data/rbi/stripe/services/customer_service.rbi +0 -651
  451. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  452. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -72
  453. data/rbi/stripe/services/dispute_service.rbi +0 -424
  454. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  455. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  456. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  457. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  458. data/rbi/stripe/services/event_service.rbi +0 -83
  459. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  460. data/rbi/stripe/services/file_link_service.rbi +0 -124
  461. data/rbi/stripe/services/file_service.rbi +0 -116
  462. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  463. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  464. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  465. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  466. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  467. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  468. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  469. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  470. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -323
  471. data/rbi/stripe/services/identity_service.rbi +0 -10
  472. data/rbi/stripe/services/invoice_item_service.rbi +0 -368
  473. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  474. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  475. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  476. data/rbi/stripe/services/invoice_service.rbi +0 -2920
  477. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  478. data/rbi/stripe/services/issuing/card_service.rbi +0 -495
  479. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  480. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  481. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  482. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  483. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  484. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  485. data/rbi/stripe/services/issuing_service.rbi +0 -16
  486. data/rbi/stripe/services/mandate_service.rbi +0 -20
  487. data/rbi/stripe/services/payment_intent_service.rbi +0 -7759
  488. data/rbi/stripe/services/payment_link_service.rbi +0 -1352
  489. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2211
  490. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  491. data/rbi/stripe/services/payment_method_service.rbi +0 -840
  492. data/rbi/stripe/services/payout_service.rbi +0 -205
  493. data/rbi/stripe/services/plan_service.rbi +0 -284
  494. data/rbi/stripe/services/price_service.rbi +0 -546
  495. data/rbi/stripe/services/product_feature_service.rbi +0 -69
  496. data/rbi/stripe/services/product_service.rbi +0 -479
  497. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  498. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  499. data/rbi/stripe/services/quote_service.rbi +0 -686
  500. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  501. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -111
  502. data/rbi/stripe/services/radar/value_list_service.rbi +0 -143
  503. data/rbi/stripe/services/radar_service.rbi +0 -11
  504. data/rbi/stripe/services/refund_service.rbi +0 -185
  505. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  506. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  507. data/rbi/stripe/services/reporting_service.rbi +0 -10
  508. data/rbi/stripe/services/review_service.rbi +0 -84
  509. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  510. data/rbi/stripe/services/setup_intent_service.rbi +0 -3596
  511. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  512. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  513. data/rbi/stripe/services/sigma_service.rbi +0 -9
  514. data/rbi/stripe/services/source_service.rbi +0 -663
  515. data/rbi/stripe/services/subscription_item_service.rbi +0 -324
  516. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1192
  517. data/rbi/stripe/services/subscription_service.rbi +0 -1596
  518. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -33
  519. data/rbi/stripe/services/tax/calculation_service.rbi +0 -230
  520. data/rbi/stripe/services/tax/registration_service.rbi +0 -1689
  521. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  522. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  523. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  524. data/rbi/stripe/services/tax_id_service.rbi +0 -112
  525. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  526. data/rbi/stripe/services/tax_service.rbi +0 -12
  527. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1120
  528. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  529. data/rbi/stripe/services/terminal/location_service.rbi +0 -184
  530. data/rbi/stripe/services/terminal/reader_service.rbi +0 -344
  531. data/rbi/stripe/services/terminal_service.rbi +0 -12
  532. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  533. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  534. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  535. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  536. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  537. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  538. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  539. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  540. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -62
  541. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  542. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -92
  543. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  544. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  545. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  546. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  547. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  548. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  549. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  550. data/rbi/stripe/services/token_service.rbi +0 -1189
  551. data/rbi/stripe/services/topup_service.rbi +0 -176
  552. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  553. data/rbi/stripe/services/transfer_service.rbi +0 -152
  554. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  555. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  556. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  557. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -562
  558. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  559. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  560. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  561. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  562. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  563. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  564. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  565. data/rbi/stripe/services/treasury_service.rbi +0 -18
  566. data/rbi/stripe/services/v1_services.rbi +0 -77
  567. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  568. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  569. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -20
  570. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  571. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  572. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -200
  573. data/rbi/stripe/services/v2/core/event_service.rbi +0 -38
  574. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  575. data/rbi/stripe/services/v2_services.rbi +0 -10
  576. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -131
@@ -182,6 +182,8 @@ module Stripe
182
182
  class Card < Stripe::StripeObject
183
183
  # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
184
184
  attr_reader :brand
185
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
186
+ attr_reader :brand_product
185
187
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
186
188
  attr_reader :country
187
189
  # Two-digit number representing the card's expiration month.
@@ -267,6 +269,11 @@ module Stripe
267
269
  attr_reader :cvc_check
268
270
  end
269
271
 
272
+ class DecrementalAuthorization < Stripe::StripeObject
273
+ # Indicates whether or not the decremental authorization feature is supported.
274
+ attr_reader :status
275
+ end
276
+
270
277
  class ExtendedAuthorization < Stripe::StripeObject
271
278
  # Indicates whether or not the capture window is extended beyond the standard authorization.
272
279
  attr_reader :status
@@ -308,6 +315,11 @@ module Stripe
308
315
  attr_reader :status
309
316
  end
310
317
 
318
+ class PartialAuthorization < Stripe::StripeObject
319
+ # Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
320
+ attr_reader :status
321
+ end
322
+
311
323
  class ThreeDSecure < Stripe::StripeObject
312
324
  # For authenticated transactions: how the customer was authenticated by
313
325
  # the issuing bank.
@@ -440,6 +452,8 @@ module Stripe
440
452
  end
441
453
  # The authorized amount.
442
454
  attr_reader :amount_authorized
455
+ # The latest amount intended to be authorized by this charge.
456
+ attr_reader :amount_requested
443
457
  # Authorization code on the charge.
444
458
  attr_reader :authorization_code
445
459
  # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
@@ -450,6 +464,8 @@ module Stripe
450
464
  attr_reader :checks
451
465
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
452
466
  attr_reader :country
467
+ # Attribute for field decremental_authorization
468
+ attr_reader :decremental_authorization
453
469
  # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
454
470
  attr_reader :description
455
471
  # Two-digit number representing the card's expiration month.
@@ -490,6 +506,8 @@ module Stripe
490
506
  attr_reader :network_transaction_id
491
507
  # Attribute for field overcapture
492
508
  attr_reader :overcapture
509
+ # Attribute for field partial_authorization
510
+ attr_reader :partial_authorization
493
511
  # Status of a card based on the card issuer.
494
512
  attr_reader :regulated_status
495
513
  # Populated if this transaction used 3D Secure authentication.
@@ -625,11 +643,26 @@ module Stripe
625
643
  attr_reader :verified_name
626
644
  end
627
645
 
646
+ class Gopay < Stripe::StripeObject; end
647
+
628
648
  class Grabpay < Stripe::StripeObject
629
649
  # Unique transaction id generated by GrabPay
630
650
  attr_reader :transaction_id
631
651
  end
632
652
 
653
+ class IdBankTransfer < Stripe::StripeObject
654
+ # Account number of the bank account to transfer funds to.
655
+ attr_reader :account_number
656
+ # Bank where the account is located.
657
+ attr_reader :bank
658
+ # Local bank code of the bank.
659
+ attr_reader :bank_code
660
+ # Name of the bank associated with the bank account.
661
+ attr_reader :bank_name
662
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
663
+ attr_reader :display_name
664
+ end
665
+
633
666
  class Ideal < Stripe::StripeObject
634
667
  # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
635
668
  attr_reader :bank
@@ -755,6 +788,8 @@ module Stripe
755
788
  attr_reader :country
756
789
  end
757
790
 
791
+ class MbWay < Stripe::StripeObject; end
792
+
758
793
  class Mobilepay < Stripe::StripeObject
759
794
  class Card < Stripe::StripeObject
760
795
  # Brand of the card used in the transaction
@@ -834,6 +869,36 @@ module Stripe
834
869
  # Indicates whether the transaction is eligible for PayPal's seller protection.
835
870
  attr_reader :status
836
871
  end
872
+
873
+ class Shipping < Stripe::StripeObject
874
+ # City, district, suburb, town, or village.
875
+ attr_reader :city
876
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
877
+ attr_reader :country
878
+ # Address line 1 (e.g., street, PO Box, or company name).
879
+ attr_reader :line1
880
+ # Address line 2 (e.g., apartment, suite, unit, or building).
881
+ attr_reader :line2
882
+ # ZIP or postal code.
883
+ attr_reader :postal_code
884
+ # State, county, province, or region.
885
+ attr_reader :state
886
+ end
887
+
888
+ class VerifiedAddress < Stripe::StripeObject
889
+ # City, district, suburb, town, or village.
890
+ attr_reader :city
891
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
892
+ attr_reader :country
893
+ # Address line 1 (e.g., street, PO Box, or company name).
894
+ attr_reader :line1
895
+ # Address line 2 (e.g., apartment, suite, unit, or building).
896
+ attr_reader :line2
897
+ # ZIP or postal code.
898
+ attr_reader :postal_code
899
+ # State, county, province, or region.
900
+ attr_reader :state
901
+ end
837
902
  # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
838
903
  attr_reader :country
839
904
  # Owner's email. Values are provided by PayPal directly
@@ -846,8 +911,33 @@ module Stripe
846
911
  attr_reader :payer_name
847
912
  # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
848
913
  attr_reader :seller_protection
914
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
915
+ # execution. This shipping address will not be updated if the merchant updates the shipping
916
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
917
+ attr_reader :shipping
849
918
  # A unique ID generated by PayPal for this transaction.
850
919
  attr_reader :transaction_id
920
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
921
+ # execution. This shipping address will not be updated if the merchant updates the shipping
922
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
923
+ attr_reader :verified_address
924
+ # Owner's verified email. Values are verified or provided by PayPal directly
925
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
926
+ attr_reader :verified_email
927
+ # Owner's verified full name. Values are verified or provided by PayPal directly
928
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
929
+ attr_reader :verified_name
930
+ end
931
+
932
+ class Payto < Stripe::StripeObject
933
+ # Bank-State-Branch number of the bank account.
934
+ attr_reader :bsb_number
935
+ # Last four digits of the bank account number.
936
+ attr_reader :last4
937
+ # ID of the mandate used to make this payment.
938
+ attr_reader :mandate
939
+ # The PayID alias for the bank account.
940
+ attr_reader :pay_id
851
941
  end
852
942
 
853
943
  class Pix < Stripe::StripeObject
@@ -860,11 +950,16 @@ module Stripe
860
950
  attr_reader :reference
861
951
  end
862
952
 
953
+ class Qris < Stripe::StripeObject; end
954
+ class Rechnung < Stripe::StripeObject; end
955
+
863
956
  class RevolutPay < Stripe::StripeObject
864
957
  class Funding < Stripe::StripeObject
865
958
  class Card < Stripe::StripeObject
866
959
  # Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
867
960
  attr_reader :brand
961
+ # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
962
+ attr_reader :brand_product
868
963
  # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
869
964
  attr_reader :country
870
965
  # Two-digit number representing the card's expiration month.
@@ -916,6 +1011,8 @@ module Stripe
916
1011
  attr_reader :mandate
917
1012
  end
918
1013
 
1014
+ class Shopeepay < Stripe::StripeObject; end
1015
+
919
1016
  class Sofort < Stripe::StripeObject
920
1017
  # Bank code of bank associated with the bank account.
921
1018
  attr_reader :bank_code
@@ -941,6 +1038,13 @@ module Stripe
941
1038
 
942
1039
  class StripeAccount < Stripe::StripeObject; end
943
1040
 
1041
+ class StripeBalance < Stripe::StripeObject
1042
+ # The connected account ID whose Stripe balance to use as the source of payment
1043
+ attr_reader :account
1044
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1045
+ attr_reader :source_type
1046
+ end
1047
+
944
1048
  class Swish < Stripe::StripeObject
945
1049
  # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
946
1050
  attr_reader :fingerprint
@@ -1023,8 +1127,12 @@ module Stripe
1023
1127
  attr_reader :fpx
1024
1128
  # Attribute for field giropay
1025
1129
  attr_reader :giropay
1130
+ # Attribute for field gopay
1131
+ attr_reader :gopay
1026
1132
  # Attribute for field grabpay
1027
1133
  attr_reader :grabpay
1134
+ # Attribute for field id_bank_transfer
1135
+ attr_reader :id_bank_transfer
1028
1136
  # Attribute for field ideal
1029
1137
  attr_reader :ideal
1030
1138
  # Attribute for field interac_present
@@ -1039,6 +1147,8 @@ module Stripe
1039
1147
  attr_reader :kr_card
1040
1148
  # Attribute for field link
1041
1149
  attr_reader :link
1150
+ # Attribute for field mb_way
1151
+ attr_reader :mb_way
1042
1152
  # Attribute for field mobilepay
1043
1153
  attr_reader :mobilepay
1044
1154
  # Attribute for field multibanco
@@ -1059,10 +1169,16 @@ module Stripe
1059
1169
  attr_reader :paynow
1060
1170
  # Attribute for field paypal
1061
1171
  attr_reader :paypal
1172
+ # Attribute for field payto
1173
+ attr_reader :payto
1062
1174
  # Attribute for field pix
1063
1175
  attr_reader :pix
1064
1176
  # Attribute for field promptpay
1065
1177
  attr_reader :promptpay
1178
+ # Attribute for field qris
1179
+ attr_reader :qris
1180
+ # Attribute for field rechnung
1181
+ attr_reader :rechnung
1066
1182
  # Attribute for field revolut_pay
1067
1183
  attr_reader :revolut_pay
1068
1184
  # Attribute for field samsung_pay
@@ -1073,10 +1189,14 @@ module Stripe
1073
1189
  attr_reader :sepa_credit_transfer
1074
1190
  # Attribute for field sepa_debit
1075
1191
  attr_reader :sepa_debit
1192
+ # Attribute for field shopeepay
1193
+ attr_reader :shopeepay
1076
1194
  # Attribute for field sofort
1077
1195
  attr_reader :sofort
1078
1196
  # Attribute for field stripe_account
1079
1197
  attr_reader :stripe_account
1198
+ # Attribute for field stripe_balance
1199
+ attr_reader :stripe_balance
1080
1200
  # Attribute for field swish
1081
1201
  attr_reader :swish
1082
1202
  # Attribute for field twint
@@ -1375,6 +1495,669 @@ module Stripe
1375
1495
  end
1376
1496
  end
1377
1497
 
1498
+ class PaymentDetails < Stripe::RequestParams
1499
+ class CarRental < Stripe::RequestParams
1500
+ class Affiliate < Stripe::RequestParams
1501
+ # The name of the affiliate that originated the purchase.
1502
+ attr_accessor :name
1503
+
1504
+ def initialize(name: nil)
1505
+ @name = name
1506
+ end
1507
+ end
1508
+
1509
+ class Delivery < Stripe::RequestParams
1510
+ class Recipient < Stripe::RequestParams
1511
+ # The email of the recipient the ticket is delivered to.
1512
+ attr_accessor :email
1513
+ # The name of the recipient the ticket is delivered to.
1514
+ attr_accessor :name
1515
+ # The phone number of the recipient the ticket is delivered to.
1516
+ attr_accessor :phone
1517
+
1518
+ def initialize(email: nil, name: nil, phone: nil)
1519
+ @email = email
1520
+ @name = name
1521
+ @phone = phone
1522
+ end
1523
+ end
1524
+ # The delivery method for the payment
1525
+ attr_accessor :mode
1526
+ # Details of the recipient.
1527
+ attr_accessor :recipient
1528
+
1529
+ def initialize(mode: nil, recipient: nil)
1530
+ @mode = mode
1531
+ @recipient = recipient
1532
+ end
1533
+ end
1534
+
1535
+ class Driver < Stripe::RequestParams
1536
+ # Full name of the person or entity on the car reservation.
1537
+ attr_accessor :name
1538
+
1539
+ def initialize(name: nil)
1540
+ @name = name
1541
+ end
1542
+ end
1543
+
1544
+ class PickupAddress < Stripe::RequestParams
1545
+ # City, district, suburb, town, or village.
1546
+ attr_accessor :city
1547
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1548
+ attr_accessor :country
1549
+ # Address line 1 (e.g., street, PO Box, or company name).
1550
+ attr_accessor :line1
1551
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1552
+ attr_accessor :line2
1553
+ # ZIP or postal code.
1554
+ attr_accessor :postal_code
1555
+ # State, county, province, or region.
1556
+ attr_accessor :state
1557
+
1558
+ def initialize(
1559
+ city: nil,
1560
+ country: nil,
1561
+ line1: nil,
1562
+ line2: nil,
1563
+ postal_code: nil,
1564
+ state: nil
1565
+ )
1566
+ @city = city
1567
+ @country = country
1568
+ @line1 = line1
1569
+ @line2 = line2
1570
+ @postal_code = postal_code
1571
+ @state = state
1572
+ end
1573
+ end
1574
+
1575
+ class ReturnAddress < Stripe::RequestParams
1576
+ # City, district, suburb, town, or village.
1577
+ attr_accessor :city
1578
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1579
+ attr_accessor :country
1580
+ # Address line 1 (e.g., street, PO Box, or company name).
1581
+ attr_accessor :line1
1582
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1583
+ attr_accessor :line2
1584
+ # ZIP or postal code.
1585
+ attr_accessor :postal_code
1586
+ # State, county, province, or region.
1587
+ attr_accessor :state
1588
+
1589
+ def initialize(
1590
+ city: nil,
1591
+ country: nil,
1592
+ line1: nil,
1593
+ line2: nil,
1594
+ postal_code: nil,
1595
+ state: nil
1596
+ )
1597
+ @city = city
1598
+ @country = country
1599
+ @line1 = line1
1600
+ @line2 = line2
1601
+ @postal_code = postal_code
1602
+ @state = state
1603
+ end
1604
+ end
1605
+ # Affiliate details for this purchase.
1606
+ attr_accessor :affiliate
1607
+ # The booking number associated with the car rental.
1608
+ attr_accessor :booking_number
1609
+ # Class code of the car.
1610
+ attr_accessor :car_class_code
1611
+ # Make of the car.
1612
+ attr_accessor :car_make
1613
+ # Model of the car.
1614
+ attr_accessor :car_model
1615
+ # The name of the rental car company.
1616
+ attr_accessor :company
1617
+ # The customer service phone number of the car rental company.
1618
+ attr_accessor :customer_service_phone_number
1619
+ # Number of days the car is being rented.
1620
+ attr_accessor :days_rented
1621
+ # Delivery details for this purchase.
1622
+ attr_accessor :delivery
1623
+ # The details of the passengers in the travel reservation
1624
+ attr_accessor :drivers
1625
+ # List of additional charges being billed.
1626
+ attr_accessor :extra_charges
1627
+ # Indicates if the customer did not keep nor cancel their booking.
1628
+ attr_accessor :no_show
1629
+ # Car pick-up address.
1630
+ attr_accessor :pickup_address
1631
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1632
+ attr_accessor :pickup_at
1633
+ # Rental rate.
1634
+ attr_accessor :rate_amount
1635
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1636
+ attr_accessor :rate_interval
1637
+ # The name of the person or entity renting the car.
1638
+ attr_accessor :renter_name
1639
+ # Car return address.
1640
+ attr_accessor :return_address
1641
+ # Car return time. Measured in seconds since the Unix epoch.
1642
+ attr_accessor :return_at
1643
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1644
+ attr_accessor :tax_exempt
1645
+
1646
+ def initialize(
1647
+ affiliate: nil,
1648
+ booking_number: nil,
1649
+ car_class_code: nil,
1650
+ car_make: nil,
1651
+ car_model: nil,
1652
+ company: nil,
1653
+ customer_service_phone_number: nil,
1654
+ days_rented: nil,
1655
+ delivery: nil,
1656
+ drivers: nil,
1657
+ extra_charges: nil,
1658
+ no_show: nil,
1659
+ pickup_address: nil,
1660
+ pickup_at: nil,
1661
+ rate_amount: nil,
1662
+ rate_interval: nil,
1663
+ renter_name: nil,
1664
+ return_address: nil,
1665
+ return_at: nil,
1666
+ tax_exempt: nil
1667
+ )
1668
+ @affiliate = affiliate
1669
+ @booking_number = booking_number
1670
+ @car_class_code = car_class_code
1671
+ @car_make = car_make
1672
+ @car_model = car_model
1673
+ @company = company
1674
+ @customer_service_phone_number = customer_service_phone_number
1675
+ @days_rented = days_rented
1676
+ @delivery = delivery
1677
+ @drivers = drivers
1678
+ @extra_charges = extra_charges
1679
+ @no_show = no_show
1680
+ @pickup_address = pickup_address
1681
+ @pickup_at = pickup_at
1682
+ @rate_amount = rate_amount
1683
+ @rate_interval = rate_interval
1684
+ @renter_name = renter_name
1685
+ @return_address = return_address
1686
+ @return_at = return_at
1687
+ @tax_exempt = tax_exempt
1688
+ end
1689
+ end
1690
+
1691
+ class EventDetails < Stripe::RequestParams
1692
+ class Address < Stripe::RequestParams
1693
+ # City, district, suburb, town, or village.
1694
+ attr_accessor :city
1695
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1696
+ attr_accessor :country
1697
+ # Address line 1 (e.g., street, PO Box, or company name).
1698
+ attr_accessor :line1
1699
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1700
+ attr_accessor :line2
1701
+ # ZIP or postal code.
1702
+ attr_accessor :postal_code
1703
+ # State, county, province, or region.
1704
+ attr_accessor :state
1705
+
1706
+ def initialize(
1707
+ city: nil,
1708
+ country: nil,
1709
+ line1: nil,
1710
+ line2: nil,
1711
+ postal_code: nil,
1712
+ state: nil
1713
+ )
1714
+ @city = city
1715
+ @country = country
1716
+ @line1 = line1
1717
+ @line2 = line2
1718
+ @postal_code = postal_code
1719
+ @state = state
1720
+ end
1721
+ end
1722
+
1723
+ class Affiliate < Stripe::RequestParams
1724
+ # The name of the affiliate that originated the purchase.
1725
+ attr_accessor :name
1726
+
1727
+ def initialize(name: nil)
1728
+ @name = name
1729
+ end
1730
+ end
1731
+
1732
+ class Delivery < Stripe::RequestParams
1733
+ class Recipient < Stripe::RequestParams
1734
+ # The email of the recipient the ticket is delivered to.
1735
+ attr_accessor :email
1736
+ # The name of the recipient the ticket is delivered to.
1737
+ attr_accessor :name
1738
+ # The phone number of the recipient the ticket is delivered to.
1739
+ attr_accessor :phone
1740
+
1741
+ def initialize(email: nil, name: nil, phone: nil)
1742
+ @email = email
1743
+ @name = name
1744
+ @phone = phone
1745
+ end
1746
+ end
1747
+ # The delivery method for the payment
1748
+ attr_accessor :mode
1749
+ # Details of the recipient.
1750
+ attr_accessor :recipient
1751
+
1752
+ def initialize(mode: nil, recipient: nil)
1753
+ @mode = mode
1754
+ @recipient = recipient
1755
+ end
1756
+ end
1757
+ # Indicates if the tickets are digitally checked when entering the venue.
1758
+ attr_accessor :access_controlled_venue
1759
+ # The event location's address.
1760
+ attr_accessor :address
1761
+ # Affiliate details for this purchase.
1762
+ attr_accessor :affiliate
1763
+ # The name of the company
1764
+ attr_accessor :company
1765
+ # Delivery details for this purchase.
1766
+ attr_accessor :delivery
1767
+ # Event end time. Measured in seconds since the Unix epoch.
1768
+ attr_accessor :ends_at
1769
+ # Type of the event entertainment (concert, sports event etc)
1770
+ attr_accessor :genre
1771
+ # The name of the event.
1772
+ attr_accessor :name
1773
+ # Event start time. Measured in seconds since the Unix epoch.
1774
+ attr_accessor :starts_at
1775
+
1776
+ def initialize(
1777
+ access_controlled_venue: nil,
1778
+ address: nil,
1779
+ affiliate: nil,
1780
+ company: nil,
1781
+ delivery: nil,
1782
+ ends_at: nil,
1783
+ genre: nil,
1784
+ name: nil,
1785
+ starts_at: nil
1786
+ )
1787
+ @access_controlled_venue = access_controlled_venue
1788
+ @address = address
1789
+ @affiliate = affiliate
1790
+ @company = company
1791
+ @delivery = delivery
1792
+ @ends_at = ends_at
1793
+ @genre = genre
1794
+ @name = name
1795
+ @starts_at = starts_at
1796
+ end
1797
+ end
1798
+
1799
+ class Flight < Stripe::RequestParams
1800
+ class Affiliate < Stripe::RequestParams
1801
+ # The name of the affiliate that originated the purchase.
1802
+ attr_accessor :name
1803
+
1804
+ def initialize(name: nil)
1805
+ @name = name
1806
+ end
1807
+ end
1808
+
1809
+ class Delivery < Stripe::RequestParams
1810
+ class Recipient < Stripe::RequestParams
1811
+ # The email of the recipient the ticket is delivered to.
1812
+ attr_accessor :email
1813
+ # The name of the recipient the ticket is delivered to.
1814
+ attr_accessor :name
1815
+ # The phone number of the recipient the ticket is delivered to.
1816
+ attr_accessor :phone
1817
+
1818
+ def initialize(email: nil, name: nil, phone: nil)
1819
+ @email = email
1820
+ @name = name
1821
+ @phone = phone
1822
+ end
1823
+ end
1824
+ # The delivery method for the payment
1825
+ attr_accessor :mode
1826
+ # Details of the recipient.
1827
+ attr_accessor :recipient
1828
+
1829
+ def initialize(mode: nil, recipient: nil)
1830
+ @mode = mode
1831
+ @recipient = recipient
1832
+ end
1833
+ end
1834
+
1835
+ class Passenger < Stripe::RequestParams
1836
+ # Full name of the person or entity on the flight reservation.
1837
+ attr_accessor :name
1838
+
1839
+ def initialize(name: nil)
1840
+ @name = name
1841
+ end
1842
+ end
1843
+
1844
+ class Segment < Stripe::RequestParams
1845
+ # The flight segment amount.
1846
+ attr_accessor :amount
1847
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1848
+ attr_accessor :arrival_airport
1849
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1850
+ attr_accessor :arrives_at
1851
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1852
+ attr_accessor :carrier
1853
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1854
+ attr_accessor :departs_at
1855
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1856
+ attr_accessor :departure_airport
1857
+ # The flight number associated with the segment
1858
+ attr_accessor :flight_number
1859
+ # The fare class for the segment.
1860
+ attr_accessor :service_class
1861
+
1862
+ def initialize(
1863
+ amount: nil,
1864
+ arrival_airport: nil,
1865
+ arrives_at: nil,
1866
+ carrier: nil,
1867
+ departs_at: nil,
1868
+ departure_airport: nil,
1869
+ flight_number: nil,
1870
+ service_class: nil
1871
+ )
1872
+ @amount = amount
1873
+ @arrival_airport = arrival_airport
1874
+ @arrives_at = arrives_at
1875
+ @carrier = carrier
1876
+ @departs_at = departs_at
1877
+ @departure_airport = departure_airport
1878
+ @flight_number = flight_number
1879
+ @service_class = service_class
1880
+ end
1881
+ end
1882
+ # Affiliate details for this purchase.
1883
+ attr_accessor :affiliate
1884
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1885
+ attr_accessor :agency_number
1886
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1887
+ attr_accessor :carrier
1888
+ # Delivery details for this purchase.
1889
+ attr_accessor :delivery
1890
+ # The name of the person or entity on the reservation.
1891
+ attr_accessor :passenger_name
1892
+ # The details of the passengers in the travel reservation.
1893
+ attr_accessor :passengers
1894
+ # The individual flight segments associated with the trip.
1895
+ attr_accessor :segments
1896
+ # The ticket number associated with the travel reservation.
1897
+ attr_accessor :ticket_number
1898
+
1899
+ def initialize(
1900
+ affiliate: nil,
1901
+ agency_number: nil,
1902
+ carrier: nil,
1903
+ delivery: nil,
1904
+ passenger_name: nil,
1905
+ passengers: nil,
1906
+ segments: nil,
1907
+ ticket_number: nil
1908
+ )
1909
+ @affiliate = affiliate
1910
+ @agency_number = agency_number
1911
+ @carrier = carrier
1912
+ @delivery = delivery
1913
+ @passenger_name = passenger_name
1914
+ @passengers = passengers
1915
+ @segments = segments
1916
+ @ticket_number = ticket_number
1917
+ end
1918
+ end
1919
+
1920
+ class Lodging < Stripe::RequestParams
1921
+ class Address < Stripe::RequestParams
1922
+ # City, district, suburb, town, or village.
1923
+ attr_accessor :city
1924
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1925
+ attr_accessor :country
1926
+ # Address line 1 (e.g., street, PO Box, or company name).
1927
+ attr_accessor :line1
1928
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1929
+ attr_accessor :line2
1930
+ # ZIP or postal code.
1931
+ attr_accessor :postal_code
1932
+ # State, county, province, or region.
1933
+ attr_accessor :state
1934
+
1935
+ def initialize(
1936
+ city: nil,
1937
+ country: nil,
1938
+ line1: nil,
1939
+ line2: nil,
1940
+ postal_code: nil,
1941
+ state: nil
1942
+ )
1943
+ @city = city
1944
+ @country = country
1945
+ @line1 = line1
1946
+ @line2 = line2
1947
+ @postal_code = postal_code
1948
+ @state = state
1949
+ end
1950
+ end
1951
+
1952
+ class Affiliate < Stripe::RequestParams
1953
+ # The name of the affiliate that originated the purchase.
1954
+ attr_accessor :name
1955
+
1956
+ def initialize(name: nil)
1957
+ @name = name
1958
+ end
1959
+ end
1960
+
1961
+ class Delivery < Stripe::RequestParams
1962
+ class Recipient < Stripe::RequestParams
1963
+ # The email of the recipient the ticket is delivered to.
1964
+ attr_accessor :email
1965
+ # The name of the recipient the ticket is delivered to.
1966
+ attr_accessor :name
1967
+ # The phone number of the recipient the ticket is delivered to.
1968
+ attr_accessor :phone
1969
+
1970
+ def initialize(email: nil, name: nil, phone: nil)
1971
+ @email = email
1972
+ @name = name
1973
+ @phone = phone
1974
+ end
1975
+ end
1976
+ # The delivery method for the payment
1977
+ attr_accessor :mode
1978
+ # Details of the recipient.
1979
+ attr_accessor :recipient
1980
+
1981
+ def initialize(mode: nil, recipient: nil)
1982
+ @mode = mode
1983
+ @recipient = recipient
1984
+ end
1985
+ end
1986
+
1987
+ class Passenger < Stripe::RequestParams
1988
+ # Full name of the person or entity on the lodging reservation.
1989
+ attr_accessor :name
1990
+
1991
+ def initialize(name: nil)
1992
+ @name = name
1993
+ end
1994
+ end
1995
+ # The lodging location's address.
1996
+ attr_accessor :address
1997
+ # The number of adults on the booking
1998
+ attr_accessor :adults
1999
+ # Affiliate details for this purchase.
2000
+ attr_accessor :affiliate
2001
+ # The booking number associated with the lodging reservation.
2002
+ attr_accessor :booking_number
2003
+ # The lodging category
2004
+ attr_accessor :category
2005
+ # Loding check-in time. Measured in seconds since the Unix epoch.
2006
+ attr_accessor :checkin_at
2007
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
2008
+ attr_accessor :checkout_at
2009
+ # The customer service phone number of the lodging company.
2010
+ attr_accessor :customer_service_phone_number
2011
+ # The daily lodging room rate.
2012
+ attr_accessor :daily_room_rate_amount
2013
+ # Delivery details for this purchase.
2014
+ attr_accessor :delivery
2015
+ # List of additional charges being billed.
2016
+ attr_accessor :extra_charges
2017
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
2018
+ attr_accessor :fire_safety_act_compliance
2019
+ # The name of the lodging location.
2020
+ attr_accessor :name
2021
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
2022
+ attr_accessor :no_show
2023
+ # The number of rooms on the booking
2024
+ attr_accessor :number_of_rooms
2025
+ # The details of the passengers in the travel reservation
2026
+ attr_accessor :passengers
2027
+ # The phone number of the lodging location.
2028
+ attr_accessor :property_phone_number
2029
+ # The room class for this purchase.
2030
+ attr_accessor :room_class
2031
+ # The number of room nights
2032
+ attr_accessor :room_nights
2033
+ # The total tax amount associating with the room reservation.
2034
+ attr_accessor :total_room_tax_amount
2035
+ # The total tax amount
2036
+ attr_accessor :total_tax_amount
2037
+
2038
+ def initialize(
2039
+ address: nil,
2040
+ adults: nil,
2041
+ affiliate: nil,
2042
+ booking_number: nil,
2043
+ category: nil,
2044
+ checkin_at: nil,
2045
+ checkout_at: nil,
2046
+ customer_service_phone_number: nil,
2047
+ daily_room_rate_amount: nil,
2048
+ delivery: nil,
2049
+ extra_charges: nil,
2050
+ fire_safety_act_compliance: nil,
2051
+ name: nil,
2052
+ no_show: nil,
2053
+ number_of_rooms: nil,
2054
+ passengers: nil,
2055
+ property_phone_number: nil,
2056
+ room_class: nil,
2057
+ room_nights: nil,
2058
+ total_room_tax_amount: nil,
2059
+ total_tax_amount: nil
2060
+ )
2061
+ @address = address
2062
+ @adults = adults
2063
+ @affiliate = affiliate
2064
+ @booking_number = booking_number
2065
+ @category = category
2066
+ @checkin_at = checkin_at
2067
+ @checkout_at = checkout_at
2068
+ @customer_service_phone_number = customer_service_phone_number
2069
+ @daily_room_rate_amount = daily_room_rate_amount
2070
+ @delivery = delivery
2071
+ @extra_charges = extra_charges
2072
+ @fire_safety_act_compliance = fire_safety_act_compliance
2073
+ @name = name
2074
+ @no_show = no_show
2075
+ @number_of_rooms = number_of_rooms
2076
+ @passengers = passengers
2077
+ @property_phone_number = property_phone_number
2078
+ @room_class = room_class
2079
+ @room_nights = room_nights
2080
+ @total_room_tax_amount = total_room_tax_amount
2081
+ @total_tax_amount = total_tax_amount
2082
+ end
2083
+ end
2084
+
2085
+ class Subscription < Stripe::RequestParams
2086
+ class Affiliate < Stripe::RequestParams
2087
+ # The name of the affiliate that originated the purchase.
2088
+ attr_accessor :name
2089
+
2090
+ def initialize(name: nil)
2091
+ @name = name
2092
+ end
2093
+ end
2094
+
2095
+ class BillingInterval < Stripe::RequestParams
2096
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2097
+ attr_accessor :count
2098
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2099
+ attr_accessor :interval
2100
+
2101
+ def initialize(count: nil, interval: nil)
2102
+ @count = count
2103
+ @interval = interval
2104
+ end
2105
+ end
2106
+ # Affiliate details for this purchase.
2107
+ attr_accessor :affiliate
2108
+ # Info whether the subscription will be auto renewed upon expiry.
2109
+ attr_accessor :auto_renewal
2110
+ # Subscription billing details for this purchase.
2111
+ attr_accessor :billing_interval
2112
+ # Subscription end time. Measured in seconds since the Unix epoch.
2113
+ attr_accessor :ends_at
2114
+ # Name of the product on subscription. e.g. Apple Music Subscription
2115
+ attr_accessor :name
2116
+ # Subscription start time. Measured in seconds since the Unix epoch.
2117
+ attr_accessor :starts_at
2118
+
2119
+ def initialize(
2120
+ affiliate: nil,
2121
+ auto_renewal: nil,
2122
+ billing_interval: nil,
2123
+ ends_at: nil,
2124
+ name: nil,
2125
+ starts_at: nil
2126
+ )
2127
+ @affiliate = affiliate
2128
+ @auto_renewal = auto_renewal
2129
+ @billing_interval = billing_interval
2130
+ @ends_at = ends_at
2131
+ @name = name
2132
+ @starts_at = starts_at
2133
+ end
2134
+ end
2135
+ # Car rental details for this PaymentIntent.
2136
+ attr_accessor :car_rental
2137
+ # Event details for this PaymentIntent
2138
+ attr_accessor :event_details
2139
+ # Flight reservation details for this PaymentIntent
2140
+ attr_accessor :flight
2141
+ # Lodging reservation details for this PaymentIntent
2142
+ attr_accessor :lodging
2143
+ # Subscription details for this PaymentIntent
2144
+ attr_accessor :subscription
2145
+
2146
+ def initialize(
2147
+ car_rental: nil,
2148
+ event_details: nil,
2149
+ flight: nil,
2150
+ lodging: nil,
2151
+ subscription: nil
2152
+ )
2153
+ @car_rental = car_rental
2154
+ @event_details = event_details
2155
+ @flight = flight
2156
+ @lodging = lodging
2157
+ @subscription = subscription
2158
+ end
2159
+ end
2160
+
1378
2161
  class Shipping < Stripe::RequestParams
1379
2162
  class Address < Stripe::RequestParams
1380
2163
  # City, district, suburb, town, or village.
@@ -1435,6 +2218,8 @@ module Stripe
1435
2218
  attr_accessor :fraud_details
1436
2219
  # 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`.
1437
2220
  attr_accessor :metadata
2221
+ # Provides industry-specific information about the charge.
2222
+ attr_accessor :payment_details
1438
2223
  # This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
1439
2224
  attr_accessor :receipt_email
1440
2225
  # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
@@ -1448,6 +2233,7 @@ module Stripe
1448
2233
  expand: nil,
1449
2234
  fraud_details: nil,
1450
2235
  metadata: nil,
2236
+ payment_details: nil,
1451
2237
  receipt_email: nil,
1452
2238
  shipping: nil,
1453
2239
  transfer_group: nil
@@ -1457,6 +2243,7 @@ module Stripe
1457
2243
  @expand = expand
1458
2244
  @fraud_details = fraud_details
1459
2245
  @metadata = metadata
2246
+ @payment_details = payment_details
1460
2247
  @receipt_email = receipt_email
1461
2248
  @shipping = shipping
1462
2249
  @transfer_group = transfer_group
@@ -1482,6 +2269,669 @@ module Stripe
1482
2269
  end
1483
2270
 
1484
2271
  class CaptureParams < Stripe::RequestParams
2272
+ class PaymentDetails < Stripe::RequestParams
2273
+ class CarRental < Stripe::RequestParams
2274
+ class Affiliate < Stripe::RequestParams
2275
+ # The name of the affiliate that originated the purchase.
2276
+ attr_accessor :name
2277
+
2278
+ def initialize(name: nil)
2279
+ @name = name
2280
+ end
2281
+ end
2282
+
2283
+ class Delivery < Stripe::RequestParams
2284
+ class Recipient < Stripe::RequestParams
2285
+ # The email of the recipient the ticket is delivered to.
2286
+ attr_accessor :email
2287
+ # The name of the recipient the ticket is delivered to.
2288
+ attr_accessor :name
2289
+ # The phone number of the recipient the ticket is delivered to.
2290
+ attr_accessor :phone
2291
+
2292
+ def initialize(email: nil, name: nil, phone: nil)
2293
+ @email = email
2294
+ @name = name
2295
+ @phone = phone
2296
+ end
2297
+ end
2298
+ # The delivery method for the payment
2299
+ attr_accessor :mode
2300
+ # Details of the recipient.
2301
+ attr_accessor :recipient
2302
+
2303
+ def initialize(mode: nil, recipient: nil)
2304
+ @mode = mode
2305
+ @recipient = recipient
2306
+ end
2307
+ end
2308
+
2309
+ class Driver < Stripe::RequestParams
2310
+ # Full name of the person or entity on the car reservation.
2311
+ attr_accessor :name
2312
+
2313
+ def initialize(name: nil)
2314
+ @name = name
2315
+ end
2316
+ end
2317
+
2318
+ class PickupAddress < Stripe::RequestParams
2319
+ # City, district, suburb, town, or village.
2320
+ attr_accessor :city
2321
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2322
+ attr_accessor :country
2323
+ # Address line 1 (e.g., street, PO Box, or company name).
2324
+ attr_accessor :line1
2325
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2326
+ attr_accessor :line2
2327
+ # ZIP or postal code.
2328
+ attr_accessor :postal_code
2329
+ # State, county, province, or region.
2330
+ attr_accessor :state
2331
+
2332
+ def initialize(
2333
+ city: nil,
2334
+ country: nil,
2335
+ line1: nil,
2336
+ line2: nil,
2337
+ postal_code: nil,
2338
+ state: nil
2339
+ )
2340
+ @city = city
2341
+ @country = country
2342
+ @line1 = line1
2343
+ @line2 = line2
2344
+ @postal_code = postal_code
2345
+ @state = state
2346
+ end
2347
+ end
2348
+
2349
+ class ReturnAddress < Stripe::RequestParams
2350
+ # City, district, suburb, town, or village.
2351
+ attr_accessor :city
2352
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2353
+ attr_accessor :country
2354
+ # Address line 1 (e.g., street, PO Box, or company name).
2355
+ attr_accessor :line1
2356
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2357
+ attr_accessor :line2
2358
+ # ZIP or postal code.
2359
+ attr_accessor :postal_code
2360
+ # State, county, province, or region.
2361
+ attr_accessor :state
2362
+
2363
+ def initialize(
2364
+ city: nil,
2365
+ country: nil,
2366
+ line1: nil,
2367
+ line2: nil,
2368
+ postal_code: nil,
2369
+ state: nil
2370
+ )
2371
+ @city = city
2372
+ @country = country
2373
+ @line1 = line1
2374
+ @line2 = line2
2375
+ @postal_code = postal_code
2376
+ @state = state
2377
+ end
2378
+ end
2379
+ # Affiliate details for this purchase.
2380
+ attr_accessor :affiliate
2381
+ # The booking number associated with the car rental.
2382
+ attr_accessor :booking_number
2383
+ # Class code of the car.
2384
+ attr_accessor :car_class_code
2385
+ # Make of the car.
2386
+ attr_accessor :car_make
2387
+ # Model of the car.
2388
+ attr_accessor :car_model
2389
+ # The name of the rental car company.
2390
+ attr_accessor :company
2391
+ # The customer service phone number of the car rental company.
2392
+ attr_accessor :customer_service_phone_number
2393
+ # Number of days the car is being rented.
2394
+ attr_accessor :days_rented
2395
+ # Delivery details for this purchase.
2396
+ attr_accessor :delivery
2397
+ # The details of the passengers in the travel reservation
2398
+ attr_accessor :drivers
2399
+ # List of additional charges being billed.
2400
+ attr_accessor :extra_charges
2401
+ # Indicates if the customer did not keep nor cancel their booking.
2402
+ attr_accessor :no_show
2403
+ # Car pick-up address.
2404
+ attr_accessor :pickup_address
2405
+ # Car pick-up time. Measured in seconds since the Unix epoch.
2406
+ attr_accessor :pickup_at
2407
+ # Rental rate.
2408
+ attr_accessor :rate_amount
2409
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2410
+ attr_accessor :rate_interval
2411
+ # The name of the person or entity renting the car.
2412
+ attr_accessor :renter_name
2413
+ # Car return address.
2414
+ attr_accessor :return_address
2415
+ # Car return time. Measured in seconds since the Unix epoch.
2416
+ attr_accessor :return_at
2417
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
2418
+ attr_accessor :tax_exempt
2419
+
2420
+ def initialize(
2421
+ affiliate: nil,
2422
+ booking_number: nil,
2423
+ car_class_code: nil,
2424
+ car_make: nil,
2425
+ car_model: nil,
2426
+ company: nil,
2427
+ customer_service_phone_number: nil,
2428
+ days_rented: nil,
2429
+ delivery: nil,
2430
+ drivers: nil,
2431
+ extra_charges: nil,
2432
+ no_show: nil,
2433
+ pickup_address: nil,
2434
+ pickup_at: nil,
2435
+ rate_amount: nil,
2436
+ rate_interval: nil,
2437
+ renter_name: nil,
2438
+ return_address: nil,
2439
+ return_at: nil,
2440
+ tax_exempt: nil
2441
+ )
2442
+ @affiliate = affiliate
2443
+ @booking_number = booking_number
2444
+ @car_class_code = car_class_code
2445
+ @car_make = car_make
2446
+ @car_model = car_model
2447
+ @company = company
2448
+ @customer_service_phone_number = customer_service_phone_number
2449
+ @days_rented = days_rented
2450
+ @delivery = delivery
2451
+ @drivers = drivers
2452
+ @extra_charges = extra_charges
2453
+ @no_show = no_show
2454
+ @pickup_address = pickup_address
2455
+ @pickup_at = pickup_at
2456
+ @rate_amount = rate_amount
2457
+ @rate_interval = rate_interval
2458
+ @renter_name = renter_name
2459
+ @return_address = return_address
2460
+ @return_at = return_at
2461
+ @tax_exempt = tax_exempt
2462
+ end
2463
+ end
2464
+
2465
+ class EventDetails < Stripe::RequestParams
2466
+ class Address < Stripe::RequestParams
2467
+ # City, district, suburb, town, or village.
2468
+ attr_accessor :city
2469
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2470
+ attr_accessor :country
2471
+ # Address line 1 (e.g., street, PO Box, or company name).
2472
+ attr_accessor :line1
2473
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2474
+ attr_accessor :line2
2475
+ # ZIP or postal code.
2476
+ attr_accessor :postal_code
2477
+ # State, county, province, or region.
2478
+ attr_accessor :state
2479
+
2480
+ def initialize(
2481
+ city: nil,
2482
+ country: nil,
2483
+ line1: nil,
2484
+ line2: nil,
2485
+ postal_code: nil,
2486
+ state: nil
2487
+ )
2488
+ @city = city
2489
+ @country = country
2490
+ @line1 = line1
2491
+ @line2 = line2
2492
+ @postal_code = postal_code
2493
+ @state = state
2494
+ end
2495
+ end
2496
+
2497
+ class Affiliate < Stripe::RequestParams
2498
+ # The name of the affiliate that originated the purchase.
2499
+ attr_accessor :name
2500
+
2501
+ def initialize(name: nil)
2502
+ @name = name
2503
+ end
2504
+ end
2505
+
2506
+ class Delivery < Stripe::RequestParams
2507
+ class Recipient < Stripe::RequestParams
2508
+ # The email of the recipient the ticket is delivered to.
2509
+ attr_accessor :email
2510
+ # The name of the recipient the ticket is delivered to.
2511
+ attr_accessor :name
2512
+ # The phone number of the recipient the ticket is delivered to.
2513
+ attr_accessor :phone
2514
+
2515
+ def initialize(email: nil, name: nil, phone: nil)
2516
+ @email = email
2517
+ @name = name
2518
+ @phone = phone
2519
+ end
2520
+ end
2521
+ # The delivery method for the payment
2522
+ attr_accessor :mode
2523
+ # Details of the recipient.
2524
+ attr_accessor :recipient
2525
+
2526
+ def initialize(mode: nil, recipient: nil)
2527
+ @mode = mode
2528
+ @recipient = recipient
2529
+ end
2530
+ end
2531
+ # Indicates if the tickets are digitally checked when entering the venue.
2532
+ attr_accessor :access_controlled_venue
2533
+ # The event location's address.
2534
+ attr_accessor :address
2535
+ # Affiliate details for this purchase.
2536
+ attr_accessor :affiliate
2537
+ # The name of the company
2538
+ attr_accessor :company
2539
+ # Delivery details for this purchase.
2540
+ attr_accessor :delivery
2541
+ # Event end time. Measured in seconds since the Unix epoch.
2542
+ attr_accessor :ends_at
2543
+ # Type of the event entertainment (concert, sports event etc)
2544
+ attr_accessor :genre
2545
+ # The name of the event.
2546
+ attr_accessor :name
2547
+ # Event start time. Measured in seconds since the Unix epoch.
2548
+ attr_accessor :starts_at
2549
+
2550
+ def initialize(
2551
+ access_controlled_venue: nil,
2552
+ address: nil,
2553
+ affiliate: nil,
2554
+ company: nil,
2555
+ delivery: nil,
2556
+ ends_at: nil,
2557
+ genre: nil,
2558
+ name: nil,
2559
+ starts_at: nil
2560
+ )
2561
+ @access_controlled_venue = access_controlled_venue
2562
+ @address = address
2563
+ @affiliate = affiliate
2564
+ @company = company
2565
+ @delivery = delivery
2566
+ @ends_at = ends_at
2567
+ @genre = genre
2568
+ @name = name
2569
+ @starts_at = starts_at
2570
+ end
2571
+ end
2572
+
2573
+ class Flight < Stripe::RequestParams
2574
+ class Affiliate < Stripe::RequestParams
2575
+ # The name of the affiliate that originated the purchase.
2576
+ attr_accessor :name
2577
+
2578
+ def initialize(name: nil)
2579
+ @name = name
2580
+ end
2581
+ end
2582
+
2583
+ class Delivery < Stripe::RequestParams
2584
+ class Recipient < Stripe::RequestParams
2585
+ # The email of the recipient the ticket is delivered to.
2586
+ attr_accessor :email
2587
+ # The name of the recipient the ticket is delivered to.
2588
+ attr_accessor :name
2589
+ # The phone number of the recipient the ticket is delivered to.
2590
+ attr_accessor :phone
2591
+
2592
+ def initialize(email: nil, name: nil, phone: nil)
2593
+ @email = email
2594
+ @name = name
2595
+ @phone = phone
2596
+ end
2597
+ end
2598
+ # The delivery method for the payment
2599
+ attr_accessor :mode
2600
+ # Details of the recipient.
2601
+ attr_accessor :recipient
2602
+
2603
+ def initialize(mode: nil, recipient: nil)
2604
+ @mode = mode
2605
+ @recipient = recipient
2606
+ end
2607
+ end
2608
+
2609
+ class Passenger < Stripe::RequestParams
2610
+ # Full name of the person or entity on the flight reservation.
2611
+ attr_accessor :name
2612
+
2613
+ def initialize(name: nil)
2614
+ @name = name
2615
+ end
2616
+ end
2617
+
2618
+ class Segment < Stripe::RequestParams
2619
+ # The flight segment amount.
2620
+ attr_accessor :amount
2621
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
2622
+ attr_accessor :arrival_airport
2623
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
2624
+ attr_accessor :arrives_at
2625
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
2626
+ attr_accessor :carrier
2627
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
2628
+ attr_accessor :departs_at
2629
+ # The International Air Transport Association (IATA) airport code for the departure airport.
2630
+ attr_accessor :departure_airport
2631
+ # The flight number associated with the segment
2632
+ attr_accessor :flight_number
2633
+ # The fare class for the segment.
2634
+ attr_accessor :service_class
2635
+
2636
+ def initialize(
2637
+ amount: nil,
2638
+ arrival_airport: nil,
2639
+ arrives_at: nil,
2640
+ carrier: nil,
2641
+ departs_at: nil,
2642
+ departure_airport: nil,
2643
+ flight_number: nil,
2644
+ service_class: nil
2645
+ )
2646
+ @amount = amount
2647
+ @arrival_airport = arrival_airport
2648
+ @arrives_at = arrives_at
2649
+ @carrier = carrier
2650
+ @departs_at = departs_at
2651
+ @departure_airport = departure_airport
2652
+ @flight_number = flight_number
2653
+ @service_class = service_class
2654
+ end
2655
+ end
2656
+ # Affiliate details for this purchase.
2657
+ attr_accessor :affiliate
2658
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
2659
+ attr_accessor :agency_number
2660
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
2661
+ attr_accessor :carrier
2662
+ # Delivery details for this purchase.
2663
+ attr_accessor :delivery
2664
+ # The name of the person or entity on the reservation.
2665
+ attr_accessor :passenger_name
2666
+ # The details of the passengers in the travel reservation.
2667
+ attr_accessor :passengers
2668
+ # The individual flight segments associated with the trip.
2669
+ attr_accessor :segments
2670
+ # The ticket number associated with the travel reservation.
2671
+ attr_accessor :ticket_number
2672
+
2673
+ def initialize(
2674
+ affiliate: nil,
2675
+ agency_number: nil,
2676
+ carrier: nil,
2677
+ delivery: nil,
2678
+ passenger_name: nil,
2679
+ passengers: nil,
2680
+ segments: nil,
2681
+ ticket_number: nil
2682
+ )
2683
+ @affiliate = affiliate
2684
+ @agency_number = agency_number
2685
+ @carrier = carrier
2686
+ @delivery = delivery
2687
+ @passenger_name = passenger_name
2688
+ @passengers = passengers
2689
+ @segments = segments
2690
+ @ticket_number = ticket_number
2691
+ end
2692
+ end
2693
+
2694
+ class Lodging < Stripe::RequestParams
2695
+ class Address < Stripe::RequestParams
2696
+ # City, district, suburb, town, or village.
2697
+ attr_accessor :city
2698
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2699
+ attr_accessor :country
2700
+ # Address line 1 (e.g., street, PO Box, or company name).
2701
+ attr_accessor :line1
2702
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2703
+ attr_accessor :line2
2704
+ # ZIP or postal code.
2705
+ attr_accessor :postal_code
2706
+ # State, county, province, or region.
2707
+ attr_accessor :state
2708
+
2709
+ def initialize(
2710
+ city: nil,
2711
+ country: nil,
2712
+ line1: nil,
2713
+ line2: nil,
2714
+ postal_code: nil,
2715
+ state: nil
2716
+ )
2717
+ @city = city
2718
+ @country = country
2719
+ @line1 = line1
2720
+ @line2 = line2
2721
+ @postal_code = postal_code
2722
+ @state = state
2723
+ end
2724
+ end
2725
+
2726
+ class Affiliate < Stripe::RequestParams
2727
+ # The name of the affiliate that originated the purchase.
2728
+ attr_accessor :name
2729
+
2730
+ def initialize(name: nil)
2731
+ @name = name
2732
+ end
2733
+ end
2734
+
2735
+ class Delivery < Stripe::RequestParams
2736
+ class Recipient < Stripe::RequestParams
2737
+ # The email of the recipient the ticket is delivered to.
2738
+ attr_accessor :email
2739
+ # The name of the recipient the ticket is delivered to.
2740
+ attr_accessor :name
2741
+ # The phone number of the recipient the ticket is delivered to.
2742
+ attr_accessor :phone
2743
+
2744
+ def initialize(email: nil, name: nil, phone: nil)
2745
+ @email = email
2746
+ @name = name
2747
+ @phone = phone
2748
+ end
2749
+ end
2750
+ # The delivery method for the payment
2751
+ attr_accessor :mode
2752
+ # Details of the recipient.
2753
+ attr_accessor :recipient
2754
+
2755
+ def initialize(mode: nil, recipient: nil)
2756
+ @mode = mode
2757
+ @recipient = recipient
2758
+ end
2759
+ end
2760
+
2761
+ class Passenger < Stripe::RequestParams
2762
+ # Full name of the person or entity on the lodging reservation.
2763
+ attr_accessor :name
2764
+
2765
+ def initialize(name: nil)
2766
+ @name = name
2767
+ end
2768
+ end
2769
+ # The lodging location's address.
2770
+ attr_accessor :address
2771
+ # The number of adults on the booking
2772
+ attr_accessor :adults
2773
+ # Affiliate details for this purchase.
2774
+ attr_accessor :affiliate
2775
+ # The booking number associated with the lodging reservation.
2776
+ attr_accessor :booking_number
2777
+ # The lodging category
2778
+ attr_accessor :category
2779
+ # Loding check-in time. Measured in seconds since the Unix epoch.
2780
+ attr_accessor :checkin_at
2781
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
2782
+ attr_accessor :checkout_at
2783
+ # The customer service phone number of the lodging company.
2784
+ attr_accessor :customer_service_phone_number
2785
+ # The daily lodging room rate.
2786
+ attr_accessor :daily_room_rate_amount
2787
+ # Delivery details for this purchase.
2788
+ attr_accessor :delivery
2789
+ # List of additional charges being billed.
2790
+ attr_accessor :extra_charges
2791
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
2792
+ attr_accessor :fire_safety_act_compliance
2793
+ # The name of the lodging location.
2794
+ attr_accessor :name
2795
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
2796
+ attr_accessor :no_show
2797
+ # The number of rooms on the booking
2798
+ attr_accessor :number_of_rooms
2799
+ # The details of the passengers in the travel reservation
2800
+ attr_accessor :passengers
2801
+ # The phone number of the lodging location.
2802
+ attr_accessor :property_phone_number
2803
+ # The room class for this purchase.
2804
+ attr_accessor :room_class
2805
+ # The number of room nights
2806
+ attr_accessor :room_nights
2807
+ # The total tax amount associating with the room reservation.
2808
+ attr_accessor :total_room_tax_amount
2809
+ # The total tax amount
2810
+ attr_accessor :total_tax_amount
2811
+
2812
+ def initialize(
2813
+ address: nil,
2814
+ adults: nil,
2815
+ affiliate: nil,
2816
+ booking_number: nil,
2817
+ category: nil,
2818
+ checkin_at: nil,
2819
+ checkout_at: nil,
2820
+ customer_service_phone_number: nil,
2821
+ daily_room_rate_amount: nil,
2822
+ delivery: nil,
2823
+ extra_charges: nil,
2824
+ fire_safety_act_compliance: nil,
2825
+ name: nil,
2826
+ no_show: nil,
2827
+ number_of_rooms: nil,
2828
+ passengers: nil,
2829
+ property_phone_number: nil,
2830
+ room_class: nil,
2831
+ room_nights: nil,
2832
+ total_room_tax_amount: nil,
2833
+ total_tax_amount: nil
2834
+ )
2835
+ @address = address
2836
+ @adults = adults
2837
+ @affiliate = affiliate
2838
+ @booking_number = booking_number
2839
+ @category = category
2840
+ @checkin_at = checkin_at
2841
+ @checkout_at = checkout_at
2842
+ @customer_service_phone_number = customer_service_phone_number
2843
+ @daily_room_rate_amount = daily_room_rate_amount
2844
+ @delivery = delivery
2845
+ @extra_charges = extra_charges
2846
+ @fire_safety_act_compliance = fire_safety_act_compliance
2847
+ @name = name
2848
+ @no_show = no_show
2849
+ @number_of_rooms = number_of_rooms
2850
+ @passengers = passengers
2851
+ @property_phone_number = property_phone_number
2852
+ @room_class = room_class
2853
+ @room_nights = room_nights
2854
+ @total_room_tax_amount = total_room_tax_amount
2855
+ @total_tax_amount = total_tax_amount
2856
+ end
2857
+ end
2858
+
2859
+ class Subscription < Stripe::RequestParams
2860
+ class Affiliate < Stripe::RequestParams
2861
+ # The name of the affiliate that originated the purchase.
2862
+ attr_accessor :name
2863
+
2864
+ def initialize(name: nil)
2865
+ @name = name
2866
+ end
2867
+ end
2868
+
2869
+ class BillingInterval < Stripe::RequestParams
2870
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2871
+ attr_accessor :count
2872
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2873
+ attr_accessor :interval
2874
+
2875
+ def initialize(count: nil, interval: nil)
2876
+ @count = count
2877
+ @interval = interval
2878
+ end
2879
+ end
2880
+ # Affiliate details for this purchase.
2881
+ attr_accessor :affiliate
2882
+ # Info whether the subscription will be auto renewed upon expiry.
2883
+ attr_accessor :auto_renewal
2884
+ # Subscription billing details for this purchase.
2885
+ attr_accessor :billing_interval
2886
+ # Subscription end time. Measured in seconds since the Unix epoch.
2887
+ attr_accessor :ends_at
2888
+ # Name of the product on subscription. e.g. Apple Music Subscription
2889
+ attr_accessor :name
2890
+ # Subscription start time. Measured in seconds since the Unix epoch.
2891
+ attr_accessor :starts_at
2892
+
2893
+ def initialize(
2894
+ affiliate: nil,
2895
+ auto_renewal: nil,
2896
+ billing_interval: nil,
2897
+ ends_at: nil,
2898
+ name: nil,
2899
+ starts_at: nil
2900
+ )
2901
+ @affiliate = affiliate
2902
+ @auto_renewal = auto_renewal
2903
+ @billing_interval = billing_interval
2904
+ @ends_at = ends_at
2905
+ @name = name
2906
+ @starts_at = starts_at
2907
+ end
2908
+ end
2909
+ # Car rental details for this PaymentIntent.
2910
+ attr_accessor :car_rental
2911
+ # Event details for this PaymentIntent
2912
+ attr_accessor :event_details
2913
+ # Flight reservation details for this PaymentIntent
2914
+ attr_accessor :flight
2915
+ # Lodging reservation details for this PaymentIntent
2916
+ attr_accessor :lodging
2917
+ # Subscription details for this PaymentIntent
2918
+ attr_accessor :subscription
2919
+
2920
+ def initialize(
2921
+ car_rental: nil,
2922
+ event_details: nil,
2923
+ flight: nil,
2924
+ lodging: nil,
2925
+ subscription: nil
2926
+ )
2927
+ @car_rental = car_rental
2928
+ @event_details = event_details
2929
+ @flight = flight
2930
+ @lodging = lodging
2931
+ @subscription = subscription
2932
+ end
2933
+ end
2934
+
1485
2935
  class TransferData < Stripe::RequestParams
1486
2936
  # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1487
2937
  attr_accessor :amount
@@ -1498,6 +2948,8 @@ module Stripe
1498
2948
  attr_accessor :application_fee_amount
1499
2949
  # Specifies which fields in the response should be expanded.
1500
2950
  attr_accessor :expand
2951
+ # Provides industry-specific information about the charge.
2952
+ attr_accessor :payment_details
1501
2953
  # The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
1502
2954
  attr_accessor :receipt_email
1503
2955
  # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -1516,6 +2968,7 @@ module Stripe
1516
2968
  application_fee: nil,
1517
2969
  application_fee_amount: nil,
1518
2970
  expand: nil,
2971
+ payment_details: nil,
1519
2972
  receipt_email: nil,
1520
2973
  statement_descriptor: nil,
1521
2974
  statement_descriptor_suffix: nil,
@@ -1526,6 +2979,7 @@ module Stripe
1526
2979
  @application_fee = application_fee
1527
2980
  @application_fee_amount = application_fee_amount
1528
2981
  @expand = expand
2982
+ @payment_details = payment_details
1529
2983
  @receipt_email = receipt_email
1530
2984
  @statement_descriptor = statement_descriptor
1531
2985
  @statement_descriptor_suffix = statement_descriptor_suffix