stripe 15.5.0 → 15.6.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 (598) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +1670 -659
  4. data/README.md +4 -6
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_requestor.rb +32 -0
  7. data/lib/stripe/api_version.rb +1 -2
  8. data/lib/stripe/errors.rb +60 -0
  9. data/lib/stripe/event_types.rb +102 -0
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
  18. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
  19. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  21. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
  22. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
  23. data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
  24. data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
  25. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
  26. data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
  27. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  28. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
  30. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  31. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
  32. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
  33. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
  34. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
  35. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
  36. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
  37. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
  38. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
  39. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
  41. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
  42. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
  43. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
  44. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  45. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
  46. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
  47. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
  48. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
  49. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  51. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
  52. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
  53. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
  54. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
  55. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
  56. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
  57. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
  58. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
  59. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
  60. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
  61. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  62. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  63. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  64. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
  65. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  66. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  67. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  68. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  69. data/lib/stripe/object_types.rb +53 -0
  70. data/lib/stripe/resources/account.rb +653 -1
  71. data/lib/stripe/resources/account_notice.rb +123 -0
  72. data/lib/stripe/resources/account_session.rb +256 -1
  73. data/lib/stripe/resources/balance_settings.rb +112 -0
  74. data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
  75. data/lib/stripe/resources/billing/credit_balance_transaction.rb +4 -0
  76. data/lib/stripe/resources/billing/credit_grant.rb +10 -0
  77. data/lib/stripe/resources/billing/meter_usage.rb +23 -0
  78. data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
  79. data/lib/stripe/resources/billing_portal/session.rb +6 -0
  80. data/lib/stripe/resources/capital/financing_offer.rb +179 -0
  81. data/lib/stripe/resources/capital/financing_summary.rb +55 -0
  82. data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
  83. data/lib/stripe/resources/card.rb +2 -0
  84. data/lib/stripe/resources/cash_balance.rb +2 -0
  85. data/lib/stripe/resources/charge.rb +1540 -0
  86. data/lib/stripe/resources/checkout/session.rb +495 -4
  87. data/lib/stripe/resources/confirmation_token.rb +170 -0
  88. data/lib/stripe/resources/coupon.rb +30 -1
  89. data/lib/stripe/resources/credit_note.rb +6 -0
  90. data/lib/stripe/resources/credit_note_line_item.rb +9 -0
  91. data/lib/stripe/resources/customer.rb +2 -0
  92. data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
  93. data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
  94. data/lib/stripe/resources/customer_session.rb +6 -1
  95. data/lib/stripe/resources/discount.rb +2 -0
  96. data/lib/stripe/resources/dispute.rb +11 -0
  97. data/lib/stripe/resources/event.rb +31 -0
  98. data/lib/stripe/resources/financial_connections/account.rb +22 -1
  99. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
  100. data/lib/stripe/resources/financial_connections/institution.rb +92 -0
  101. data/lib/stripe/resources/financial_connections/session.rb +62 -2
  102. data/lib/stripe/resources/fx_quote.rb +186 -0
  103. data/lib/stripe/resources/identity/verification_session.rb +10 -0
  104. data/lib/stripe/resources/invoice.rb +1140 -16
  105. data/lib/stripe/resources/invoice_item.rb +78 -2
  106. data/lib/stripe/resources/invoice_line_item.rb +55 -1
  107. data/lib/stripe/resources/invoice_payment.rb +6 -1
  108. data/lib/stripe/resources/issuing/cardholder.rb +2 -1
  109. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
  110. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
  111. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
  112. data/lib/stripe/resources/issuing/settlement.rb +53 -0
  113. data/lib/stripe/resources/issuing/transaction.rb +6 -0
  114. data/lib/stripe/resources/line_item.rb +37 -0
  115. data/lib/stripe/resources/mandate.rb +89 -1
  116. data/lib/stripe/resources/margin.rb +115 -0
  117. data/lib/stripe/resources/order.rb +2958 -0
  118. data/lib/stripe/resources/payment_attempt_record.rb +1181 -0
  119. data/lib/stripe/resources/payment_intent.rb +6448 -545
  120. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
  121. data/lib/stripe/resources/payment_method.rb +194 -1
  122. data/lib/stripe/resources/payment_method_configuration.rb +295 -0
  123. data/lib/stripe/resources/payment_record.rb +1727 -0
  124. data/lib/stripe/resources/price.rb +30 -0
  125. data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
  126. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
  127. data/lib/stripe/resources/promotion_code.rb +10 -0
  128. data/lib/stripe/resources/quote.rb +2038 -7
  129. data/lib/stripe/resources/quote_line.rb +274 -0
  130. data/lib/stripe/resources/quote_preview_invoice.rb +680 -0
  131. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +395 -0
  132. data/lib/stripe/resources/refund.rb +9 -0
  133. data/lib/stripe/resources/setup_attempt.rb +24 -0
  134. data/lib/stripe/resources/setup_intent.rb +771 -9
  135. data/lib/stripe/resources/source.rb +29 -0
  136. data/lib/stripe/resources/subscription.rb +365 -9
  137. data/lib/stripe/resources/subscription_item.rb +84 -3
  138. data/lib/stripe/resources/subscription_schedule.rb +1007 -10
  139. data/lib/stripe/resources/tax/association.rb +66 -0
  140. data/lib/stripe/resources/tax/form.rb +211 -0
  141. data/lib/stripe/resources/tax_id.rb +12 -2
  142. data/lib/stripe/resources/terminal/configuration.rb +33 -0
  143. data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
  144. data/lib/stripe/resources/terminal/reader.rb +8 -0
  145. data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
  146. data/lib/stripe/resources/transfer.rb +6 -0
  147. data/lib/stripe/resources/treasury/financial_account.rb +22 -3
  148. data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
  149. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
  150. data/lib/stripe/resources/treasury/received_credit.rb +38 -1
  151. data/lib/stripe/resources/treasury/received_debit.rb +40 -1
  152. data/lib/stripe/resources/v2/core/account.rb +1938 -0
  153. data/lib/stripe/resources/v2/core/account_link.rb +72 -0
  154. data/lib/stripe/resources/v2/core/person.rb +276 -0
  155. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
  156. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
  157. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
  158. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
  159. data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
  160. data/lib/stripe/resources/v2/money_management/financial_account.rb +79 -0
  161. data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
  162. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
  163. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
  164. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
  165. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
  166. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
  167. data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -0
  168. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
  169. data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
  170. data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
  171. data/lib/stripe/resources/v2/money_management/transaction.rb +80 -0
  172. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +70 -0
  173. data/lib/stripe/resources/v2/payments/off_session_payment.rb +89 -0
  174. data/lib/stripe/resources.rb +109 -0
  175. data/lib/stripe/services/account_notice_service.rb +101 -0
  176. data/lib/stripe/services/account_service.rb +562 -1
  177. data/lib/stripe/services/account_session_service.rb +226 -1
  178. data/lib/stripe/services/balance_settings_service.rb +99 -0
  179. data/lib/stripe/services/billing/credit_balance_summary_service.rb +4 -1
  180. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
  181. data/lib/stripe/services/billing/credit_grant_service.rb +8 -0
  182. data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
  183. data/lib/stripe/services/billing_portal/session_service.rb +4 -0
  184. data/lib/stripe/services/billing_service.rb +2 -1
  185. data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
  186. data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
  187. data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
  188. data/lib/stripe/services/capital_service.rb +15 -0
  189. data/lib/stripe/services/charge_service.rb +1418 -0
  190. data/lib/stripe/services/checkout/session_service.rb +392 -4
  191. data/lib/stripe/services/coupon_service.rb +17 -1
  192. data/lib/stripe/services/credit_note_service.rb +4 -0
  193. data/lib/stripe/services/customer_session_service.rb +4 -1
  194. data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
  195. data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
  196. data/lib/stripe/services/financial_connections/account_service.rb +7 -2
  197. data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
  198. data/lib/stripe/services/financial_connections/session_service.rb +34 -2
  199. data/lib/stripe/services/financial_connections_service.rb +2 -1
  200. data/lib/stripe/services/fx_quote_service.rb +123 -0
  201. data/lib/stripe/services/identity/verification_session_service.rb +8 -0
  202. data/lib/stripe/services/invoice_item_service.rb +74 -2
  203. data/lib/stripe/services/invoice_line_item_service.rb +33 -1
  204. data/lib/stripe/services/invoice_payment_service.rb +4 -1
  205. data/lib/stripe/services/invoice_service.rb +1074 -16
  206. data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
  207. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
  208. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
  209. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
  210. data/lib/stripe/services/issuing/transaction_service.rb +4 -0
  211. data/lib/stripe/services/issuing_service.rb +5 -1
  212. data/lib/stripe/services/mandate_service.rb +40 -0
  213. data/lib/stripe/services/margin_service.rb +119 -0
  214. data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
  215. data/lib/stripe/services/order_service.rb +2388 -0
  216. data/lib/stripe/services/payment_attempt_record_service.rb +52 -0
  217. data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
  218. data/lib/stripe/services/payment_intent_service.rb +7630 -2215
  219. data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
  220. data/lib/stripe/services/payment_method_service.rb +120 -1
  221. data/lib/stripe/services/payment_record_service.rb +562 -0
  222. data/lib/stripe/services/price_service.rb +19 -0
  223. data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
  224. data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
  225. data/lib/stripe/services/privacy_service.rb +13 -0
  226. data/lib/stripe/services/promotion_code_service.rb +8 -0
  227. data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
  228. data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
  229. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
  230. data/lib/stripe/services/quote_service.rb +1723 -8
  231. data/lib/stripe/services/setup_intent_service.rb +691 -9
  232. data/lib/stripe/services/subscription_item_service.rb +75 -3
  233. data/lib/stripe/services/subscription_schedule_service.rb +911 -10
  234. data/lib/stripe/services/subscription_service.rb +309 -9
  235. data/lib/stripe/services/tax/association_service.rb +31 -0
  236. data/lib/stripe/services/tax/form_service.rb +100 -0
  237. data/lib/stripe/services/tax_id_service.rb +8 -2
  238. data/lib/stripe/services/tax_service.rb +3 -1
  239. data/lib/stripe/services/terminal/configuration_service.rb +26 -0
  240. data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
  241. data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
  242. data/lib/stripe/services/terminal_service.rb +3 -1
  243. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
  244. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
  245. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
  246. data/lib/stripe/services/transfer_service.rb +4 -0
  247. data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
  248. data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
  249. data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
  250. data/lib/stripe/services/v1_services.rb +11 -1
  251. data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
  252. data/lib/stripe/services/v2/core/account_service.rb +4536 -0
  253. data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
  254. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
  255. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
  256. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  257. data/lib/stripe/services/v2/core_service.rb +4 -1
  258. data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
  259. data/lib/stripe/services/v2/money_management/financial_account_service.rb +119 -0
  260. data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
  261. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
  262. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
  263. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
  264. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
  265. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
  266. data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
  267. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
  268. data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
  269. data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
  270. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
  271. data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
  272. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  273. data/lib/stripe/services/v2/payment_service.rb +15 -0
  274. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
  275. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  276. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
  277. data/lib/stripe/services/v2_services.rb +4 -1
  278. data/lib/stripe/services.rb +55 -0
  279. data/lib/stripe/stripe_configuration.rb +3 -1
  280. data/lib/stripe/stripe_object.rb +1 -1
  281. data/lib/stripe/util.rb +7 -1
  282. data/lib/stripe/version.rb +1 -1
  283. data/lib/stripe.rb +53 -0
  284. data/rbi/stripe.rbi +201354 -0
  285. data/stripe.gemspec +4 -1
  286. metadata +168 -323
  287. data/rbi/stripe/resources/account.rbi +0 -4991
  288. data/rbi/stripe/resources/account_link.rbi +0 -76
  289. data/rbi/stripe/resources/account_session.rbi +0 -1173
  290. data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
  291. data/rbi/stripe/resources/application.rbi +0 -20
  292. data/rbi/stripe/resources/application_fee.rbi +0 -118
  293. data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
  294. data/rbi/stripe/resources/apps/secret.rbi +0 -195
  295. data/rbi/stripe/resources/balance.rbi +0 -230
  296. data/rbi/stripe/resources/balance_transaction.rbi +0 -147
  297. data/rbi/stripe/resources/bank_account.rbi +0 -127
  298. data/rbi/stripe/resources/billing/alert.rbi +0 -201
  299. data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
  300. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
  301. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
  302. data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
  303. data/rbi/stripe/resources/billing/meter.rbi +0 -226
  304. data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
  305. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
  306. data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
  307. data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
  308. data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
  309. data/rbi/stripe/resources/capability.rbi +0 -125
  310. data/rbi/stripe/resources/card.rbi +0 -125
  311. data/rbi/stripe/resources/cash_balance.rbi +0 -32
  312. data/rbi/stripe/resources/charge.rbi +0 -2136
  313. data/rbi/stripe/resources/checkout/session.rbi +0 -4105
  314. data/rbi/stripe/resources/climate/order.rbi +0 -245
  315. data/rbi/stripe/resources/climate/product.rbi +0 -75
  316. data/rbi/stripe/resources/climate/supplier.rbi +0 -72
  317. data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
  318. data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
  319. data/rbi/stripe/resources/country_spec.rbi +0 -85
  320. data/rbi/stripe/resources/coupon.rbi +0 -250
  321. data/rbi/stripe/resources/credit_note.rbi +0 -752
  322. data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
  323. data/rbi/stripe/resources/customer.rbi +0 -993
  324. data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
  325. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
  326. data/rbi/stripe/resources/customer_session.rbi +0 -200
  327. data/rbi/stripe/resources/discount.rbi +0 -53
  328. data/rbi/stripe/resources/dispute.rbi +0 -761
  329. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
  330. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
  331. data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
  332. data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
  333. data/rbi/stripe/resources/event.rbi +0 -137
  334. data/rbi/stripe/resources/exchange_rate.rbi +0 -66
  335. data/rbi/stripe/resources/file.rbi +0 -143
  336. data/rbi/stripe/resources/file_link.rbi +0 -141
  337. data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
  338. data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
  339. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
  340. data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
  341. data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
  342. data/rbi/stripe/resources/forwarding/request.rbi +0 -216
  343. data/rbi/stripe/resources/funding_instructions.rbi +0 -437
  344. data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
  345. data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
  346. data/rbi/stripe/resources/invoice.rbi +0 -3894
  347. data/rbi/stripe/resources/invoice_item.rbi +0 -470
  348. data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
  349. data/rbi/stripe/resources/invoice_payment.rbi +0 -121
  350. data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
  351. data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
  352. data/rbi/stripe/resources/issuing/card.rbi +0 -749
  353. data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
  354. data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
  355. data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
  356. data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
  357. data/rbi/stripe/resources/issuing/token.rbi +0 -226
  358. data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
  359. data/rbi/stripe/resources/line_item.rbi +0 -72
  360. data/rbi/stripe/resources/login_link.rbi +0 -19
  361. data/rbi/stripe/resources/mandate.rbi +0 -191
  362. data/rbi/stripe/resources/payment_intent.rbi +0 -10011
  363. data/rbi/stripe/resources/payment_link.rbi +0 -1891
  364. data/rbi/stripe/resources/payment_method.rbi +0 -1770
  365. data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
  366. data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
  367. data/rbi/stripe/resources/payout.rbi +0 -307
  368. data/rbi/stripe/resources/person.rbi +0 -401
  369. data/rbi/stripe/resources/plan.rbi +0 -371
  370. data/rbi/stripe/resources/price.rbi +0 -694
  371. data/rbi/stripe/resources/product.rbi +0 -553
  372. data/rbi/stripe/resources/product_feature.rbi +0 -26
  373. data/rbi/stripe/resources/promotion_code.rbi +0 -264
  374. data/rbi/stripe/resources/quote.rbi +0 -1137
  375. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
  376. data/rbi/stripe/resources/radar/value_list.rbi +0 -168
  377. data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
  378. data/rbi/stripe/resources/refund.rbi +0 -523
  379. data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
  380. data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
  381. data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
  382. data/rbi/stripe/resources/reversal.rbi +0 -51
  383. data/rbi/stripe/resources/review.rbi +0 -154
  384. data/rbi/stripe/resources/setup_attempt.rbi +0 -477
  385. data/rbi/stripe/resources/setup_intent.rbi +0 -3974
  386. data/rbi/stripe/resources/shipping_rate.rbi +0 -305
  387. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
  388. data/rbi/stripe/resources/source.rbi +0 -1496
  389. data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
  390. data/rbi/stripe/resources/source_transaction.rbi +0 -127
  391. data/rbi/stripe/resources/subscription.rbi +0 -2154
  392. data/rbi/stripe/resources/subscription_item.rbi +0 -404
  393. data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
  394. data/rbi/stripe/resources/tax/calculation.rbi +0 -478
  395. data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
  396. data/rbi/stripe/resources/tax/registration.rbi +0 -3216
  397. data/rbi/stripe/resources/tax/settings.rbi +0 -141
  398. data/rbi/stripe/resources/tax/transaction.rbi +0 -351
  399. data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
  400. data/rbi/stripe/resources/tax_code.rbi +0 -44
  401. data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
  402. data/rbi/stripe/resources/tax_id.rbi +0 -165
  403. data/rbi/stripe/resources/tax_rate.rbi +0 -239
  404. data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
  405. data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
  406. data/rbi/stripe/resources/terminal/location.rbi +0 -222
  407. data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
  408. data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
  409. data/rbi/stripe/resources/token.rbi +0 -1281
  410. data/rbi/stripe/resources/topup.rbi +0 -222
  411. data/rbi/stripe/resources/transfer.rbi +0 -199
  412. data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
  413. data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
  414. data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
  415. data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
  416. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
  417. data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
  418. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
  419. data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
  420. data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
  421. data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
  422. data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
  423. data/rbi/stripe/resources/v2/amount.rbi +0 -14
  424. data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
  425. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
  426. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
  427. data/rbi/stripe/resources/v2/event.rbi +0 -48
  428. data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
  429. data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
  430. data/rbi/stripe/services/account_capability_service.rbi +0 -51
  431. data/rbi/stripe/services/account_link_service.rbi +0 -60
  432. data/rbi/stripe/services/account_login_link_service.rbi +0 -22
  433. data/rbi/stripe/services/account_person_service.rbi +0 -1007
  434. data/rbi/stripe/services/account_service.rbi +0 -4281
  435. data/rbi/stripe/services/account_session_service.rbi +0 -748
  436. data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
  437. data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
  438. data/rbi/stripe/services/application_fee_service.rbi +0 -78
  439. data/rbi/stripe/services/apps/secret_service.rbi +0 -151
  440. data/rbi/stripe/services/apps_service.rbi +0 -9
  441. data/rbi/stripe/services/balance_service.rbi +0 -21
  442. data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
  443. data/rbi/stripe/services/billing/alert_service.rbi +0 -152
  444. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
  445. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
  446. data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
  447. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
  448. data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
  449. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
  450. data/rbi/stripe/services/billing/meter_service.rbi +0 -163
  451. data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
  452. data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
  453. data/rbi/stripe/services/billing_portal_service.rbi +0 -10
  454. data/rbi/stripe/services/billing_service.rbi +0 -15
  455. data/rbi/stripe/services/charge_service.rbi +0 -448
  456. data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
  457. data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
  458. data/rbi/stripe/services/checkout_service.rbi +0 -9
  459. data/rbi/stripe/services/climate/order_service.rbi +0 -142
  460. data/rbi/stripe/services/climate/product_service.rbi +0 -46
  461. data/rbi/stripe/services/climate_service.rbi +0 -11
  462. data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
  463. data/rbi/stripe/services/country_spec_service.rbi +0 -44
  464. data/rbi/stripe/services/coupon_service.rbi +0 -194
  465. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
  466. data/rbi/stripe/services/credit_note_service.rbi +0 -415
  467. data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
  468. data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
  469. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
  470. data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
  471. data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
  472. data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
  473. data/rbi/stripe/services/customer_service.rbi +0 -635
  474. data/rbi/stripe/services/customer_session_service.rbi +0 -116
  475. data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
  476. data/rbi/stripe/services/dispute_service.rbi +0 -424
  477. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
  478. data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
  479. data/rbi/stripe/services/entitlements_service.rbi +0 -10
  480. data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
  481. data/rbi/stripe/services/event_service.rbi +0 -83
  482. data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
  483. data/rbi/stripe/services/file_link_service.rbi +0 -124
  484. data/rbi/stripe/services/file_service.rbi +0 -116
  485. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
  486. data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
  487. data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
  488. data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
  489. data/rbi/stripe/services/financial_connections_service.rbi +0 -11
  490. data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
  491. data/rbi/stripe/services/forwarding_service.rbi +0 -9
  492. data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
  493. data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
  494. data/rbi/stripe/services/identity_service.rbi +0 -10
  495. data/rbi/stripe/services/invoice_item_service.rbi +0 -366
  496. data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
  497. data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
  498. data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
  499. data/rbi/stripe/services/invoice_service.rbi +0 -3073
  500. data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
  501. data/rbi/stripe/services/issuing/card_service.rbi +0 -503
  502. data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
  503. data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
  504. data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
  505. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
  506. data/rbi/stripe/services/issuing/token_service.rbi +0 -99
  507. data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
  508. data/rbi/stripe/services/issuing_service.rbi +0 -16
  509. data/rbi/stripe/services/mandate_service.rbi +0 -20
  510. data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
  511. data/rbi/stripe/services/payment_link_service.rbi +0 -1441
  512. data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
  513. data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
  514. data/rbi/stripe/services/payment_method_service.rbi +0 -781
  515. data/rbi/stripe/services/payout_service.rbi +0 -209
  516. data/rbi/stripe/services/plan_service.rbi +0 -282
  517. data/rbi/stripe/services/price_service.rbi +0 -546
  518. data/rbi/stripe/services/product_feature_service.rbi +0 -67
  519. data/rbi/stripe/services/product_service.rbi +0 -477
  520. data/rbi/stripe/services/promotion_code_service.rbi +0 -214
  521. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
  522. data/rbi/stripe/services/quote_service.rbi +0 -695
  523. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
  524. data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
  525. data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
  526. data/rbi/stripe/services/radar_service.rbi +0 -11
  527. data/rbi/stripe/services/refund_service.rbi +0 -185
  528. data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
  529. data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
  530. data/rbi/stripe/services/reporting_service.rbi +0 -10
  531. data/rbi/stripe/services/review_service.rbi +0 -84
  532. data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
  533. data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
  534. data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
  535. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
  536. data/rbi/stripe/services/sigma_service.rbi +0 -9
  537. data/rbi/stripe/services/source_service.rbi +0 -663
  538. data/rbi/stripe/services/subscription_item_service.rbi +0 -350
  539. data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
  540. data/rbi/stripe/services/subscription_service.rbi +0 -1768
  541. data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
  542. data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
  543. data/rbi/stripe/services/tax/settings_service.rbi +0 -93
  544. data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
  545. data/rbi/stripe/services/tax_code_service.rbi +0 -44
  546. data/rbi/stripe/services/tax_id_service.rbi +0 -110
  547. data/rbi/stripe/services/tax_rate_service.rbi +0 -185
  548. data/rbi/stripe/services/tax_service.rbi +0 -12
  549. data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
  550. data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
  551. data/rbi/stripe/services/terminal/location_service.rbi +0 -182
  552. data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
  553. data/rbi/stripe/services/terminal_service.rbi +0 -12
  554. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
  555. data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
  556. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
  557. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
  558. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
  559. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
  560. data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
  561. data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
  562. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
  563. data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
  564. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
  565. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
  566. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
  567. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
  568. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
  569. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
  570. data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
  571. data/rbi/stripe/services/test_helpers_service.rbi +0 -15
  572. data/rbi/stripe/services/token_service.rbi +0 -1255
  573. data/rbi/stripe/services/topup_service.rbi +0 -176
  574. data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
  575. data/rbi/stripe/services/transfer_service.rbi +0 -152
  576. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
  577. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
  578. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
  579. data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
  580. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
  581. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
  582. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
  583. data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
  584. data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
  585. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
  586. data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
  587. data/rbi/stripe/services/treasury_service.rbi +0 -18
  588. data/rbi/stripe/services/v1_services.rbi +0 -77
  589. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
  590. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
  591. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
  592. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
  593. data/rbi/stripe/services/v2/billing_service.rbi +0 -14
  594. data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
  595. data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
  596. data/rbi/stripe/services/v2/core_service.rbi +0 -12
  597. data/rbi/stripe/services/v2_services.rbi +0 -10
  598. data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -197,6 +197,8 @@ module Stripe
197
197
  class Card < Stripe::StripeObject
198
198
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
199
199
  attr_reader :brand
200
+ # 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.)
201
+ attr_reader :brand_product
200
202
  # 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.
201
203
  attr_reader :country
202
204
  # Two-digit number representing the card's expiration month.
@@ -287,6 +289,11 @@ module Stripe
287
289
  attr_reader :cvc_check
288
290
  end
289
291
 
292
+ class DecrementalAuthorization < Stripe::StripeObject
293
+ # Indicates whether or not the decremental authorization feature is supported.
294
+ attr_reader :status
295
+ end
296
+
290
297
  class ExtendedAuthorization < Stripe::StripeObject
291
298
  # Indicates whether or not the capture window is extended beyond the standard authorization.
292
299
  attr_reader :status
@@ -328,6 +335,11 @@ module Stripe
328
335
  attr_reader :status
329
336
  end
330
337
 
338
+ class PartialAuthorization < Stripe::StripeObject
339
+ # Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
340
+ attr_reader :status
341
+ end
342
+
331
343
  class ThreeDSecure < Stripe::StripeObject
332
344
  # For authenticated transactions: how the customer was authenticated by
333
345
  # the issuing bank.
@@ -460,6 +472,8 @@ module Stripe
460
472
  end
461
473
  # The authorized amount.
462
474
  attr_reader :amount_authorized
475
+ # The latest amount intended to be authorized by this charge.
476
+ attr_reader :amount_requested
463
477
  # Authorization code on the charge.
464
478
  attr_reader :authorization_code
465
479
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
@@ -470,6 +484,8 @@ module Stripe
470
484
  attr_reader :checks
471
485
  # 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.
472
486
  attr_reader :country
487
+ # Attribute for field decremental_authorization
488
+ attr_reader :decremental_authorization
473
489
  # 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.)
474
490
  attr_reader :description
475
491
  # Two-digit number representing the card's expiration month.
@@ -510,6 +526,8 @@ module Stripe
510
526
  attr_reader :network_transaction_id
511
527
  # Attribute for field overcapture
512
528
  attr_reader :overcapture
529
+ # Attribute for field partial_authorization
530
+ attr_reader :partial_authorization
513
531
  # Status of a card based on the card issuer.
514
532
  attr_reader :regulated_status
515
533
  # Populated if this transaction used 3D Secure authentication.
@@ -658,11 +676,26 @@ module Stripe
658
676
  attr_reader :verified_name
659
677
  end
660
678
 
679
+ class Gopay < Stripe::StripeObject; end
680
+
661
681
  class Grabpay < Stripe::StripeObject
662
682
  # Unique transaction id generated by GrabPay
663
683
  attr_reader :transaction_id
664
684
  end
665
685
 
686
+ class IdBankTransfer < Stripe::StripeObject
687
+ # Account number of the bank account to transfer funds to.
688
+ attr_reader :account_number
689
+ # Bank where the account is located.
690
+ attr_reader :bank
691
+ # Local bank code of the bank.
692
+ attr_reader :bank_code
693
+ # Name of the bank associated with the bank account.
694
+ attr_reader :bank_name
695
+ # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
696
+ attr_reader :display_name
697
+ end
698
+
666
699
  class Ideal < Stripe::StripeObject
667
700
  # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
668
701
  attr_reader :bank
@@ -792,6 +825,8 @@ module Stripe
792
825
  attr_reader :country
793
826
  end
794
827
 
828
+ class MbWay < Stripe::StripeObject; end
829
+
795
830
  class Mobilepay < Stripe::StripeObject
796
831
  class Card < Stripe::StripeObject
797
832
  # Brand of the card used in the transaction
@@ -879,6 +914,36 @@ module Stripe
879
914
  # Indicates whether the transaction is eligible for PayPal's seller protection.
880
915
  attr_reader :status
881
916
  end
917
+
918
+ class Shipping < Stripe::StripeObject
919
+ # City, district, suburb, town, or village.
920
+ attr_reader :city
921
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
922
+ attr_reader :country
923
+ # Address line 1 (e.g., street, PO Box, or company name).
924
+ attr_reader :line1
925
+ # Address line 2 (e.g., apartment, suite, unit, or building).
926
+ attr_reader :line2
927
+ # ZIP or postal code.
928
+ attr_reader :postal_code
929
+ # State, county, province, or region.
930
+ attr_reader :state
931
+ end
932
+
933
+ class VerifiedAddress < Stripe::StripeObject
934
+ # City, district, suburb, town, or village.
935
+ attr_reader :city
936
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
937
+ attr_reader :country
938
+ # Address line 1 (e.g., street, PO Box, or company name).
939
+ attr_reader :line1
940
+ # Address line 2 (e.g., apartment, suite, unit, or building).
941
+ attr_reader :line2
942
+ # ZIP or postal code.
943
+ attr_reader :postal_code
944
+ # State, county, province, or region.
945
+ attr_reader :state
946
+ end
882
947
  # 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.
883
948
  attr_reader :country
884
949
  # Owner's email. Values are provided by PayPal directly
@@ -891,13 +956,40 @@ module Stripe
891
956
  attr_reader :payer_name
892
957
  # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
893
958
  attr_reader :seller_protection
959
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
960
+ # execution. This shipping address will not be updated if the merchant updates the shipping
961
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
962
+ attr_reader :shipping
894
963
  # A unique ID generated by PayPal for this transaction.
895
964
  attr_reader :transaction_id
965
+ # The shipping address for the customer, as supplied by the merchant at the point of payment
966
+ # execution. This shipping address will not be updated if the merchant updates the shipping
967
+ # address on the PaymentIntent after the PaymentIntent was successfully confirmed.
968
+ attr_reader :verified_address
969
+ # Owner's verified email. Values are verified or provided by PayPal directly
970
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
971
+ attr_reader :verified_email
972
+ # Owner's verified full name. Values are verified or provided by PayPal directly
973
+ # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
974
+ attr_reader :verified_name
975
+ end
976
+
977
+ class Payto < Stripe::StripeObject
978
+ # Bank-State-Branch number of the bank account.
979
+ attr_reader :bsb_number
980
+ # Last four digits of the bank account number.
981
+ attr_reader :last4
982
+ # ID of the mandate used to make this payment.
983
+ attr_reader :mandate
984
+ # The PayID alias for the bank account.
985
+ attr_reader :pay_id
896
986
  end
897
987
 
898
988
  class Pix < Stripe::StripeObject
899
989
  # Unique transaction id generated by BCB
900
990
  attr_reader :bank_transaction_id
991
+ # ID of the multi use Mandate generated by the PaymentIntent
992
+ attr_reader :mandate
901
993
  end
902
994
 
903
995
  class Promptpay < Stripe::StripeObject
@@ -905,11 +997,16 @@ module Stripe
905
997
  attr_reader :reference
906
998
  end
907
999
 
1000
+ class Qris < Stripe::StripeObject; end
1001
+ class Rechnung < Stripe::StripeObject; end
1002
+
908
1003
  class RevolutPay < Stripe::StripeObject
909
1004
  class Funding < Stripe::StripeObject
910
1005
  class Card < Stripe::StripeObject
911
1006
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
912
1007
  attr_reader :brand
1008
+ # 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.)
1009
+ attr_reader :brand_product
913
1010
  # 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.
914
1011
  attr_reader :country
915
1012
  # Two-digit number representing the card's expiration month.
@@ -968,6 +1065,8 @@ module Stripe
968
1065
  attr_reader :mandate
969
1066
  end
970
1067
 
1068
+ class Shopeepay < Stripe::StripeObject; end
1069
+
971
1070
  class Sofort < Stripe::StripeObject
972
1071
  # Bank code of bank associated with the bank account.
973
1072
  attr_reader :bank_code
@@ -993,6 +1092,13 @@ module Stripe
993
1092
 
994
1093
  class StripeAccount < Stripe::StripeObject; end
995
1094
 
1095
+ class StripeBalance < Stripe::StripeObject
1096
+ # The connected account ID whose Stripe balance to use as the source of payment
1097
+ attr_reader :account
1098
+ # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
1099
+ attr_reader :source_type
1100
+ end
1101
+
996
1102
  class Swish < Stripe::StripeObject
997
1103
  # 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
998
1104
  attr_reader :fingerprint
@@ -1081,8 +1187,12 @@ module Stripe
1081
1187
  attr_reader :fpx
1082
1188
  # Attribute for field giropay
1083
1189
  attr_reader :giropay
1190
+ # Attribute for field gopay
1191
+ attr_reader :gopay
1084
1192
  # Attribute for field grabpay
1085
1193
  attr_reader :grabpay
1194
+ # Attribute for field id_bank_transfer
1195
+ attr_reader :id_bank_transfer
1086
1196
  # Attribute for field ideal
1087
1197
  attr_reader :ideal
1088
1198
  # Attribute for field interac_present
@@ -1097,6 +1207,8 @@ module Stripe
1097
1207
  attr_reader :kr_card
1098
1208
  # Attribute for field link
1099
1209
  attr_reader :link
1210
+ # Attribute for field mb_way
1211
+ attr_reader :mb_way
1100
1212
  # Attribute for field mobilepay
1101
1213
  attr_reader :mobilepay
1102
1214
  # Attribute for field multibanco
@@ -1117,10 +1229,16 @@ module Stripe
1117
1229
  attr_reader :paynow
1118
1230
  # Attribute for field paypal
1119
1231
  attr_reader :paypal
1232
+ # Attribute for field payto
1233
+ attr_reader :payto
1120
1234
  # Attribute for field pix
1121
1235
  attr_reader :pix
1122
1236
  # Attribute for field promptpay
1123
1237
  attr_reader :promptpay
1238
+ # Attribute for field qris
1239
+ attr_reader :qris
1240
+ # Attribute for field rechnung
1241
+ attr_reader :rechnung
1124
1242
  # Attribute for field revolut_pay
1125
1243
  attr_reader :revolut_pay
1126
1244
  # Attribute for field samsung_pay
@@ -1131,10 +1249,14 @@ module Stripe
1131
1249
  attr_reader :sepa_credit_transfer
1132
1250
  # Attribute for field sepa_debit
1133
1251
  attr_reader :sepa_debit
1252
+ # Attribute for field shopeepay
1253
+ attr_reader :shopeepay
1134
1254
  # Attribute for field sofort
1135
1255
  attr_reader :sofort
1136
1256
  # Attribute for field stripe_account
1137
1257
  attr_reader :stripe_account
1258
+ # Attribute for field stripe_balance
1259
+ attr_reader :stripe_balance
1138
1260
  # Attribute for field swish
1139
1261
  attr_reader :swish
1140
1262
  # Attribute for field twint
@@ -1433,6 +1555,711 @@ module Stripe
1433
1555
  end
1434
1556
  end
1435
1557
 
1558
+ class PaymentDetails < Stripe::RequestParams
1559
+ class CarRental < Stripe::RequestParams
1560
+ class Affiliate < Stripe::RequestParams
1561
+ # The name of the affiliate that originated the purchase.
1562
+ attr_accessor :name
1563
+
1564
+ def initialize(name: nil)
1565
+ @name = name
1566
+ end
1567
+ end
1568
+
1569
+ class Delivery < Stripe::RequestParams
1570
+ class Recipient < Stripe::RequestParams
1571
+ # The email of the recipient the ticket is delivered to.
1572
+ attr_accessor :email
1573
+ # The name of the recipient the ticket is delivered to.
1574
+ attr_accessor :name
1575
+ # The phone number of the recipient the ticket is delivered to.
1576
+ attr_accessor :phone
1577
+
1578
+ def initialize(email: nil, name: nil, phone: nil)
1579
+ @email = email
1580
+ @name = name
1581
+ @phone = phone
1582
+ end
1583
+ end
1584
+ # The delivery method for the payment
1585
+ attr_accessor :mode
1586
+ # Details of the recipient.
1587
+ attr_accessor :recipient
1588
+
1589
+ def initialize(mode: nil, recipient: nil)
1590
+ @mode = mode
1591
+ @recipient = recipient
1592
+ end
1593
+ end
1594
+
1595
+ class Distance < Stripe::RequestParams
1596
+ # Distance traveled.
1597
+ attr_accessor :amount
1598
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
1599
+ attr_accessor :unit
1600
+
1601
+ def initialize(amount: nil, unit: nil)
1602
+ @amount = amount
1603
+ @unit = unit
1604
+ end
1605
+ end
1606
+
1607
+ class Driver < Stripe::RequestParams
1608
+ # Driver's identification number.
1609
+ attr_accessor :driver_identification_number
1610
+ # Driver's tax number.
1611
+ attr_accessor :driver_tax_number
1612
+ # Full name of the person or entity on the car reservation.
1613
+ attr_accessor :name
1614
+
1615
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
1616
+ @driver_identification_number = driver_identification_number
1617
+ @driver_tax_number = driver_tax_number
1618
+ @name = name
1619
+ end
1620
+ end
1621
+
1622
+ class PickupAddress < Stripe::RequestParams
1623
+ # City, district, suburb, town, or village.
1624
+ attr_accessor :city
1625
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1626
+ attr_accessor :country
1627
+ # Address line 1 (e.g., street, PO Box, or company name).
1628
+ attr_accessor :line1
1629
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1630
+ attr_accessor :line2
1631
+ # ZIP or postal code.
1632
+ attr_accessor :postal_code
1633
+ # State, county, province, or region.
1634
+ attr_accessor :state
1635
+
1636
+ def initialize(
1637
+ city: nil,
1638
+ country: nil,
1639
+ line1: nil,
1640
+ line2: nil,
1641
+ postal_code: nil,
1642
+ state: nil
1643
+ )
1644
+ @city = city
1645
+ @country = country
1646
+ @line1 = line1
1647
+ @line2 = line2
1648
+ @postal_code = postal_code
1649
+ @state = state
1650
+ end
1651
+ end
1652
+
1653
+ class ReturnAddress < Stripe::RequestParams
1654
+ # City, district, suburb, town, or village.
1655
+ attr_accessor :city
1656
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1657
+ attr_accessor :country
1658
+ # Address line 1 (e.g., street, PO Box, or company name).
1659
+ attr_accessor :line1
1660
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1661
+ attr_accessor :line2
1662
+ # ZIP or postal code.
1663
+ attr_accessor :postal_code
1664
+ # State, county, province, or region.
1665
+ attr_accessor :state
1666
+
1667
+ def initialize(
1668
+ city: nil,
1669
+ country: nil,
1670
+ line1: nil,
1671
+ line2: nil,
1672
+ postal_code: nil,
1673
+ state: nil
1674
+ )
1675
+ @city = city
1676
+ @country = country
1677
+ @line1 = line1
1678
+ @line2 = line2
1679
+ @postal_code = postal_code
1680
+ @state = state
1681
+ end
1682
+ end
1683
+ # Affiliate details for this purchase.
1684
+ attr_accessor :affiliate
1685
+ # The booking number associated with the car rental.
1686
+ attr_accessor :booking_number
1687
+ # Class code of the car.
1688
+ attr_accessor :car_class_code
1689
+ # Make of the car.
1690
+ attr_accessor :car_make
1691
+ # Model of the car.
1692
+ attr_accessor :car_model
1693
+ # The name of the rental car company.
1694
+ attr_accessor :company
1695
+ # The customer service phone number of the car rental company.
1696
+ attr_accessor :customer_service_phone_number
1697
+ # Number of days the car is being rented.
1698
+ attr_accessor :days_rented
1699
+ # Delivery details for this purchase.
1700
+ attr_accessor :delivery
1701
+ # The details of the distance traveled during the rental period.
1702
+ attr_accessor :distance
1703
+ # The details of the passengers in the travel reservation
1704
+ attr_accessor :drivers
1705
+ # List of additional charges being billed.
1706
+ attr_accessor :extra_charges
1707
+ # Indicates if the customer did not keep nor cancel their booking.
1708
+ attr_accessor :no_show
1709
+ # Car pick-up address.
1710
+ attr_accessor :pickup_address
1711
+ # Car pick-up time. Measured in seconds since the Unix epoch.
1712
+ attr_accessor :pickup_at
1713
+ # Name of the pickup location.
1714
+ attr_accessor :pickup_location_name
1715
+ # Rental rate.
1716
+ attr_accessor :rate_amount
1717
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1718
+ attr_accessor :rate_interval
1719
+ # The name of the person or entity renting the car.
1720
+ attr_accessor :renter_name
1721
+ # Car return address.
1722
+ attr_accessor :return_address
1723
+ # Car return time. Measured in seconds since the Unix epoch.
1724
+ attr_accessor :return_at
1725
+ # Name of the return location.
1726
+ attr_accessor :return_location_name
1727
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
1728
+ attr_accessor :tax_exempt
1729
+ # The vehicle identification number.
1730
+ attr_accessor :vehicle_identification_number
1731
+
1732
+ def initialize(
1733
+ affiliate: nil,
1734
+ booking_number: nil,
1735
+ car_class_code: nil,
1736
+ car_make: nil,
1737
+ car_model: nil,
1738
+ company: nil,
1739
+ customer_service_phone_number: nil,
1740
+ days_rented: nil,
1741
+ delivery: nil,
1742
+ distance: nil,
1743
+ drivers: nil,
1744
+ extra_charges: nil,
1745
+ no_show: nil,
1746
+ pickup_address: nil,
1747
+ pickup_at: nil,
1748
+ pickup_location_name: nil,
1749
+ rate_amount: nil,
1750
+ rate_interval: nil,
1751
+ renter_name: nil,
1752
+ return_address: nil,
1753
+ return_at: nil,
1754
+ return_location_name: nil,
1755
+ tax_exempt: nil,
1756
+ vehicle_identification_number: nil
1757
+ )
1758
+ @affiliate = affiliate
1759
+ @booking_number = booking_number
1760
+ @car_class_code = car_class_code
1761
+ @car_make = car_make
1762
+ @car_model = car_model
1763
+ @company = company
1764
+ @customer_service_phone_number = customer_service_phone_number
1765
+ @days_rented = days_rented
1766
+ @delivery = delivery
1767
+ @distance = distance
1768
+ @drivers = drivers
1769
+ @extra_charges = extra_charges
1770
+ @no_show = no_show
1771
+ @pickup_address = pickup_address
1772
+ @pickup_at = pickup_at
1773
+ @pickup_location_name = pickup_location_name
1774
+ @rate_amount = rate_amount
1775
+ @rate_interval = rate_interval
1776
+ @renter_name = renter_name
1777
+ @return_address = return_address
1778
+ @return_at = return_at
1779
+ @return_location_name = return_location_name
1780
+ @tax_exempt = tax_exempt
1781
+ @vehicle_identification_number = vehicle_identification_number
1782
+ end
1783
+ end
1784
+
1785
+ class EventDetails < Stripe::RequestParams
1786
+ class Address < Stripe::RequestParams
1787
+ # City, district, suburb, town, or village.
1788
+ attr_accessor :city
1789
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1790
+ attr_accessor :country
1791
+ # Address line 1 (e.g., street, PO Box, or company name).
1792
+ attr_accessor :line1
1793
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1794
+ attr_accessor :line2
1795
+ # ZIP or postal code.
1796
+ attr_accessor :postal_code
1797
+ # State, county, province, or region.
1798
+ attr_accessor :state
1799
+
1800
+ def initialize(
1801
+ city: nil,
1802
+ country: nil,
1803
+ line1: nil,
1804
+ line2: nil,
1805
+ postal_code: nil,
1806
+ state: nil
1807
+ )
1808
+ @city = city
1809
+ @country = country
1810
+ @line1 = line1
1811
+ @line2 = line2
1812
+ @postal_code = postal_code
1813
+ @state = state
1814
+ end
1815
+ end
1816
+
1817
+ class Affiliate < Stripe::RequestParams
1818
+ # The name of the affiliate that originated the purchase.
1819
+ attr_accessor :name
1820
+
1821
+ def initialize(name: nil)
1822
+ @name = name
1823
+ end
1824
+ end
1825
+
1826
+ class Delivery < Stripe::RequestParams
1827
+ class Recipient < Stripe::RequestParams
1828
+ # The email of the recipient the ticket is delivered to.
1829
+ attr_accessor :email
1830
+ # The name of the recipient the ticket is delivered to.
1831
+ attr_accessor :name
1832
+ # The phone number of the recipient the ticket is delivered to.
1833
+ attr_accessor :phone
1834
+
1835
+ def initialize(email: nil, name: nil, phone: nil)
1836
+ @email = email
1837
+ @name = name
1838
+ @phone = phone
1839
+ end
1840
+ end
1841
+ # The delivery method for the payment
1842
+ attr_accessor :mode
1843
+ # Details of the recipient.
1844
+ attr_accessor :recipient
1845
+
1846
+ def initialize(mode: nil, recipient: nil)
1847
+ @mode = mode
1848
+ @recipient = recipient
1849
+ end
1850
+ end
1851
+ # Indicates if the tickets are digitally checked when entering the venue.
1852
+ attr_accessor :access_controlled_venue
1853
+ # The event location's address.
1854
+ attr_accessor :address
1855
+ # Affiliate details for this purchase.
1856
+ attr_accessor :affiliate
1857
+ # The name of the company
1858
+ attr_accessor :company
1859
+ # Delivery details for this purchase.
1860
+ attr_accessor :delivery
1861
+ # Event end time. Measured in seconds since the Unix epoch.
1862
+ attr_accessor :ends_at
1863
+ # Type of the event entertainment (concert, sports event etc)
1864
+ attr_accessor :genre
1865
+ # The name of the event.
1866
+ attr_accessor :name
1867
+ # Event start time. Measured in seconds since the Unix epoch.
1868
+ attr_accessor :starts_at
1869
+
1870
+ def initialize(
1871
+ access_controlled_venue: nil,
1872
+ address: nil,
1873
+ affiliate: nil,
1874
+ company: nil,
1875
+ delivery: nil,
1876
+ ends_at: nil,
1877
+ genre: nil,
1878
+ name: nil,
1879
+ starts_at: nil
1880
+ )
1881
+ @access_controlled_venue = access_controlled_venue
1882
+ @address = address
1883
+ @affiliate = affiliate
1884
+ @company = company
1885
+ @delivery = delivery
1886
+ @ends_at = ends_at
1887
+ @genre = genre
1888
+ @name = name
1889
+ @starts_at = starts_at
1890
+ end
1891
+ end
1892
+
1893
+ class Flight < Stripe::RequestParams
1894
+ class Affiliate < Stripe::RequestParams
1895
+ # The name of the affiliate that originated the purchase.
1896
+ attr_accessor :name
1897
+
1898
+ def initialize(name: nil)
1899
+ @name = name
1900
+ end
1901
+ end
1902
+
1903
+ class Delivery < Stripe::RequestParams
1904
+ class Recipient < Stripe::RequestParams
1905
+ # The email of the recipient the ticket is delivered to.
1906
+ attr_accessor :email
1907
+ # The name of the recipient the ticket is delivered to.
1908
+ attr_accessor :name
1909
+ # The phone number of the recipient the ticket is delivered to.
1910
+ attr_accessor :phone
1911
+
1912
+ def initialize(email: nil, name: nil, phone: nil)
1913
+ @email = email
1914
+ @name = name
1915
+ @phone = phone
1916
+ end
1917
+ end
1918
+ # The delivery method for the payment
1919
+ attr_accessor :mode
1920
+ # Details of the recipient.
1921
+ attr_accessor :recipient
1922
+
1923
+ def initialize(mode: nil, recipient: nil)
1924
+ @mode = mode
1925
+ @recipient = recipient
1926
+ end
1927
+ end
1928
+
1929
+ class Passenger < Stripe::RequestParams
1930
+ # Full name of the person or entity on the flight reservation.
1931
+ attr_accessor :name
1932
+
1933
+ def initialize(name: nil)
1934
+ @name = name
1935
+ end
1936
+ end
1937
+
1938
+ class Segment < Stripe::RequestParams
1939
+ # The flight segment amount.
1940
+ attr_accessor :amount
1941
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
1942
+ attr_accessor :arrival_airport
1943
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
1944
+ attr_accessor :arrives_at
1945
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
1946
+ attr_accessor :carrier
1947
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
1948
+ attr_accessor :departs_at
1949
+ # The International Air Transport Association (IATA) airport code for the departure airport.
1950
+ attr_accessor :departure_airport
1951
+ # The flight number associated with the segment
1952
+ attr_accessor :flight_number
1953
+ # The fare class for the segment.
1954
+ attr_accessor :service_class
1955
+
1956
+ def initialize(
1957
+ amount: nil,
1958
+ arrival_airport: nil,
1959
+ arrives_at: nil,
1960
+ carrier: nil,
1961
+ departs_at: nil,
1962
+ departure_airport: nil,
1963
+ flight_number: nil,
1964
+ service_class: nil
1965
+ )
1966
+ @amount = amount
1967
+ @arrival_airport = arrival_airport
1968
+ @arrives_at = arrives_at
1969
+ @carrier = carrier
1970
+ @departs_at = departs_at
1971
+ @departure_airport = departure_airport
1972
+ @flight_number = flight_number
1973
+ @service_class = service_class
1974
+ end
1975
+ end
1976
+ # Affiliate details for this purchase.
1977
+ attr_accessor :affiliate
1978
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
1979
+ attr_accessor :agency_number
1980
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
1981
+ attr_accessor :carrier
1982
+ # Delivery details for this purchase.
1983
+ attr_accessor :delivery
1984
+ # The name of the person or entity on the reservation.
1985
+ attr_accessor :passenger_name
1986
+ # The details of the passengers in the travel reservation.
1987
+ attr_accessor :passengers
1988
+ # The individual flight segments associated with the trip.
1989
+ attr_accessor :segments
1990
+ # The ticket number associated with the travel reservation.
1991
+ attr_accessor :ticket_number
1992
+
1993
+ def initialize(
1994
+ affiliate: nil,
1995
+ agency_number: nil,
1996
+ carrier: nil,
1997
+ delivery: nil,
1998
+ passenger_name: nil,
1999
+ passengers: nil,
2000
+ segments: nil,
2001
+ ticket_number: nil
2002
+ )
2003
+ @affiliate = affiliate
2004
+ @agency_number = agency_number
2005
+ @carrier = carrier
2006
+ @delivery = delivery
2007
+ @passenger_name = passenger_name
2008
+ @passengers = passengers
2009
+ @segments = segments
2010
+ @ticket_number = ticket_number
2011
+ end
2012
+ end
2013
+
2014
+ class Lodging < Stripe::RequestParams
2015
+ class Address < Stripe::RequestParams
2016
+ # City, district, suburb, town, or village.
2017
+ attr_accessor :city
2018
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2019
+ attr_accessor :country
2020
+ # Address line 1 (e.g., street, PO Box, or company name).
2021
+ attr_accessor :line1
2022
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2023
+ attr_accessor :line2
2024
+ # ZIP or postal code.
2025
+ attr_accessor :postal_code
2026
+ # State, county, province, or region.
2027
+ attr_accessor :state
2028
+
2029
+ def initialize(
2030
+ city: nil,
2031
+ country: nil,
2032
+ line1: nil,
2033
+ line2: nil,
2034
+ postal_code: nil,
2035
+ state: nil
2036
+ )
2037
+ @city = city
2038
+ @country = country
2039
+ @line1 = line1
2040
+ @line2 = line2
2041
+ @postal_code = postal_code
2042
+ @state = state
2043
+ end
2044
+ end
2045
+
2046
+ class Affiliate < Stripe::RequestParams
2047
+ # The name of the affiliate that originated the purchase.
2048
+ attr_accessor :name
2049
+
2050
+ def initialize(name: nil)
2051
+ @name = name
2052
+ end
2053
+ end
2054
+
2055
+ class Delivery < Stripe::RequestParams
2056
+ class Recipient < Stripe::RequestParams
2057
+ # The email of the recipient the ticket is delivered to.
2058
+ attr_accessor :email
2059
+ # The name of the recipient the ticket is delivered to.
2060
+ attr_accessor :name
2061
+ # The phone number of the recipient the ticket is delivered to.
2062
+ attr_accessor :phone
2063
+
2064
+ def initialize(email: nil, name: nil, phone: nil)
2065
+ @email = email
2066
+ @name = name
2067
+ @phone = phone
2068
+ end
2069
+ end
2070
+ # The delivery method for the payment
2071
+ attr_accessor :mode
2072
+ # Details of the recipient.
2073
+ attr_accessor :recipient
2074
+
2075
+ def initialize(mode: nil, recipient: nil)
2076
+ @mode = mode
2077
+ @recipient = recipient
2078
+ end
2079
+ end
2080
+
2081
+ class Passenger < Stripe::RequestParams
2082
+ # Full name of the person or entity on the lodging reservation.
2083
+ attr_accessor :name
2084
+
2085
+ def initialize(name: nil)
2086
+ @name = name
2087
+ end
2088
+ end
2089
+ # The lodging location's address.
2090
+ attr_accessor :address
2091
+ # The number of adults on the booking
2092
+ attr_accessor :adults
2093
+ # Affiliate details for this purchase.
2094
+ attr_accessor :affiliate
2095
+ # The booking number associated with the lodging reservation.
2096
+ attr_accessor :booking_number
2097
+ # The lodging category
2098
+ attr_accessor :category
2099
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
2100
+ attr_accessor :checkin_at
2101
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
2102
+ attr_accessor :checkout_at
2103
+ # The customer service phone number of the lodging company.
2104
+ attr_accessor :customer_service_phone_number
2105
+ # The daily lodging room rate.
2106
+ attr_accessor :daily_room_rate_amount
2107
+ # Delivery details for this purchase.
2108
+ attr_accessor :delivery
2109
+ # List of additional charges being billed.
2110
+ attr_accessor :extra_charges
2111
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
2112
+ attr_accessor :fire_safety_act_compliance
2113
+ # The name of the lodging location.
2114
+ attr_accessor :name
2115
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
2116
+ attr_accessor :no_show
2117
+ # The number of rooms on the booking
2118
+ attr_accessor :number_of_rooms
2119
+ # The details of the passengers in the travel reservation
2120
+ attr_accessor :passengers
2121
+ # The phone number of the lodging location.
2122
+ attr_accessor :property_phone_number
2123
+ # The room class for this purchase.
2124
+ attr_accessor :room_class
2125
+ # The number of room nights
2126
+ attr_accessor :room_nights
2127
+ # The total tax amount associating with the room reservation.
2128
+ attr_accessor :total_room_tax_amount
2129
+ # The total tax amount
2130
+ attr_accessor :total_tax_amount
2131
+
2132
+ def initialize(
2133
+ address: nil,
2134
+ adults: nil,
2135
+ affiliate: nil,
2136
+ booking_number: nil,
2137
+ category: nil,
2138
+ checkin_at: nil,
2139
+ checkout_at: nil,
2140
+ customer_service_phone_number: nil,
2141
+ daily_room_rate_amount: nil,
2142
+ delivery: nil,
2143
+ extra_charges: nil,
2144
+ fire_safety_act_compliance: nil,
2145
+ name: nil,
2146
+ no_show: nil,
2147
+ number_of_rooms: nil,
2148
+ passengers: nil,
2149
+ property_phone_number: nil,
2150
+ room_class: nil,
2151
+ room_nights: nil,
2152
+ total_room_tax_amount: nil,
2153
+ total_tax_amount: nil
2154
+ )
2155
+ @address = address
2156
+ @adults = adults
2157
+ @affiliate = affiliate
2158
+ @booking_number = booking_number
2159
+ @category = category
2160
+ @checkin_at = checkin_at
2161
+ @checkout_at = checkout_at
2162
+ @customer_service_phone_number = customer_service_phone_number
2163
+ @daily_room_rate_amount = daily_room_rate_amount
2164
+ @delivery = delivery
2165
+ @extra_charges = extra_charges
2166
+ @fire_safety_act_compliance = fire_safety_act_compliance
2167
+ @name = name
2168
+ @no_show = no_show
2169
+ @number_of_rooms = number_of_rooms
2170
+ @passengers = passengers
2171
+ @property_phone_number = property_phone_number
2172
+ @room_class = room_class
2173
+ @room_nights = room_nights
2174
+ @total_room_tax_amount = total_room_tax_amount
2175
+ @total_tax_amount = total_tax_amount
2176
+ end
2177
+ end
2178
+
2179
+ class Subscription < Stripe::RequestParams
2180
+ class Affiliate < Stripe::RequestParams
2181
+ # The name of the affiliate that originated the purchase.
2182
+ attr_accessor :name
2183
+
2184
+ def initialize(name: nil)
2185
+ @name = name
2186
+ end
2187
+ end
2188
+
2189
+ class BillingInterval < Stripe::RequestParams
2190
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
2191
+ attr_accessor :count
2192
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
2193
+ attr_accessor :interval
2194
+
2195
+ def initialize(count: nil, interval: nil)
2196
+ @count = count
2197
+ @interval = interval
2198
+ end
2199
+ end
2200
+ # Affiliate details for this purchase.
2201
+ attr_accessor :affiliate
2202
+ # Info whether the subscription will be auto renewed upon expiry.
2203
+ attr_accessor :auto_renewal
2204
+ # Subscription billing details for this purchase.
2205
+ attr_accessor :billing_interval
2206
+ # Subscription end time. Measured in seconds since the Unix epoch.
2207
+ attr_accessor :ends_at
2208
+ # Name of the product on subscription. e.g. Apple Music Subscription
2209
+ attr_accessor :name
2210
+ # Subscription start time. Measured in seconds since the Unix epoch.
2211
+ attr_accessor :starts_at
2212
+
2213
+ def initialize(
2214
+ affiliate: nil,
2215
+ auto_renewal: nil,
2216
+ billing_interval: nil,
2217
+ ends_at: nil,
2218
+ name: nil,
2219
+ starts_at: nil
2220
+ )
2221
+ @affiliate = affiliate
2222
+ @auto_renewal = auto_renewal
2223
+ @billing_interval = billing_interval
2224
+ @ends_at = ends_at
2225
+ @name = name
2226
+ @starts_at = starts_at
2227
+ end
2228
+ end
2229
+ # Car rental details for this PaymentIntent.
2230
+ attr_accessor :car_rental
2231
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
2232
+ attr_accessor :customer_reference
2233
+ # Event details for this PaymentIntent
2234
+ attr_accessor :event_details
2235
+ # Flight reservation details for this PaymentIntent
2236
+ attr_accessor :flight
2237
+ # Lodging reservation details for this PaymentIntent
2238
+ attr_accessor :lodging
2239
+ # A unique value assigned by the business to identify the transaction.
2240
+ attr_accessor :order_reference
2241
+ # Subscription details for this PaymentIntent
2242
+ attr_accessor :subscription
2243
+
2244
+ def initialize(
2245
+ car_rental: nil,
2246
+ customer_reference: nil,
2247
+ event_details: nil,
2248
+ flight: nil,
2249
+ lodging: nil,
2250
+ order_reference: nil,
2251
+ subscription: nil
2252
+ )
2253
+ @car_rental = car_rental
2254
+ @customer_reference = customer_reference
2255
+ @event_details = event_details
2256
+ @flight = flight
2257
+ @lodging = lodging
2258
+ @order_reference = order_reference
2259
+ @subscription = subscription
2260
+ end
2261
+ end
2262
+
1436
2263
  class Shipping < Stripe::RequestParams
1437
2264
  class Address < Stripe::RequestParams
1438
2265
  # City, district, suburb, town, or village.
@@ -1493,6 +2320,8 @@ module Stripe
1493
2320
  attr_accessor :fraud_details
1494
2321
  # 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`.
1495
2322
  attr_accessor :metadata
2323
+ # Provides industry-specific information about the charge.
2324
+ attr_accessor :payment_details
1496
2325
  # 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.
1497
2326
  attr_accessor :receipt_email
1498
2327
  # Shipping information for the charge. Helps prevent fraud on charges for physical goods.
@@ -1506,6 +2335,7 @@ module Stripe
1506
2335
  expand: nil,
1507
2336
  fraud_details: nil,
1508
2337
  metadata: nil,
2338
+ payment_details: nil,
1509
2339
  receipt_email: nil,
1510
2340
  shipping: nil,
1511
2341
  transfer_group: nil
@@ -1515,6 +2345,7 @@ module Stripe
1515
2345
  @expand = expand
1516
2346
  @fraud_details = fraud_details
1517
2347
  @metadata = metadata
2348
+ @payment_details = payment_details
1518
2349
  @receipt_email = receipt_email
1519
2350
  @shipping = shipping
1520
2351
  @transfer_group = transfer_group
@@ -1540,6 +2371,711 @@ module Stripe
1540
2371
  end
1541
2372
 
1542
2373
  class CaptureParams < Stripe::RequestParams
2374
+ class PaymentDetails < Stripe::RequestParams
2375
+ class CarRental < Stripe::RequestParams
2376
+ class Affiliate < Stripe::RequestParams
2377
+ # The name of the affiliate that originated the purchase.
2378
+ attr_accessor :name
2379
+
2380
+ def initialize(name: nil)
2381
+ @name = name
2382
+ end
2383
+ end
2384
+
2385
+ class Delivery < Stripe::RequestParams
2386
+ class Recipient < Stripe::RequestParams
2387
+ # The email of the recipient the ticket is delivered to.
2388
+ attr_accessor :email
2389
+ # The name of the recipient the ticket is delivered to.
2390
+ attr_accessor :name
2391
+ # The phone number of the recipient the ticket is delivered to.
2392
+ attr_accessor :phone
2393
+
2394
+ def initialize(email: nil, name: nil, phone: nil)
2395
+ @email = email
2396
+ @name = name
2397
+ @phone = phone
2398
+ end
2399
+ end
2400
+ # The delivery method for the payment
2401
+ attr_accessor :mode
2402
+ # Details of the recipient.
2403
+ attr_accessor :recipient
2404
+
2405
+ def initialize(mode: nil, recipient: nil)
2406
+ @mode = mode
2407
+ @recipient = recipient
2408
+ end
2409
+ end
2410
+
2411
+ class Distance < Stripe::RequestParams
2412
+ # Distance traveled.
2413
+ attr_accessor :amount
2414
+ # Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
2415
+ attr_accessor :unit
2416
+
2417
+ def initialize(amount: nil, unit: nil)
2418
+ @amount = amount
2419
+ @unit = unit
2420
+ end
2421
+ end
2422
+
2423
+ class Driver < Stripe::RequestParams
2424
+ # Driver's identification number.
2425
+ attr_accessor :driver_identification_number
2426
+ # Driver's tax number.
2427
+ attr_accessor :driver_tax_number
2428
+ # Full name of the person or entity on the car reservation.
2429
+ attr_accessor :name
2430
+
2431
+ def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
2432
+ @driver_identification_number = driver_identification_number
2433
+ @driver_tax_number = driver_tax_number
2434
+ @name = name
2435
+ end
2436
+ end
2437
+
2438
+ class PickupAddress < Stripe::RequestParams
2439
+ # City, district, suburb, town, or village.
2440
+ attr_accessor :city
2441
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2442
+ attr_accessor :country
2443
+ # Address line 1 (e.g., street, PO Box, or company name).
2444
+ attr_accessor :line1
2445
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2446
+ attr_accessor :line2
2447
+ # ZIP or postal code.
2448
+ attr_accessor :postal_code
2449
+ # State, county, province, or region.
2450
+ attr_accessor :state
2451
+
2452
+ def initialize(
2453
+ city: nil,
2454
+ country: nil,
2455
+ line1: nil,
2456
+ line2: nil,
2457
+ postal_code: nil,
2458
+ state: nil
2459
+ )
2460
+ @city = city
2461
+ @country = country
2462
+ @line1 = line1
2463
+ @line2 = line2
2464
+ @postal_code = postal_code
2465
+ @state = state
2466
+ end
2467
+ end
2468
+
2469
+ class ReturnAddress < Stripe::RequestParams
2470
+ # City, district, suburb, town, or village.
2471
+ attr_accessor :city
2472
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2473
+ attr_accessor :country
2474
+ # Address line 1 (e.g., street, PO Box, or company name).
2475
+ attr_accessor :line1
2476
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2477
+ attr_accessor :line2
2478
+ # ZIP or postal code.
2479
+ attr_accessor :postal_code
2480
+ # State, county, province, or region.
2481
+ attr_accessor :state
2482
+
2483
+ def initialize(
2484
+ city: nil,
2485
+ country: nil,
2486
+ line1: nil,
2487
+ line2: nil,
2488
+ postal_code: nil,
2489
+ state: nil
2490
+ )
2491
+ @city = city
2492
+ @country = country
2493
+ @line1 = line1
2494
+ @line2 = line2
2495
+ @postal_code = postal_code
2496
+ @state = state
2497
+ end
2498
+ end
2499
+ # Affiliate details for this purchase.
2500
+ attr_accessor :affiliate
2501
+ # The booking number associated with the car rental.
2502
+ attr_accessor :booking_number
2503
+ # Class code of the car.
2504
+ attr_accessor :car_class_code
2505
+ # Make of the car.
2506
+ attr_accessor :car_make
2507
+ # Model of the car.
2508
+ attr_accessor :car_model
2509
+ # The name of the rental car company.
2510
+ attr_accessor :company
2511
+ # The customer service phone number of the car rental company.
2512
+ attr_accessor :customer_service_phone_number
2513
+ # Number of days the car is being rented.
2514
+ attr_accessor :days_rented
2515
+ # Delivery details for this purchase.
2516
+ attr_accessor :delivery
2517
+ # The details of the distance traveled during the rental period.
2518
+ attr_accessor :distance
2519
+ # The details of the passengers in the travel reservation
2520
+ attr_accessor :drivers
2521
+ # List of additional charges being billed.
2522
+ attr_accessor :extra_charges
2523
+ # Indicates if the customer did not keep nor cancel their booking.
2524
+ attr_accessor :no_show
2525
+ # Car pick-up address.
2526
+ attr_accessor :pickup_address
2527
+ # Car pick-up time. Measured in seconds since the Unix epoch.
2528
+ attr_accessor :pickup_at
2529
+ # Name of the pickup location.
2530
+ attr_accessor :pickup_location_name
2531
+ # Rental rate.
2532
+ attr_accessor :rate_amount
2533
+ # The frequency at which the rate amount is applied. One of `day`, `week` or `month`
2534
+ attr_accessor :rate_interval
2535
+ # The name of the person or entity renting the car.
2536
+ attr_accessor :renter_name
2537
+ # Car return address.
2538
+ attr_accessor :return_address
2539
+ # Car return time. Measured in seconds since the Unix epoch.
2540
+ attr_accessor :return_at
2541
+ # Name of the return location.
2542
+ attr_accessor :return_location_name
2543
+ # Indicates whether the goods or services are tax-exempt or tax is not collected.
2544
+ attr_accessor :tax_exempt
2545
+ # The vehicle identification number.
2546
+ attr_accessor :vehicle_identification_number
2547
+
2548
+ def initialize(
2549
+ affiliate: nil,
2550
+ booking_number: nil,
2551
+ car_class_code: nil,
2552
+ car_make: nil,
2553
+ car_model: nil,
2554
+ company: nil,
2555
+ customer_service_phone_number: nil,
2556
+ days_rented: nil,
2557
+ delivery: nil,
2558
+ distance: nil,
2559
+ drivers: nil,
2560
+ extra_charges: nil,
2561
+ no_show: nil,
2562
+ pickup_address: nil,
2563
+ pickup_at: nil,
2564
+ pickup_location_name: nil,
2565
+ rate_amount: nil,
2566
+ rate_interval: nil,
2567
+ renter_name: nil,
2568
+ return_address: nil,
2569
+ return_at: nil,
2570
+ return_location_name: nil,
2571
+ tax_exempt: nil,
2572
+ vehicle_identification_number: nil
2573
+ )
2574
+ @affiliate = affiliate
2575
+ @booking_number = booking_number
2576
+ @car_class_code = car_class_code
2577
+ @car_make = car_make
2578
+ @car_model = car_model
2579
+ @company = company
2580
+ @customer_service_phone_number = customer_service_phone_number
2581
+ @days_rented = days_rented
2582
+ @delivery = delivery
2583
+ @distance = distance
2584
+ @drivers = drivers
2585
+ @extra_charges = extra_charges
2586
+ @no_show = no_show
2587
+ @pickup_address = pickup_address
2588
+ @pickup_at = pickup_at
2589
+ @pickup_location_name = pickup_location_name
2590
+ @rate_amount = rate_amount
2591
+ @rate_interval = rate_interval
2592
+ @renter_name = renter_name
2593
+ @return_address = return_address
2594
+ @return_at = return_at
2595
+ @return_location_name = return_location_name
2596
+ @tax_exempt = tax_exempt
2597
+ @vehicle_identification_number = vehicle_identification_number
2598
+ end
2599
+ end
2600
+
2601
+ class EventDetails < Stripe::RequestParams
2602
+ class Address < Stripe::RequestParams
2603
+ # City, district, suburb, town, or village.
2604
+ attr_accessor :city
2605
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2606
+ attr_accessor :country
2607
+ # Address line 1 (e.g., street, PO Box, or company name).
2608
+ attr_accessor :line1
2609
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2610
+ attr_accessor :line2
2611
+ # ZIP or postal code.
2612
+ attr_accessor :postal_code
2613
+ # State, county, province, or region.
2614
+ attr_accessor :state
2615
+
2616
+ def initialize(
2617
+ city: nil,
2618
+ country: nil,
2619
+ line1: nil,
2620
+ line2: nil,
2621
+ postal_code: nil,
2622
+ state: nil
2623
+ )
2624
+ @city = city
2625
+ @country = country
2626
+ @line1 = line1
2627
+ @line2 = line2
2628
+ @postal_code = postal_code
2629
+ @state = state
2630
+ end
2631
+ end
2632
+
2633
+ class Affiliate < Stripe::RequestParams
2634
+ # The name of the affiliate that originated the purchase.
2635
+ attr_accessor :name
2636
+
2637
+ def initialize(name: nil)
2638
+ @name = name
2639
+ end
2640
+ end
2641
+
2642
+ class Delivery < Stripe::RequestParams
2643
+ class Recipient < Stripe::RequestParams
2644
+ # The email of the recipient the ticket is delivered to.
2645
+ attr_accessor :email
2646
+ # The name of the recipient the ticket is delivered to.
2647
+ attr_accessor :name
2648
+ # The phone number of the recipient the ticket is delivered to.
2649
+ attr_accessor :phone
2650
+
2651
+ def initialize(email: nil, name: nil, phone: nil)
2652
+ @email = email
2653
+ @name = name
2654
+ @phone = phone
2655
+ end
2656
+ end
2657
+ # The delivery method for the payment
2658
+ attr_accessor :mode
2659
+ # Details of the recipient.
2660
+ attr_accessor :recipient
2661
+
2662
+ def initialize(mode: nil, recipient: nil)
2663
+ @mode = mode
2664
+ @recipient = recipient
2665
+ end
2666
+ end
2667
+ # Indicates if the tickets are digitally checked when entering the venue.
2668
+ attr_accessor :access_controlled_venue
2669
+ # The event location's address.
2670
+ attr_accessor :address
2671
+ # Affiliate details for this purchase.
2672
+ attr_accessor :affiliate
2673
+ # The name of the company
2674
+ attr_accessor :company
2675
+ # Delivery details for this purchase.
2676
+ attr_accessor :delivery
2677
+ # Event end time. Measured in seconds since the Unix epoch.
2678
+ attr_accessor :ends_at
2679
+ # Type of the event entertainment (concert, sports event etc)
2680
+ attr_accessor :genre
2681
+ # The name of the event.
2682
+ attr_accessor :name
2683
+ # Event start time. Measured in seconds since the Unix epoch.
2684
+ attr_accessor :starts_at
2685
+
2686
+ def initialize(
2687
+ access_controlled_venue: nil,
2688
+ address: nil,
2689
+ affiliate: nil,
2690
+ company: nil,
2691
+ delivery: nil,
2692
+ ends_at: nil,
2693
+ genre: nil,
2694
+ name: nil,
2695
+ starts_at: nil
2696
+ )
2697
+ @access_controlled_venue = access_controlled_venue
2698
+ @address = address
2699
+ @affiliate = affiliate
2700
+ @company = company
2701
+ @delivery = delivery
2702
+ @ends_at = ends_at
2703
+ @genre = genre
2704
+ @name = name
2705
+ @starts_at = starts_at
2706
+ end
2707
+ end
2708
+
2709
+ class Flight < Stripe::RequestParams
2710
+ class Affiliate < Stripe::RequestParams
2711
+ # The name of the affiliate that originated the purchase.
2712
+ attr_accessor :name
2713
+
2714
+ def initialize(name: nil)
2715
+ @name = name
2716
+ end
2717
+ end
2718
+
2719
+ class Delivery < Stripe::RequestParams
2720
+ class Recipient < Stripe::RequestParams
2721
+ # The email of the recipient the ticket is delivered to.
2722
+ attr_accessor :email
2723
+ # The name of the recipient the ticket is delivered to.
2724
+ attr_accessor :name
2725
+ # The phone number of the recipient the ticket is delivered to.
2726
+ attr_accessor :phone
2727
+
2728
+ def initialize(email: nil, name: nil, phone: nil)
2729
+ @email = email
2730
+ @name = name
2731
+ @phone = phone
2732
+ end
2733
+ end
2734
+ # The delivery method for the payment
2735
+ attr_accessor :mode
2736
+ # Details of the recipient.
2737
+ attr_accessor :recipient
2738
+
2739
+ def initialize(mode: nil, recipient: nil)
2740
+ @mode = mode
2741
+ @recipient = recipient
2742
+ end
2743
+ end
2744
+
2745
+ class Passenger < Stripe::RequestParams
2746
+ # Full name of the person or entity on the flight reservation.
2747
+ attr_accessor :name
2748
+
2749
+ def initialize(name: nil)
2750
+ @name = name
2751
+ end
2752
+ end
2753
+
2754
+ class Segment < Stripe::RequestParams
2755
+ # The flight segment amount.
2756
+ attr_accessor :amount
2757
+ # The International Air Transport Association (IATA) airport code for the arrival airport.
2758
+ attr_accessor :arrival_airport
2759
+ # The arrival time for the flight segment. Measured in seconds since the Unix epoch.
2760
+ attr_accessor :arrives_at
2761
+ # The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
2762
+ attr_accessor :carrier
2763
+ # The departure time for the flight segment. Measured in seconds since the Unix epoch.
2764
+ attr_accessor :departs_at
2765
+ # The International Air Transport Association (IATA) airport code for the departure airport.
2766
+ attr_accessor :departure_airport
2767
+ # The flight number associated with the segment
2768
+ attr_accessor :flight_number
2769
+ # The fare class for the segment.
2770
+ attr_accessor :service_class
2771
+
2772
+ def initialize(
2773
+ amount: nil,
2774
+ arrival_airport: nil,
2775
+ arrives_at: nil,
2776
+ carrier: nil,
2777
+ departs_at: nil,
2778
+ departure_airport: nil,
2779
+ flight_number: nil,
2780
+ service_class: nil
2781
+ )
2782
+ @amount = amount
2783
+ @arrival_airport = arrival_airport
2784
+ @arrives_at = arrives_at
2785
+ @carrier = carrier
2786
+ @departs_at = departs_at
2787
+ @departure_airport = departure_airport
2788
+ @flight_number = flight_number
2789
+ @service_class = service_class
2790
+ end
2791
+ end
2792
+ # Affiliate details for this purchase.
2793
+ attr_accessor :affiliate
2794
+ # The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
2795
+ attr_accessor :agency_number
2796
+ # The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
2797
+ attr_accessor :carrier
2798
+ # Delivery details for this purchase.
2799
+ attr_accessor :delivery
2800
+ # The name of the person or entity on the reservation.
2801
+ attr_accessor :passenger_name
2802
+ # The details of the passengers in the travel reservation.
2803
+ attr_accessor :passengers
2804
+ # The individual flight segments associated with the trip.
2805
+ attr_accessor :segments
2806
+ # The ticket number associated with the travel reservation.
2807
+ attr_accessor :ticket_number
2808
+
2809
+ def initialize(
2810
+ affiliate: nil,
2811
+ agency_number: nil,
2812
+ carrier: nil,
2813
+ delivery: nil,
2814
+ passenger_name: nil,
2815
+ passengers: nil,
2816
+ segments: nil,
2817
+ ticket_number: nil
2818
+ )
2819
+ @affiliate = affiliate
2820
+ @agency_number = agency_number
2821
+ @carrier = carrier
2822
+ @delivery = delivery
2823
+ @passenger_name = passenger_name
2824
+ @passengers = passengers
2825
+ @segments = segments
2826
+ @ticket_number = ticket_number
2827
+ end
2828
+ end
2829
+
2830
+ class Lodging < Stripe::RequestParams
2831
+ class Address < Stripe::RequestParams
2832
+ # City, district, suburb, town, or village.
2833
+ attr_accessor :city
2834
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2835
+ attr_accessor :country
2836
+ # Address line 1 (e.g., street, PO Box, or company name).
2837
+ attr_accessor :line1
2838
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2839
+ attr_accessor :line2
2840
+ # ZIP or postal code.
2841
+ attr_accessor :postal_code
2842
+ # State, county, province, or region.
2843
+ attr_accessor :state
2844
+
2845
+ def initialize(
2846
+ city: nil,
2847
+ country: nil,
2848
+ line1: nil,
2849
+ line2: nil,
2850
+ postal_code: nil,
2851
+ state: nil
2852
+ )
2853
+ @city = city
2854
+ @country = country
2855
+ @line1 = line1
2856
+ @line2 = line2
2857
+ @postal_code = postal_code
2858
+ @state = state
2859
+ end
2860
+ end
2861
+
2862
+ class Affiliate < Stripe::RequestParams
2863
+ # The name of the affiliate that originated the purchase.
2864
+ attr_accessor :name
2865
+
2866
+ def initialize(name: nil)
2867
+ @name = name
2868
+ end
2869
+ end
2870
+
2871
+ class Delivery < Stripe::RequestParams
2872
+ class Recipient < Stripe::RequestParams
2873
+ # The email of the recipient the ticket is delivered to.
2874
+ attr_accessor :email
2875
+ # The name of the recipient the ticket is delivered to.
2876
+ attr_accessor :name
2877
+ # The phone number of the recipient the ticket is delivered to.
2878
+ attr_accessor :phone
2879
+
2880
+ def initialize(email: nil, name: nil, phone: nil)
2881
+ @email = email
2882
+ @name = name
2883
+ @phone = phone
2884
+ end
2885
+ end
2886
+ # The delivery method for the payment
2887
+ attr_accessor :mode
2888
+ # Details of the recipient.
2889
+ attr_accessor :recipient
2890
+
2891
+ def initialize(mode: nil, recipient: nil)
2892
+ @mode = mode
2893
+ @recipient = recipient
2894
+ end
2895
+ end
2896
+
2897
+ class Passenger < Stripe::RequestParams
2898
+ # Full name of the person or entity on the lodging reservation.
2899
+ attr_accessor :name
2900
+
2901
+ def initialize(name: nil)
2902
+ @name = name
2903
+ end
2904
+ end
2905
+ # The lodging location's address.
2906
+ attr_accessor :address
2907
+ # The number of adults on the booking
2908
+ attr_accessor :adults
2909
+ # Affiliate details for this purchase.
2910
+ attr_accessor :affiliate
2911
+ # The booking number associated with the lodging reservation.
2912
+ attr_accessor :booking_number
2913
+ # The lodging category
2914
+ attr_accessor :category
2915
+ # Lodging check-in time. Measured in seconds since the Unix epoch.
2916
+ attr_accessor :checkin_at
2917
+ # Lodging check-out time. Measured in seconds since the Unix epoch.
2918
+ attr_accessor :checkout_at
2919
+ # The customer service phone number of the lodging company.
2920
+ attr_accessor :customer_service_phone_number
2921
+ # The daily lodging room rate.
2922
+ attr_accessor :daily_room_rate_amount
2923
+ # Delivery details for this purchase.
2924
+ attr_accessor :delivery
2925
+ # List of additional charges being billed.
2926
+ attr_accessor :extra_charges
2927
+ # Indicates whether the lodging location is compliant with the Fire Safety Act.
2928
+ attr_accessor :fire_safety_act_compliance
2929
+ # The name of the lodging location.
2930
+ attr_accessor :name
2931
+ # Indicates if the customer did not keep their booking while failing to cancel the reservation.
2932
+ attr_accessor :no_show
2933
+ # The number of rooms on the booking
2934
+ attr_accessor :number_of_rooms
2935
+ # The details of the passengers in the travel reservation
2936
+ attr_accessor :passengers
2937
+ # The phone number of the lodging location.
2938
+ attr_accessor :property_phone_number
2939
+ # The room class for this purchase.
2940
+ attr_accessor :room_class
2941
+ # The number of room nights
2942
+ attr_accessor :room_nights
2943
+ # The total tax amount associating with the room reservation.
2944
+ attr_accessor :total_room_tax_amount
2945
+ # The total tax amount
2946
+ attr_accessor :total_tax_amount
2947
+
2948
+ def initialize(
2949
+ address: nil,
2950
+ adults: nil,
2951
+ affiliate: nil,
2952
+ booking_number: nil,
2953
+ category: nil,
2954
+ checkin_at: nil,
2955
+ checkout_at: nil,
2956
+ customer_service_phone_number: nil,
2957
+ daily_room_rate_amount: nil,
2958
+ delivery: nil,
2959
+ extra_charges: nil,
2960
+ fire_safety_act_compliance: nil,
2961
+ name: nil,
2962
+ no_show: nil,
2963
+ number_of_rooms: nil,
2964
+ passengers: nil,
2965
+ property_phone_number: nil,
2966
+ room_class: nil,
2967
+ room_nights: nil,
2968
+ total_room_tax_amount: nil,
2969
+ total_tax_amount: nil
2970
+ )
2971
+ @address = address
2972
+ @adults = adults
2973
+ @affiliate = affiliate
2974
+ @booking_number = booking_number
2975
+ @category = category
2976
+ @checkin_at = checkin_at
2977
+ @checkout_at = checkout_at
2978
+ @customer_service_phone_number = customer_service_phone_number
2979
+ @daily_room_rate_amount = daily_room_rate_amount
2980
+ @delivery = delivery
2981
+ @extra_charges = extra_charges
2982
+ @fire_safety_act_compliance = fire_safety_act_compliance
2983
+ @name = name
2984
+ @no_show = no_show
2985
+ @number_of_rooms = number_of_rooms
2986
+ @passengers = passengers
2987
+ @property_phone_number = property_phone_number
2988
+ @room_class = room_class
2989
+ @room_nights = room_nights
2990
+ @total_room_tax_amount = total_room_tax_amount
2991
+ @total_tax_amount = total_tax_amount
2992
+ end
2993
+ end
2994
+
2995
+ class Subscription < Stripe::RequestParams
2996
+ class Affiliate < Stripe::RequestParams
2997
+ # The name of the affiliate that originated the purchase.
2998
+ attr_accessor :name
2999
+
3000
+ def initialize(name: nil)
3001
+ @name = name
3002
+ end
3003
+ end
3004
+
3005
+ class BillingInterval < Stripe::RequestParams
3006
+ # The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
3007
+ attr_accessor :count
3008
+ # Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
3009
+ attr_accessor :interval
3010
+
3011
+ def initialize(count: nil, interval: nil)
3012
+ @count = count
3013
+ @interval = interval
3014
+ end
3015
+ end
3016
+ # Affiliate details for this purchase.
3017
+ attr_accessor :affiliate
3018
+ # Info whether the subscription will be auto renewed upon expiry.
3019
+ attr_accessor :auto_renewal
3020
+ # Subscription billing details for this purchase.
3021
+ attr_accessor :billing_interval
3022
+ # Subscription end time. Measured in seconds since the Unix epoch.
3023
+ attr_accessor :ends_at
3024
+ # Name of the product on subscription. e.g. Apple Music Subscription
3025
+ attr_accessor :name
3026
+ # Subscription start time. Measured in seconds since the Unix epoch.
3027
+ attr_accessor :starts_at
3028
+
3029
+ def initialize(
3030
+ affiliate: nil,
3031
+ auto_renewal: nil,
3032
+ billing_interval: nil,
3033
+ ends_at: nil,
3034
+ name: nil,
3035
+ starts_at: nil
3036
+ )
3037
+ @affiliate = affiliate
3038
+ @auto_renewal = auto_renewal
3039
+ @billing_interval = billing_interval
3040
+ @ends_at = ends_at
3041
+ @name = name
3042
+ @starts_at = starts_at
3043
+ end
3044
+ end
3045
+ # Car rental details for this PaymentIntent.
3046
+ attr_accessor :car_rental
3047
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
3048
+ attr_accessor :customer_reference
3049
+ # Event details for this PaymentIntent
3050
+ attr_accessor :event_details
3051
+ # Flight reservation details for this PaymentIntent
3052
+ attr_accessor :flight
3053
+ # Lodging reservation details for this PaymentIntent
3054
+ attr_accessor :lodging
3055
+ # A unique value assigned by the business to identify the transaction.
3056
+ attr_accessor :order_reference
3057
+ # Subscription details for this PaymentIntent
3058
+ attr_accessor :subscription
3059
+
3060
+ def initialize(
3061
+ car_rental: nil,
3062
+ customer_reference: nil,
3063
+ event_details: nil,
3064
+ flight: nil,
3065
+ lodging: nil,
3066
+ order_reference: nil,
3067
+ subscription: nil
3068
+ )
3069
+ @car_rental = car_rental
3070
+ @customer_reference = customer_reference
3071
+ @event_details = event_details
3072
+ @flight = flight
3073
+ @lodging = lodging
3074
+ @order_reference = order_reference
3075
+ @subscription = subscription
3076
+ end
3077
+ end
3078
+
1543
3079
  class TransferData < Stripe::RequestParams
1544
3080
  # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
1545
3081
  attr_accessor :amount
@@ -1556,6 +3092,8 @@ module Stripe
1556
3092
  attr_accessor :application_fee_amount
1557
3093
  # Specifies which fields in the response should be expanded.
1558
3094
  attr_accessor :expand
3095
+ # Provides industry-specific information about the charge.
3096
+ attr_accessor :payment_details
1559
3097
  # 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.
1560
3098
  attr_accessor :receipt_email
1561
3099
  # 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).
@@ -1574,6 +3112,7 @@ module Stripe
1574
3112
  application_fee: nil,
1575
3113
  application_fee_amount: nil,
1576
3114
  expand: nil,
3115
+ payment_details: nil,
1577
3116
  receipt_email: nil,
1578
3117
  statement_descriptor: nil,
1579
3118
  statement_descriptor_suffix: nil,
@@ -1584,6 +3123,7 @@ module Stripe
1584
3123
  @application_fee = application_fee
1585
3124
  @application_fee_amount = application_fee_amount
1586
3125
  @expand = expand
3126
+ @payment_details = payment_details
1587
3127
  @receipt_email = receipt_email
1588
3128
  @statement_descriptor = statement_descriptor
1589
3129
  @statement_descriptor_suffix = statement_descriptor_suffix