stripe 15.5.0.pre.beta.2 → 15.6.0.pre.alpha.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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +117 -1
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +6 -4
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_requestor.rb +20 -18
  8. data/lib/stripe/api_version.rb +1 -1
  9. data/lib/stripe/errors.rb +26 -23
  10. data/lib/stripe/event_types.rb +83 -0
  11. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
  12. data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
  13. data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
  14. data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
  15. data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
  16. data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
  17. data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
  18. data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
  19. data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
  20. data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
  21. data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
  22. data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
  23. data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
  24. data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
  26. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
  27. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
  28. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
  29. data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
  30. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
  31. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
  32. data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
  33. data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
  34. data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
  35. data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
  36. data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
  37. data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
  38. data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
  39. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
  40. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
  41. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
  42. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
  43. data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
  44. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
  45. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
  46. data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
  47. data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
  48. data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
  49. data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
  50. data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
  51. data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
  52. data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
  53. data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
  54. data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
  55. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
  56. data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
  57. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
  58. data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
  59. data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
  60. data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
  61. data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
  62. data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
  63. data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
  64. data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
  65. data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
  66. data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
  67. data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
  68. data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
  69. data/lib/stripe/object_types.rb +27 -0
  70. data/lib/stripe/resources/account.rb +2 -2
  71. data/lib/stripe/resources/account_session.rb +94 -13
  72. data/lib/stripe/resources/balance.rb +2 -7
  73. data/lib/stripe/resources/balance_settings.rb +72 -65
  74. data/lib/stripe/resources/billing/alert.rb +128 -1
  75. data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
  76. data/lib/stripe/resources/billing/credit_balance_summary.rb +50 -0
  77. data/lib/stripe/resources/billing/credit_balance_transaction.rb +50 -0
  78. data/lib/stripe/resources/billing/credit_grant.rb +61 -2
  79. data/lib/stripe/resources/billing/meter.rb +2 -2
  80. data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
  81. data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
  82. data/lib/stripe/resources/charge.rb +36 -5
  83. data/lib/stripe/resources/checkout/session.rb +237 -6
  84. data/lib/stripe/resources/credit_note.rb +3 -3
  85. data/lib/stripe/resources/dispute.rb +1 -1
  86. data/lib/stripe/resources/file.rb +1 -1
  87. data/lib/stripe/resources/file_link.rb +1 -1
  88. data/lib/stripe/resources/invoice.rb +55 -1
  89. data/lib/stripe/resources/invoice_item.rb +48 -0
  90. data/lib/stripe/resources/invoice_line_item.rb +52 -0
  91. data/lib/stripe/resources/invoice_payment.rb +1 -1
  92. data/lib/stripe/resources/mandate.rb +65 -1
  93. data/lib/stripe/resources/payment_attempt_record.rb +86 -10
  94. data/lib/stripe/resources/payment_intent.rb +182 -4
  95. data/lib/stripe/resources/payment_link.rb +1 -1
  96. data/lib/stripe/resources/payment_method.rb +2 -0
  97. data/lib/stripe/resources/payment_record.rb +107 -14
  98. data/lib/stripe/resources/promotion_code.rb +5 -2
  99. data/lib/stripe/resources/quote_preview_invoice.rb +8 -1
  100. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
  101. data/lib/stripe/resources/setup_attempt.rb +4 -1
  102. data/lib/stripe/resources/setup_intent.rb +194 -1
  103. data/lib/stripe/resources/subscription.rb +145 -9
  104. data/lib/stripe/resources/subscription_schedule.rb +124 -2
  105. data/lib/stripe/resources/terminal/configuration.rb +82 -0
  106. data/lib/stripe/resources/terminal/reader.rb +22 -0
  107. data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
  108. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
  109. data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
  110. data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
  111. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
  112. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
  113. data/lib/stripe/resources/v2/billing/intent.rb +59 -0
  114. data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
  115. data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
  116. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
  117. data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
  118. data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
  119. data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
  120. data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
  121. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
  122. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
  123. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
  124. data/lib/stripe/resources/v2/billing/profile.rb +38 -0
  125. data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
  126. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
  127. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
  128. data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
  129. data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
  130. data/lib/stripe/resources/v2/core/account.rb +8 -0
  131. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
  132. data/lib/stripe/resources/v2/event.rb +2 -0
  133. data/lib/stripe/resources/v2/money_management/financial_account.rb +4 -2
  134. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
  135. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  136. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  137. data/lib/stripe/resources/v2/reporting/report.rb +64 -0
  138. data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
  139. data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -0
  140. data/lib/stripe/resources.rb +85 -0
  141. data/lib/stripe/services/account_session_service.rb +64 -13
  142. data/lib/stripe/services/balance_settings_service.rb +44 -41
  143. data/lib/stripe/services/billing/alert_service.rb +75 -1
  144. data/lib/stripe/services/billing/credit_balance_summary_service.rb +13 -1
  145. data/lib/stripe/services/billing/credit_grant_service.rb +29 -2
  146. data/lib/stripe/services/billing/meter_service.rb +1 -1
  147. data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
  148. data/lib/stripe/services/checkout/session_service.rb +166 -5
  149. data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
  150. data/lib/stripe/services/credit_note_service.rb +2 -2
  151. data/lib/stripe/services/customer_service.rb +4 -4
  152. data/lib/stripe/services/file_link_service.rb +1 -1
  153. data/lib/stripe/services/file_service.rb +1 -1
  154. data/lib/stripe/services/invoice_payment_service.rb +1 -1
  155. data/lib/stripe/services/invoice_service.rb +47 -0
  156. data/lib/stripe/services/mandate_service.rb +40 -0
  157. data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
  158. data/lib/stripe/services/payment_intent_service.rb +157 -3
  159. data/lib/stripe/services/payment_link_service.rb +1 -1
  160. data/lib/stripe/services/payment_record_service.rb +25 -5
  161. data/lib/stripe/services/quote_service.rb +4 -4
  162. data/lib/stripe/services/setup_intent_service.rb +153 -0
  163. data/lib/stripe/services/subscription_schedule_service.rb +100 -2
  164. data/lib/stripe/services/subscription_service.rb +134 -9
  165. data/lib/stripe/services/terminal/configuration_service.rb +64 -0
  166. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
  167. data/lib/stripe/services/v1_services.rb +5 -5
  168. data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
  169. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
  170. data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
  171. data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
  172. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
  173. data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
  174. data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
  175. data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
  176. data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
  177. data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
  178. data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
  179. data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
  180. data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
  181. data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
  182. data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
  183. data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
  184. data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
  185. data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
  186. data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
  187. data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
  188. data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
  189. data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
  190. data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
  191. data/lib/stripe/services/v2/billing_service.rb +19 -2
  192. data/lib/stripe/services/v2/core/account_service.rb +16 -2
  193. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
  194. data/lib/stripe/services/v2/core_service.rb +4 -3
  195. data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
  196. data/lib/stripe/services/v2/money_management_service.rb +3 -3
  197. data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
  198. data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
  199. data/lib/stripe/services/v2/reporting_service.rb +16 -0
  200. data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
  201. data/lib/stripe/services/v2/tax_service.rb +15 -0
  202. data/lib/stripe/services/v2_services.rb +3 -1
  203. data/lib/stripe/services.rb +29 -0
  204. data/lib/stripe/stripe_service.rb +3 -1
  205. data/lib/stripe/version.rb +1 -1
  206. metadata +116 -3
  207. data/rbi/stripe.rbi +0 -199145
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a152f385752eefb0d7a94429161a6641eb295905f3c40a93cd99ac3f88cb78ed
4
- data.tar.gz: da140b779d516fa432d03948af45a6d2d0c7300f357d3716c5571a96c43bf241
3
+ metadata.gz: 6142e211344d76ddc07ddfaedcf80dd664f1fbb0a04c819ad1927357840b2497
4
+ data.tar.gz: c697beace10154c9bb638ef9be39bba4d330a6134122eab433511081c8ac9a48
5
5
  SHA512:
6
- metadata.gz: 6354ef47fbdf0229a18203e45d003003b9e2c18d4a557a8de5c9dc1593c3e8fab8b15b6d4305ff3e99ad81b7f969e1c10d49225e4cbabeb60dca0f6cb9c35850
7
- data.tar.gz: 36c751d6de8f2d8b8ca8b2db6608e62dec9d309cdb5584f747f6fdb1603e1efd91368b0090db06ada0cc1936b20ac50b59eccdb2f93b0bb0992c1a6677dbe725
6
+ metadata.gz: 8917f37f279a7d0ed18afaa57e52b94ee7e3d3eef65bf155f0a22979331860a13538c10d39ccc71b5a88c04ad3cbebfaeba73553dd9a0a159f1d72cbbbd08cce
7
+ data.tar.gz: bdb2698ff57f264afe410407a775c3072c501d747ef20bcdccab56edb08c792bbe921eb367df486749d869c6682a5a5b7a8da83f7c210a201b51029596b0652e
data/API_VERSION CHANGED
@@ -1 +1 @@
1
- 2025-07-30.preview
1
+ 2025-08-27.basil
data/CHANGELOG.md CHANGED
@@ -1,5 +1,101 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.6.0-alpha.1 - 2025-08-27
4
+ * [#1640](https://github.com/stripe/stripe-ruby/pull/1640) Use the right API version 2025-08-27.preview
5
+ * [#1636](https://github.com/stripe/stripe-ruby/pull/1636) Update generated code for private-preview
6
+ * Add support for `attach_cadence` method on resource `Subscription`
7
+ * Add support for `currency` and `external_customer_id` on `Billing::AlertTriggered`
8
+ * Add support for `custom_pricing_unit` on `Billing::AlertTriggered`, `Billing::CreditBalanceSummary::Balance::AvailableBalance`, `Billing::CreditBalanceSummary::Balance::LedgerBalance`, `Billing::CreditBalanceTransaction::Credit::Amount`, `Billing::CreditBalanceTransaction::Debit::Amount`, `Billing::CreditGrant::Amount`, and `Billing::CreditGrant::CreateParams::Amount`
9
+ * Add support for `customer` on `Billing::Alert::ListParams`
10
+ * Change type of `Billing::Alert.alert_type`, `Billing::Alert::CreateParams.alert_type`, and `Billing::Alert::ListParams.alert_type` from `literal('usage_threshold')` to `enum('credit_balance_threshold'|'usage_threshold')`
11
+ * Add support for `credit_balance_threshold` on `Billing::Alert::CreateParams` and `Billing::Alert`
12
+ * Add support for `billable_items` on `Billing::CreditBalanceSummary::RetrieveParams::Filter::ApplicabilityScope`, `Billing::CreditGrant::ApplicabilityConfig::Scope`, and `Billing::CreditGrant::CreateParams::ApplicabilityConfig::Scope`
13
+ * Change type of `Billing::CreditBalanceSummary::Balance::AvailableBalance.type`, `Billing::CreditBalanceSummary::Balance::LedgerBalance.type`, `Billing::CreditBalanceTransaction::Credit::Amount.type`, `Billing::CreditBalanceTransaction::Debit::Amount.type`, `Billing::CreditGrant::Amount.type`, and `Billing::CreditGrant::CreateParams::Amount.type` from `literal('monetary')` to `enum('custom_pricing_unit'|'monetary')`
14
+ * Add support for `license_fee_subscription_details` and `rate_card_subscription_details` on `InvoiceItem::Parent` and `InvoiceLineItem::Parent`
15
+ * Change type of `InvoiceItem::Parent.type` from `literal('subscription_details')` to `enum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')`
16
+ * Add support for `license_fee_details` and `rate_card_rate_details` on `InvoiceItem::Pricing` and `InvoiceLineItem::Pricing`
17
+ * Change type of `InvoiceItem::Pricing.type` and `InvoiceLineItem::Pricing.type` from `literal('price_details')` to `enum('license_fee_details'|'price_details'|'rate_card_rate_details')`
18
+ * Add support for `billing_cadence` on `Invoice::CreatePreviewParams`, `Subscription::CreateParams`, and `Subscription`
19
+ * Add support for `billing_cadence_details` on `Invoice::Parent` and `QuotePreviewInvoice::Parent`
20
+ * Add support for new resources `V2::Billing::BillSettingVersion`, `V2::Billing::BillSetting`, `V2::Billing::Cadence`, `V2::Billing::CollectionSettingVersion`, `V2::Billing::CollectionSetting`, `V2::Billing::CustomPricingUnit`, `V2::Billing::IntentAction`, `V2::Billing::Intent`, `V2::Billing::LicenseFeeSubscription`, `V2::Billing::LicenseFeeVersion`, `V2::Billing::LicenseFee`, `V2::Billing::LicensedItem`, `V2::Billing::MeteredItem`, `V2::Billing::PricingPlanComponent`, `V2::Billing::PricingPlanSubscription`, `V2::Billing::PricingPlanVersion`, `V2::Billing::PricingPlan`, `V2::Billing::Profile`, `V2::Billing::RateCardRate`, `V2::Billing::RateCardSubscription`, `V2::Billing::RateCardVersion`, `V2::Billing::RateCard`, `V2::Billing::ServiceAction`, `V2::Core::ClaimableSandbox`, `V2::Reporting::ReportRun`, `V2::Reporting::Report`, and `V2::Tax::AutomaticRule`
21
+ * Add support for `create`, `deactivate`, `find`, `retrieve`, and `update` methods on resource `V2::Tax::AutomaticRule`
22
+ * Add support for `create` and `retrieve` methods on resources `V2::Billing::ServiceAction` and `V2::Reporting::ReportRun`
23
+ * Add support for `retrieve` method on resources `V2::Billing::LicenseFeeSubscription` and `V2::Reporting::Report`
24
+ * Add support for `create` method on resource `V2::Core::ClaimableSandbox`
25
+ * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resources `V2::Billing::Cadence` and `V2::Billing::RateCardSubscription`
26
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resources `V2::Billing::BillSetting`, `V2::Billing::CollectionSetting`, `V2::Billing::CustomPricingUnit`, `V2::Billing::LicenseFee`, `V2::Billing::LicensedItem`, `V2::Billing::MeteredItem`, `V2::Billing::PricingPlan`, `V2::Billing::Profile`, and `V2::Billing::RateCard`
27
+ * Add support for `list` and `retrieve` methods on resources `V2::Billing::BillSettingVersion`, `V2::Billing::CollectionSettingVersion`, `V2::Billing::IntentAction`, `V2::Billing::LicenseFeeVersion`, `V2::Billing::PricingPlanSubscription`, `V2::Billing::PricingPlanVersion`, and `V2::Billing::RateCardVersion`
28
+ * Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `V2::Billing::RateCardRate`
29
+ * Add support for `create`, `delete`, `list`, `retrieve`, and `update` methods on resource `V2::Billing::PricingPlanComponent`
30
+ * Add support for `cancel`, `commit`, `create`, `list`, `release_reservation`, `reserve`, and `retrieve` methods on resource `V2::Billing::Intent`
31
+ * Add support for `changes` on `V2::Event`
32
+ * Add support for thin events `V2BillingCadenceBilledEvent`, `V2BillingCadenceCanceledEvent`, `V2BillingCadenceCreatedEvent`, and `V2BillingCadenceErroredEvent` with related object `V2::Billing::Cadence`
33
+ * Add support for thin events `V2BillingLicenseFeeCreatedEvent` and `V2BillingLicenseFeeUpdatedEvent` with related object `V2::Billing::LicenseFee`
34
+ * Add support for thin event `V2BillingLicenseFeeVersionCreatedEvent` with related object `V2::Billing::LicenseFeeVersion`
35
+ * Add support for thin events `V2BillingLicensedItemCreatedEvent` and `V2BillingLicensedItemUpdatedEvent` with related object `V2::Billing::LicensedItem`
36
+ * Add support for thin events `V2BillingMeteredItemCreatedEvent` and `V2BillingMeteredItemUpdatedEvent` with related object `V2::Billing::MeteredItem`
37
+ * Add support for thin events `V2BillingPricingPlanCreatedEvent` and `V2BillingPricingPlanUpdatedEvent` with related object `V2::Billing::PricingPlan`
38
+ * Add support for thin events `V2BillingPricingPlanComponentCreatedEvent` and `V2BillingPricingPlanComponentUpdatedEvent` with related object `V2::Billing::PricingPlanComponent`
39
+ * Add support for thin events `V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingPricingPlanSubscriptionCollectionCurrentEvent`, `V2BillingPricingPlanSubscriptionCollectionPastDueEvent`, `V2BillingPricingPlanSubscriptionCollectionPausedEvent`, `V2BillingPricingPlanSubscriptionCollectionUnpaidEvent`, `V2BillingPricingPlanSubscriptionServicingActivatedEvent`, `V2BillingPricingPlanSubscriptionServicingCanceledEvent`, and `V2BillingPricingPlanSubscriptionServicingPausedEvent` with related object `V2::Billing::PricingPlanSubscription`
40
+ * Add support for thin event `V2BillingPricingPlanVersionCreatedEvent` with related object `V2::Billing::PricingPlanVersion`
41
+ * Add support for thin events `V2BillingRateCardCreatedEvent` and `V2BillingRateCardUpdatedEvent` with related object `V2::Billing::RateCard`
42
+ * Add support for thin event `V2BillingRateCardRateCreatedEvent` with related object `V2::Billing::RateCardRate`
43
+ * Add support for thin events `V2BillingRateCardSubscriptionActivatedEvent`, `V2BillingRateCardSubscriptionCanceledEvent`, `V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingRateCardSubscriptionCollectionCurrentEvent`, `V2BillingRateCardSubscriptionCollectionPastDueEvent`, `V2BillingRateCardSubscriptionCollectionPausedEvent`, `V2BillingRateCardSubscriptionCollectionUnpaidEvent`, `V2BillingRateCardSubscriptionServicingActivatedEvent`, `V2BillingRateCardSubscriptionServicingCanceledEvent`, and `V2BillingRateCardSubscriptionServicingPausedEvent` with related object `V2::Billing::RateCardSubscription`
44
+ * Add support for thin event `V2BillingRateCardVersionCreatedEvent` with related object `V2::Billing::RateCardVersion`
45
+ * Add support for thin events `V2CoreHealthApiErrorFiringEvent`, `V2CoreHealthApiErrorResolvedEvent`, `V2CoreHealthApiLatencyFiringEvent`, `V2CoreHealthApiLatencyResolvedEvent`, `V2CoreHealthAuthorizationRateDropFiringEvent`, `V2CoreHealthAuthorizationRateDropResolvedEvent`, `V2CoreHealthEventGenerationFailureResolvedEvent`, `V2CoreHealthFraudRateIncreasedEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `V2CoreHealthPaymentMethodErrorFiringEvent`, `V2CoreHealthPaymentMethodErrorResolvedEvent`, `V2CoreHealthTrafficVolumeDropFiringEvent`, `V2CoreHealthTrafficVolumeDropResolvedEvent`, `V2CoreHealthWebhookLatencyFiringEvent`, and `V2CoreHealthWebhookLatencyResolvedEvent`
46
+ * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `V2::Reporting::ReportRun`
47
+ * Add support for error type `RateLimitError`
48
+
49
+ ## 15.6.0-beta.1 - 2025-08-27
50
+ This release changes the pinned API version to `2025-08-27.preview`.
51
+
52
+ * [#1629](https://github.com/stripe/stripe-ruby/pull/1629) Update generated code for beta
53
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
54
+ * Add support for `list` method on resource `Mandate`
55
+ * Add support for `applied` on `V2::Core::Account::Configuration::Customer`, `V2::Core::Account::Configuration::Merchant`, `V2::Core::Account::Configuration::Recipient`, `V2::Core::Account::Configuration::Storer`, `V2::Core::Account::UpdateParams::Configuration::Customer`, `V2::Core::Account::UpdateParams::Configuration::Merchant`, `V2::Core::Account::UpdateParams::Configuration::Recipient`, and `V2::Core::Account::UpdateParams::Configuration::Storer`
56
+ * Change type of `Billing::AlertTriggered.value` from `longInteger` to `decimal_string`
57
+ * Add support for `display_name` on `V2::MoneyManagement::FinancialAccount::CreateParams` and `V2::MoneyManagement::FinancialAccount`
58
+ * Add support for `currency_conversion` on `V2::MoneyManagement::Transaction::Flow` and `V2::MoneyManagement::TransactionEntry::TransactionDetail::Flow`
59
+ * Add support for `payments` on `BalanceSettings::UpdateParams` and `BalanceSettings`
60
+ * Remove support for `debit_negative_balances`, `payouts`, and `settlement_timing` on `BalanceSettings::UpdateParams` and `BalanceSettings`
61
+ * Add support for `mandate` on `Charge::PaymentMethodDetail::Pix`, `PaymentAttemptRecord::PaymentMethodDetail::Pix`, and `PaymentRecord::PaymentMethodDetail::Pix`
62
+ * Add support for `coupon_data` on `Checkout::Session::CreateParams::Discount`
63
+ * Add support for `mandate_options` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix`, `Checkout::Session::PaymentMethodOption::Pix`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Pix`, `PaymentIntent::CreateParams::PaymentMethodOption::Pix`, `PaymentIntent::PaymentMethodOption::Pix`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Pix`
64
+ * Change type of `Checkout::Session::CreateParams::PaymentMethodOption::Pix.setup_future_usage`, `Checkout::Session::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::CreateParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::PaymentMethodOption::Pix.setup_future_usage`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
65
+ * Add support for `amount` on `Mandate::MultiUse`, `PaymentAttemptRecord`, and `PaymentRecord`
66
+ * Add support for `currency` on `Mandate::MultiUse`
67
+ * Add support for `pix` on `Mandate::PaymentMethodDetail`, `SetupAttempt::PaymentMethodDetail`, `SetupIntent::ConfirmParams::PaymentMethodOption`, `SetupIntent::CreateParams::PaymentMethodOption`, `SetupIntent::PaymentMethodOption`, and `SetupIntent::UpdateParams::PaymentMethodOption`
68
+ * Add support for `limit` on `PaymentAttemptRecord::ListParams`
69
+ * Add support for `amount_authorized`, `amount_refunded`, and `application` on `PaymentAttemptRecord` and `PaymentRecord`
70
+ * Add support for `processor_details` on `PaymentAttemptRecord`, `PaymentRecord::ReportPaymentParams`, and `PaymentRecord`
71
+ * Remove support for `payment_reference` on `PaymentAttemptRecord`, `PaymentRecord::ReportPaymentParams`, and `PaymentRecord`
72
+ * Add support for `installments` on `PaymentAttemptRecord::PaymentMethodDetail::Alma` and `PaymentRecord::PaymentMethodDetail::Alma`
73
+ * Add support for `transaction_id` on `PaymentAttemptRecord::PaymentMethodDetail::Alma`, `PaymentAttemptRecord::PaymentMethodDetail::AmazonPay`, `PaymentAttemptRecord::PaymentMethodDetail::Billie`, `PaymentAttemptRecord::PaymentMethodDetail::KakaoPay`, `PaymentAttemptRecord::PaymentMethodDetail::KrCard`, `PaymentAttemptRecord::PaymentMethodDetail::NaverPay`, `PaymentAttemptRecord::PaymentMethodDetail::Payco`, `PaymentAttemptRecord::PaymentMethodDetail::RevolutPay`, `PaymentAttemptRecord::PaymentMethodDetail::SamsungPay`, `PaymentAttemptRecord::PaymentMethodDetail::Satispay`, `PaymentRecord::PaymentMethodDetail::Alma`, `PaymentRecord::PaymentMethodDetail::AmazonPay`, `PaymentRecord::PaymentMethodDetail::Billie`, `PaymentRecord::PaymentMethodDetail::KakaoPay`, `PaymentRecord::PaymentMethodDetail::KrCard`, `PaymentRecord::PaymentMethodDetail::NaverPay`, `PaymentRecord::PaymentMethodDetail::Payco`, `PaymentRecord::PaymentMethodDetail::RevolutPay`, `PaymentRecord::PaymentMethodDetail::SamsungPay`, and `PaymentRecord::PaymentMethodDetail::Satispay`
74
+ * Add support for `location` and `reader` on `PaymentAttemptRecord::PaymentMethodDetail::Paynow` and `PaymentRecord::PaymentMethodDetail::Paynow`
75
+ * Add support for `latest_active_mandate` on `PaymentMethod`
76
+ * Change `Payout.payout_method` to be required
77
+ * Add support for `metadata` and `period` on `QuotePreviewSubscriptionSchedule::Phase::AddInvoiceItem`
78
+ * Add support for `pix_display_qr_code` on `SetupIntent::NextAction`
79
+ * Add support for `reader_security` on `Terminal::Configuration::CreateParams`, `Terminal::Configuration::UpdateParams`, and `Terminal::Configuration`
80
+
81
+ ## 15.5.0 - 2025-08-27
82
+ * [#1638](https://github.com/stripe/stripe-ruby/pull/1638) Add section on private preview SDKs in readme
83
+ * [#1631](https://github.com/stripe/stripe-ruby/pull/1631) Update generated code. This release changes the pinned API version to `2025-08-27.basil`.
84
+ * Add support for `balance_report`, `payout_details`, and `payout_reconciliation_report` on `AccountSession::Component` and `AccountSession::CreateParams::Component`
85
+ * Add support for `name` on `BillingPortal::Configuration::CreateParams`, `BillingPortal::Configuration::UpdateParams`, and `BillingPortal::Configuration`
86
+ * Add support for `installments` on `Charge::PaymentMethodDetail::Alma`
87
+ * Add support for `transaction_id` on `Charge::PaymentMethodDetail::Alma`, `Charge::PaymentMethodDetail::AmazonPay`, `Charge::PaymentMethodDetail::Billie`, `Charge::PaymentMethodDetail::KakaoPay`, `Charge::PaymentMethodDetail::KrCard`, `Charge::PaymentMethodDetail::NaverPay`, `Charge::PaymentMethodDetail::Payco`, `Charge::PaymentMethodDetail::RevolutPay`, `Charge::PaymentMethodDetail::SamsungPay`, and `Charge::PaymentMethodDetail::Satispay`
88
+ * Add support for `location` and `reader` on `Charge::PaymentMethodDetail::Paynow`
89
+ * Add support for `amount_includes_iof` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix`, `Checkout::Session::PaymentMethodOption::Pix`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Pix`, `PaymentIntent::CreateParams::PaymentMethodOption::Pix`, `PaymentIntent::PaymentMethodOption::Pix`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Pix`
90
+ * Add support for `metadata` and `period` on `Invoice::CreatePreviewParams::ScheduleDetail::Phase::AddInvoiceItem`, `Subscription::CreateParams::AddInvoiceItem`, `Subscription::UpdateParams::AddInvoiceItem`, `SubscriptionSchedule::CreateParams::Phase::AddInvoiceItem`, `SubscriptionSchedule::Phase::AddInvoiceItem`, and `SubscriptionSchedule::UpdateParams::Phase::AddInvoiceItem`
91
+ * Add support for `exp_month` and `exp_year` on `Issuing::Card::CreateParams`
92
+ * Add support for `excluded_payment_method_types` on `PaymentIntent::CreateParams` and `PaymentIntent`
93
+ * Add support for `payout_method` on `Payout::CreateParams` and `Payout`
94
+ * Add support for `mxn` on `Terminal::Configuration::CreateParams::Tipping`, `Terminal::Configuration::Tipping`, and `Terminal::Configuration::UpdateParams::Tipping`
95
+ * Add support for `card` on `Terminal::Reader::PresentPaymentMethodParams`
96
+ * [#1637](https://github.com/stripe/stripe-ruby/pull/1637) Add `stripe_client` usage tracking for StripeClient
97
+ * [#1633](https://github.com/stripe/stripe-ruby/pull/1633) Remove double `T.nilable` before every emptyable field in update methods
98
+
3
99
  ## 15.5.0-beta.2 - 2025-08-08
4
100
  * [#1632](https://github.com/stripe/stripe-ruby/pull/1632) Bring back invoice payments APIs that were missing in the public preview SDKs
5
101
  * Add support for new resource `InvoicePayment`
@@ -32,6 +128,25 @@ This release changes the pinned API version to `2025-07-30.preview`.
32
128
  * Remove support for thin event `V2CoreAccountLinkCompletedEvent`
33
129
  * Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `V2::Payments::OffSessionPayment`
34
130
 
131
+ ## 15.4.0 - 2025-07-30
132
+ This release changes the pinned API version to `2025-07-30.basil`.
133
+
134
+ * [#1627](https://github.com/stripe/stripe-ruby/pull/1627) Update generated code
135
+ * Add support for `instant_payouts_promotion` on `AccountSession::Component` and `AccountSession::CreateParams::Component`
136
+ * Add support for `adjustable_quantity` on `BillingPortal::Configuration::CreateParams::Feature::SubscriptionUpdate::Product`, `BillingPortal::Configuration::Feature::SubscriptionUpdate::Product`, and `BillingPortal::Configuration::UpdateParams::Feature::SubscriptionUpdate::Product`
137
+ * Add support for `transaction_id` on `Charge::PaymentMethodDetail::Cashapp`
138
+ * Add support for `origin_context` on `Checkout::Session::CreateParams` and `Checkout::Session`
139
+ * Add support for `template` on `Checkout::Session::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `Checkout::Session::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::InvoiceCreation::InvoiceDatum::RenderingOption`, and `PaymentLink::UpdateParams::InvoiceCreation::InvoiceDatum::RenderingOption`
140
+ * Add support for `setup_future_usage` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix` and `Checkout::Session::PaymentMethodOption::Pix`
141
+ * Change `Identity::VerificationSession::RelatedPerson.account` to be required
142
+ * Change `Identity::VerificationSession::RelatedPerson.person` to be required
143
+ * Add support for `duration` on `Invoice::CreatePreviewParams::ScheduleDetail::Phase`, `SubscriptionSchedule::CreateParams::Phase`, and `SubscriptionSchedule::UpdateParams::Phase`
144
+ * Change type of `Invoice::CreatePreviewParams::SubscriptionDetail.cancel_at`, `Subscription::CreateParams.cancel_at`, and `Subscription::UpdateParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')`
145
+ * Add support for `price_data` on `PaymentLink::CreateParams::LineItem`
146
+ * Change `PaymentLink::CreateParams::LineItem.price` to be optional
147
+ * Add support for `standard` on `Tax::Registration::CountryOption::Ae`, `Tax::Registration::CountryOption::Au`, `Tax::Registration::CountryOption::Ch`, `Tax::Registration::CountryOption::Gb`, `Tax::Registration::CountryOption::Jp`, `Tax::Registration::CountryOption::No`, `Tax::Registration::CountryOption::Nz`, `Tax::Registration::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Ae`, `Tax::Registration::CreateParams::CountryOption::Al`, `Tax::Registration::CreateParams::CountryOption::Ao`, `Tax::Registration::CreateParams::CountryOption::Au`, `Tax::Registration::CreateParams::CountryOption::Aw`, `Tax::Registration::CreateParams::CountryOption::B`, `Tax::Registration::CreateParams::CountryOption::Ba`, `Tax::Registration::CreateParams::CountryOption::Bb`, `Tax::Registration::CreateParams::CountryOption::Bd`, `Tax::Registration::CreateParams::CountryOption::Bf`, `Tax::Registration::CreateParams::CountryOption::Bh`, `Tax::Registration::CreateParams::CountryOption::Cd`, `Tax::Registration::CreateParams::CountryOption::Ch`, `Tax::Registration::CreateParams::CountryOption::Et`, `Tax::Registration::CreateParams::CountryOption::Gb`, `Tax::Registration::CreateParams::CountryOption::Gn`, `Tax::Registration::CreateParams::CountryOption::Is`, `Tax::Registration::CreateParams::CountryOption::Jp`, `Tax::Registration::CreateParams::CountryOption::Me`, `Tax::Registration::CreateParams::CountryOption::Mk`, `Tax::Registration::CreateParams::CountryOption::Mr`, `Tax::Registration::CreateParams::CountryOption::No`, `Tax::Registration::CreateParams::CountryOption::Nz`, `Tax::Registration::CreateParams::CountryOption::Om`, `Tax::Registration::CreateParams::CountryOption::R`, `Tax::Registration::CreateParams::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Sr`, `Tax::Registration::CreateParams::CountryOption::Uy`, `Tax::Registration::CreateParams::CountryOption::Za`, and `Tax::Registration::CreateParams::CountryOption::Zw`
148
+ * Add support for `aed`, `bgn`, `huf`, and `ron` on `Terminal::Configuration::CreateParams::Tipping`, `Terminal::Configuration::Tipping`, and `Terminal::Configuration::UpdateParams::Tipping`
149
+
35
150
  ## 15.4.0-beta.2 - 2025-07-09
36
151
  * [#1625](https://github.com/stripe/stripe-ruby/pull/1625) Pull in V2 FinancialAccount changes for June release
37
152
  * Add support for `close` and `create` methods on resource `V2::MoneyManagement::FinancialAccount`
@@ -66,6 +181,8 @@ This release changes the pinned API version to `2025-06-30.preview`.
66
181
  * Change `V2::Payments::OffSessionPayment::CreateParams::TransferDatum.amount` to be optional
67
182
 
68
183
  ## 15.3.0 - 2025-07-01
184
+ This release changes the pinned API version to `2025-06-30.basil`.
185
+
69
186
  * [#1618](https://github.com/stripe/stripe-ruby/pull/1618) Update generated code
70
187
  * Add support for `migrate` method on resource `Subscription`
71
188
  * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal::Reader`
@@ -89,7 +206,6 @@ This release changes the pinned API version to `2025-06-30.preview`.
89
206
  * Add support for `status` on `Treasury::FinancialAccount::ListParams`
90
207
  * [#1615](https://github.com/stripe/stripe-ruby/pull/1615) Update README to mention that APIResource.request was removed
91
208
  * [#1619](https://github.com/stripe/stripe-ruby/pull/1619) Updated StripeClient snippets in README
92
- * [#1621](https://github.com/stripe/stripe-ruby/pull/1621) Disable flaky test in jruby/truffleruby
93
209
  * [#1620](https://github.com/stripe/stripe-ruby/pull/1620) Fix `raw_request` example in README
94
210
 
95
211
  ## 15.3.0-beta.2 - 2025-06-26
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1868
1
+ f4b80890ea17e89a543a77a389f29ca9be6fe615
data/README.md CHANGED
@@ -66,7 +66,7 @@ client = Stripe::StripeClient.new("sk_test_...")
66
66
  # list customers
67
67
  customers = client.v1.customers.list()
68
68
 
69
- # retrieve single customer
69
+ # retrieve single customer
70
70
  customer = client.v1.customers.retrieve('cus_123456789')
71
71
  ```
72
72
 
@@ -322,14 +322,12 @@ you see at runtime may not match the types.
322
322
  Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `11.2.0-beta.2`.
323
323
  We would love for you to try these as we incrementally release new features and improve them based on your feedback.
324
324
 
325
- To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-ruby/releases/) and use it in the `gem install` command:
325
+ To install, pick the latest version with the `beta` suffix by reviewing the [releases page](https://github.com/stripe/stripe-ruby/releases/) and use it in the `gem install` command:
326
326
 
327
327
  ```sh
328
328
  gem install stripe -v <replace-with-the-version-of-your-choice>
329
329
  ```
330
330
 
331
- You can find the latest version to use in this command from the [releases page](https://github.com/stripe/stripe-ruby/releases/)
332
-
333
331
  > **Note**
334
332
  > There can be breaking changes between two versions of the public preview SDKs without a bump in the major version. Therefore we recommend pinning the package version to a specific version in your Gemfile. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest version of the public preview SDK.
335
333
 
@@ -341,6 +339,10 @@ Some preview features require a name and version to be set in the `Stripe-Versio
341
339
  Stripe.add_beta_version("feature_beta", "v3")
342
340
  ```
343
341
 
342
+ ### Private Preview SDKs
343
+
344
+ Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `11.2.0-alpha.2`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-ruby?tab=readme-ov-file#public-preview-sdks) above and replacing the term `beta` with `alpha`.
345
+
344
346
  ### Custom requests
345
347
 
346
348
  If you:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 15.5.0-beta.2
1
+ 15.6.0-alpha.1
@@ -850,32 +850,20 @@ module Stripe
850
850
  when "idempotency_error"
851
851
  IdempotencyError.new(error_data[:message], **opts)
852
852
  # switch cases: The beginning of the section generated from our OpenAPI spec
853
- when "temporary_session_expired"
854
- TemporarySessionExpiredError.new(error_data[:message], **opts)
855
- when "non_zero_balance"
856
- NonZeroBalanceError.new(error_data[:message], **opts)
853
+ when "already_canceled"
854
+ AlreadyCanceledError.new(error_data[:message], **opts)
857
855
  when "already_exists"
858
856
  AlreadyExistsError.new(error_data[:message], **opts)
857
+ when "blocked_by_stripe"
858
+ BlockedByStripeError.new(error_data[:message], **opts)
859
+ when "controlled_by_dashboard"
860
+ ControlledByDashboardError.new(error_data[:message], **opts)
859
861
  when "feature_not_enabled"
860
862
  FeatureNotEnabledError.new(error_data[:message], **opts)
861
863
  when "financial_account_not_open"
862
864
  FinancialAccountNotOpenError.new(error_data[:message], **opts)
863
- when "blocked_by_stripe"
864
- BlockedByStripeError.new(error_data[:message], **opts)
865
- when "already_canceled"
866
- AlreadyCanceledError.new(error_data[:message], **opts)
867
- when "not_cancelable"
868
- NotCancelableError.new(error_data[:message], **opts)
869
865
  when "insufficient_funds"
870
866
  InsufficientFundsError.new(error_data[:message], **opts)
871
- when "quota_exceeded"
872
- QuotaExceededError.new(error_data[:message], **opts)
873
- when "recipient_not_notifiable"
874
- RecipientNotNotifiableError.new(error_data[:message], **opts)
875
- when "invalid_payout_method"
876
- InvalidPayoutMethodError.new(error_data[:message], **opts)
877
- when "controlled_by_dashboard"
878
- ControlledByDashboardError.new(error_data[:message], **opts)
879
867
  when "invalid_payment_method"
880
868
 
881
869
  InvalidPaymentMethodError.new(
@@ -884,6 +872,20 @@ module Stripe
884
872
  invalid_param: error_data[:invalid_param]
885
873
  )
886
874
 
875
+ when "invalid_payout_method"
876
+ InvalidPayoutMethodError.new(error_data[:message], **opts)
877
+ when "non_zero_balance"
878
+ NonZeroBalanceError.new(error_data[:message], **opts)
879
+ when "not_cancelable"
880
+ NotCancelableError.new(error_data[:message], **opts)
881
+ when "quota_exceeded"
882
+ QuotaExceededError.new(error_data[:message], **opts)
883
+ when "rate_limit"
884
+ RateLimitError.new(error_data[:message], **opts)
885
+ when "recipient_not_notifiable"
886
+ RecipientNotNotifiableError.new(error_data[:message], **opts)
887
+ when "temporary_session_expired"
888
+ TemporarySessionExpiredError.new(error_data[:message], **opts)
887
889
  # switch cases: The end of the section generated from our OpenAPI spec
888
890
  else
889
891
  specific_api_error(resp, error_data, context)
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2025-07-30.preview"
6
+ CURRENT = "2025-08-27.preview"
7
7
  end
8
8
  end
data/lib/stripe/errors.rb CHANGED
@@ -162,43 +162,25 @@ module Stripe
162
162
  end
163
163
 
164
164
  # class definitions: The beginning of the section generated from our OpenAPI spec
165
- class TemporarySessionExpiredError < StripeError
166
- end
167
-
168
- class NonZeroBalanceError < StripeError
165
+ class AlreadyCanceledError < StripeError
169
166
  end
170
167
 
171
168
  class AlreadyExistsError < StripeError
172
169
  end
173
170
 
174
- class FeatureNotEnabledError < StripeError
175
- end
176
-
177
- class FinancialAccountNotOpenError < StripeError
178
- end
179
-
180
171
  class BlockedByStripeError < StripeError
181
172
  end
182
173
 
183
- class AlreadyCanceledError < StripeError
184
- end
185
-
186
- class NotCancelableError < StripeError
187
- end
188
-
189
- class InsufficientFundsError < StripeError
190
- end
191
-
192
- class QuotaExceededError < StripeError
174
+ class ControlledByDashboardError < StripeError
193
175
  end
194
176
 
195
- class RecipientNotNotifiableError < StripeError
177
+ class FeatureNotEnabledError < StripeError
196
178
  end
197
179
 
198
- class InvalidPayoutMethodError < StripeError
180
+ class FinancialAccountNotOpenError < StripeError
199
181
  end
200
182
 
201
- class ControlledByDashboardError < StripeError
183
+ class InsufficientFundsError < StripeError
202
184
  end
203
185
 
204
186
  class InvalidPaymentMethodError < StripeError
@@ -224,5 +206,26 @@ module Stripe
224
206
  @invalid_param = invalid_param
225
207
  end
226
208
  end
209
+
210
+ class InvalidPayoutMethodError < StripeError
211
+ end
212
+
213
+ class NonZeroBalanceError < StripeError
214
+ end
215
+
216
+ class NotCancelableError < StripeError
217
+ end
218
+
219
+ class QuotaExceededError < StripeError
220
+ end
221
+
222
+ class RateLimitError < StripeError
223
+ end
224
+
225
+ class RecipientNotNotifiableError < StripeError
226
+ end
227
+
228
+ class TemporarySessionExpiredError < StripeError
229
+ end
227
230
  # class definitions: The end of the section generated from our OpenAPI spec
228
231
  end
@@ -7,6 +7,62 @@ module Stripe
7
7
  # The beginning of the section generated from our OpenAPI spec
8
8
  V1BillingMeterErrorReportTriggeredEvent.lookup_type => V1BillingMeterErrorReportTriggeredEvent,
9
9
  V1BillingMeterNoMeterFoundEvent.lookup_type => V1BillingMeterNoMeterFoundEvent,
10
+ V2BillingCadenceBilledEvent.lookup_type => V2BillingCadenceBilledEvent,
11
+ V2BillingCadenceCanceledEvent.lookup_type => V2BillingCadenceCanceledEvent,
12
+ V2BillingCadenceCreatedEvent.lookup_type => V2BillingCadenceCreatedEvent,
13
+ V2BillingCadenceErroredEvent.lookup_type => V2BillingCadenceErroredEvent,
14
+ V2BillingLicenseFeeCreatedEvent.lookup_type => V2BillingLicenseFeeCreatedEvent,
15
+ V2BillingLicenseFeeUpdatedEvent.lookup_type => V2BillingLicenseFeeUpdatedEvent,
16
+ V2BillingLicenseFeeVersionCreatedEvent.lookup_type => V2BillingLicenseFeeVersionCreatedEvent,
17
+ V2BillingLicensedItemCreatedEvent.lookup_type => V2BillingLicensedItemCreatedEvent,
18
+ V2BillingLicensedItemUpdatedEvent.lookup_type => V2BillingLicensedItemUpdatedEvent,
19
+ V2BillingMeteredItemCreatedEvent.lookup_type => V2BillingMeteredItemCreatedEvent,
20
+ V2BillingMeteredItemUpdatedEvent.lookup_type => V2BillingMeteredItemUpdatedEvent,
21
+ V2BillingPricingPlanComponentCreatedEvent.lookup_type => V2BillingPricingPlanComponentCreatedEvent,
22
+ V2BillingPricingPlanComponentUpdatedEvent.lookup_type => V2BillingPricingPlanComponentUpdatedEvent,
23
+ V2BillingPricingPlanCreatedEvent.lookup_type => V2BillingPricingPlanCreatedEvent,
24
+ V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
25
+ V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent,
26
+ V2BillingPricingPlanSubscriptionCollectionCurrentEvent.lookup_type =>
27
+ V2BillingPricingPlanSubscriptionCollectionCurrentEvent,
28
+ V2BillingPricingPlanSubscriptionCollectionPastDueEvent.lookup_type =>
29
+ V2BillingPricingPlanSubscriptionCollectionPastDueEvent,
30
+ V2BillingPricingPlanSubscriptionCollectionPausedEvent.lookup_type =>
31
+ V2BillingPricingPlanSubscriptionCollectionPausedEvent,
32
+ V2BillingPricingPlanSubscriptionCollectionUnpaidEvent.lookup_type =>
33
+ V2BillingPricingPlanSubscriptionCollectionUnpaidEvent,
34
+ V2BillingPricingPlanSubscriptionServicingActivatedEvent.lookup_type =>
35
+ V2BillingPricingPlanSubscriptionServicingActivatedEvent,
36
+ V2BillingPricingPlanSubscriptionServicingCanceledEvent.lookup_type =>
37
+ V2BillingPricingPlanSubscriptionServicingCanceledEvent,
38
+ V2BillingPricingPlanSubscriptionServicingPausedEvent.lookup_type =>
39
+ V2BillingPricingPlanSubscriptionServicingPausedEvent,
40
+ V2BillingPricingPlanUpdatedEvent.lookup_type => V2BillingPricingPlanUpdatedEvent,
41
+ V2BillingPricingPlanVersionCreatedEvent.lookup_type => V2BillingPricingPlanVersionCreatedEvent,
42
+ V2BillingRateCardCreatedEvent.lookup_type => V2BillingRateCardCreatedEvent,
43
+ V2BillingRateCardRateCreatedEvent.lookup_type => V2BillingRateCardRateCreatedEvent,
44
+ V2BillingRateCardSubscriptionActivatedEvent.lookup_type =>
45
+ V2BillingRateCardSubscriptionActivatedEvent,
46
+ V2BillingRateCardSubscriptionCanceledEvent.lookup_type =>
47
+ V2BillingRateCardSubscriptionCanceledEvent,
48
+ V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent.lookup_type =>
49
+ V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent,
50
+ V2BillingRateCardSubscriptionCollectionCurrentEvent.lookup_type =>
51
+ V2BillingRateCardSubscriptionCollectionCurrentEvent,
52
+ V2BillingRateCardSubscriptionCollectionPastDueEvent.lookup_type =>
53
+ V2BillingRateCardSubscriptionCollectionPastDueEvent,
54
+ V2BillingRateCardSubscriptionCollectionPausedEvent.lookup_type =>
55
+ V2BillingRateCardSubscriptionCollectionPausedEvent,
56
+ V2BillingRateCardSubscriptionCollectionUnpaidEvent.lookup_type =>
57
+ V2BillingRateCardSubscriptionCollectionUnpaidEvent,
58
+ V2BillingRateCardSubscriptionServicingActivatedEvent.lookup_type =>
59
+ V2BillingRateCardSubscriptionServicingActivatedEvent,
60
+ V2BillingRateCardSubscriptionServicingCanceledEvent.lookup_type =>
61
+ V2BillingRateCardSubscriptionServicingCanceledEvent,
62
+ V2BillingRateCardSubscriptionServicingPausedEvent.lookup_type =>
63
+ V2BillingRateCardSubscriptionServicingPausedEvent,
64
+ V2BillingRateCardUpdatedEvent.lookup_type => V2BillingRateCardUpdatedEvent,
65
+ V2BillingRateCardVersionCreatedEvent.lookup_type => V2BillingRateCardVersionCreatedEvent,
10
66
  V2CoreAccountClosedEvent.lookup_type => V2CoreAccountClosedEvent,
11
67
  V2CoreAccountCreatedEvent.lookup_type => V2CoreAccountCreatedEvent,
12
68
  V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
@@ -37,6 +93,29 @@ module Stripe
37
93
  V2CoreAccountPersonUpdatedEvent.lookup_type => V2CoreAccountPersonUpdatedEvent,
38
94
  V2CoreAccountUpdatedEvent.lookup_type => V2CoreAccountUpdatedEvent,
39
95
  V2CoreEventDestinationPingEvent.lookup_type => V2CoreEventDestinationPingEvent,
96
+ V2CoreHealthApiErrorFiringEvent.lookup_type => V2CoreHealthApiErrorFiringEvent,
97
+ V2CoreHealthApiErrorResolvedEvent.lookup_type => V2CoreHealthApiErrorResolvedEvent,
98
+ V2CoreHealthApiLatencyFiringEvent.lookup_type => V2CoreHealthApiLatencyFiringEvent,
99
+ V2CoreHealthApiLatencyResolvedEvent.lookup_type => V2CoreHealthApiLatencyResolvedEvent,
100
+ V2CoreHealthAuthorizationRateDropFiringEvent.lookup_type =>
101
+ V2CoreHealthAuthorizationRateDropFiringEvent,
102
+ V2CoreHealthAuthorizationRateDropResolvedEvent.lookup_type =>
103
+ V2CoreHealthAuthorizationRateDropResolvedEvent,
104
+ V2CoreHealthEventGenerationFailureResolvedEvent.lookup_type =>
105
+ V2CoreHealthEventGenerationFailureResolvedEvent,
106
+ V2CoreHealthFraudRateIncreasedEvent.lookup_type => V2CoreHealthFraudRateIncreasedEvent,
107
+ V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent.lookup_type =>
108
+ V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent,
109
+ V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent.lookup_type =>
110
+ V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent,
111
+ V2CoreHealthPaymentMethodErrorFiringEvent.lookup_type => V2CoreHealthPaymentMethodErrorFiringEvent,
112
+ V2CoreHealthPaymentMethodErrorResolvedEvent.lookup_type =>
113
+ V2CoreHealthPaymentMethodErrorResolvedEvent,
114
+ V2CoreHealthTrafficVolumeDropFiringEvent.lookup_type => V2CoreHealthTrafficVolumeDropFiringEvent,
115
+ V2CoreHealthTrafficVolumeDropResolvedEvent.lookup_type =>
116
+ V2CoreHealthTrafficVolumeDropResolvedEvent,
117
+ V2CoreHealthWebhookLatencyFiringEvent.lookup_type => V2CoreHealthWebhookLatencyFiringEvent,
118
+ V2CoreHealthWebhookLatencyResolvedEvent.lookup_type => V2CoreHealthWebhookLatencyResolvedEvent,
40
119
  V2MoneyManagementAdjustmentCreatedEvent.lookup_type => V2MoneyManagementAdjustmentCreatedEvent,
41
120
  V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
42
121
  V2MoneyManagementFinancialAccountCreatedEvent,
@@ -110,6 +189,10 @@ module Stripe
110
189
  V2PaymentsOffSessionPaymentCreatedEvent.lookup_type => V2PaymentsOffSessionPaymentCreatedEvent,
111
190
  V2PaymentsOffSessionPaymentFailedEvent.lookup_type => V2PaymentsOffSessionPaymentFailedEvent,
112
191
  V2PaymentsOffSessionPaymentSucceededEvent.lookup_type => V2PaymentsOffSessionPaymentSucceededEvent,
192
+ V2ReportingReportRunCreatedEvent.lookup_type => V2ReportingReportRunCreatedEvent,
193
+ V2ReportingReportRunFailedEvent.lookup_type => V2ReportingReportRunFailedEvent,
194
+ V2ReportingReportRunSucceededEvent.lookup_type => V2ReportingReportRunSucceededEvent,
195
+ V2ReportingReportRunUpdatedEvent.lookup_type => V2ReportingReportRunUpdatedEvent,
113
196
  # The end of the section generated from our OpenAPI spec
114
197
  }
115
198
  end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a billing Cadence generates an invoice.
6
+ class V2BillingCadenceBilledEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.cadence.billed"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a billing Cadence is canceled.
6
+ class V2BillingCadenceCanceledEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.cadence.canceled"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a billing Cadence is created.
6
+ class V2BillingCadenceCreatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.cadence.created"
9
+ end
10
+ # There is additional data present for this event, accessible with the `data` property.
11
+ # See the Stripe API docs for more information.
12
+
13
+ # Retrieves the related object from the API. Make an API request on every call.
14
+ def fetch_related_object
15
+ _request(
16
+ method: :get,
17
+ path: related_object.url,
18
+ base_address: :api,
19
+ opts: { stripe_account: context }
20
+ )
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a billing Cadence encounters an error during a tick.
6
+ class V2BillingCadenceErroredEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.cadence.errored"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a LicenseFee is created.
6
+ class V2BillingLicenseFeeCreatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.license_fee.created"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a LicenseFee is updated.
6
+ class V2BillingLicenseFeeUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.license_fee.updated"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a LicenseFeeVersion is created.
6
+ class V2BillingLicenseFeeVersionCreatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.billing.license_fee_version.created"
9
+ end
10
+ # There is additional data present for this event, accessible with the `data` property.
11
+ # See the Stripe API docs for more information.
12
+
13
+ # Retrieves the related object from the API. Make an API request on every call.
14
+ def fetch_related_object
15
+ _request(
16
+ method: :get,
17
+ path: related_object.url,
18
+ base_address: :api,
19
+ opts: { stripe_account: context }
20
+ )
21
+ end
22
+ end
23
+ end