Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
6b49e5a
Warn when stripe-notify header is present (#1866)
xavdid May 27, 2026
92e654a
Update generated code for v2277 and 081f4305a2d6baea93b13ba5fa64f42d7…
stripe-openapi[bot] May 27, 2026
c40f8c1
Bump version to 19.2.0
mbroshi-stripe May 27, 2026
62dae53
Merge upstream and update generated code for v2277 and e410e9ac8e4f0d…
stripe-openapi[bot] May 28, 2026
f8de8bc
Update generated code for v2279 and d4c5613f2c824ce394453c7d2eda2f562…
stripe-openapi[bot] May 29, 2026
f726186
Update generated code for v2279 and 51814d59c32ad8b7c2907d76002882018…
stripe-openapi[bot] May 29, 2026
7f413c8
Update generated code for v2280 and 4adb7cc8d107e5bfa5d86f090a0a9af8f…
stripe-openapi[bot] May 30, 2026
da32faa
Update generated code for v2281 and 96c3176416a9197d6d0e55d71ea840c3b…
stripe-openapi[bot] May 30, 2026
c5e5d02
Update generated code for v2282 and 5c691c66c4772b3ac8ec428cfbad43c1a…
stripe-openapi[bot] Jun 1, 2026
0596f58
Update generated code for v2283 and 85055f7b3256cdc4aa3474b8ae86a1262…
stripe-openapi[bot] Jun 1, 2026
9bbed93
Update generated code for v2285 and 58f415ba6c30def0bd7d83bab2afa14fa…
stripe-openapi[bot] Jun 2, 2026
49f6cd7
Update generated code for v2286 and 73b6b975bf4a958bcc2a7a6c09d69e1c0…
stripe-openapi[bot] Jun 2, 2026
c72eaf4
Update generated code for v2287 and 82b4eec03fcc3079809c6e9732212b7b6…
stripe-openapi[bot] Jun 2, 2026
bffd453
Update generated code for v2288 and bfc40fd356c460f9f1e04c4f6ba95b5eb…
stripe-openapi[bot] Jun 2, 2026
bdee7ba
Update generated code for v2289 and de3675e8666757ecc39afc1d9c7e3b414…
stripe-openapi[bot] Jun 2, 2026
68a053e
Update generated code for v2290 and 0f1230b1967eb13ba7f0a4b18ac691e82…
stripe-openapi[bot] Jun 3, 2026
c88e5b0
Regenerate from fixed codegen (sdk-codegen#3663)
jar-stripe Jun 3, 2026
fb3e8d3
Update generated code for v2290 and 656489921ee220b536bc00fc1c8ee7ed5…
stripe-openapi[bot] Jun 3, 2026
8c64324
Merge pull request #1873 from stripe/jar/fix-v2-namespace-rename
xavdid Jun 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,42 @@ This release changes the pinned API version to 2026-05-27.private.
* Add support for `canonical_path` on `EventsV2CoreHealthTrafficVolumeDropFiringEvent` and `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`
* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent`

## 19.2.0 - 2026-05-27
This release changes the pinned API version to 2026-05-27.dahlia.

* [#1864](https://github.com/stripe/stripe-ruby/pull/1864) Update generated code
* Add support for new resource `V2::Commerce::ProductCatalogImport`
* Add support for `create` and `retrieve` methods on resource `V2::Commerce::ProductCatalogImport`
* Add support for `bizum_payments` and `scalapay_payments` on `Account::Capability`, `AccountCreateParams::Capability`, and `AccountUpdateParams::Capability`
* Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings::Payment::Payout` and `BalanceSettingsUpdateParams::Payment::Payout`
* Add support for `start_of_day` on `BalanceSettings::Payment::SettlementTiming` and `BalanceSettingsUpdateParams::Payment::SettlementTiming`
* Add support for `description` on `ChargeCreateParams::TransferDatum`, `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum`
* Add support for `bizum` on `Charge::PaymentMethodDetail`, `ConfirmationToken::PaymentMethodPreview`, `ConfirmationTokenCreateParams::PaymentMethodDatum`, `PaymentAttemptRecord::PaymentMethodDetail`, `PaymentIntent::PaymentMethodOption`, `PaymentIntentConfirmParams::PaymentMethodDatum`, `PaymentIntentConfirmParams::PaymentMethodOption`, `PaymentIntentCreateParams::PaymentMethodDatum`, `PaymentIntentCreateParams::PaymentMethodOption`, `PaymentIntentUpdateParams::PaymentMethodDatum`, `PaymentIntentUpdateParams::PaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord::PaymentMethodDetail`, `SetupIntent::PaymentMethodOption`, `SetupIntentConfirmParams::PaymentMethodDatum`, `SetupIntentConfirmParams::PaymentMethodOption`, `SetupIntentCreateParams::PaymentMethodDatum`, `SetupIntentCreateParams::PaymentMethodOption`, `SetupIntentUpdateParams::PaymentMethodDatum`, and `SetupIntentUpdateParams::PaymentMethodOption`
* Add support for `scalapay` on `Charge::PaymentMethodDetail`, `Checkout::Session::PaymentMethodOption`, `Checkout::SessionCreateParams::PaymentMethodOption`, `ConfirmationToken::PaymentMethodPreview`, `ConfirmationTokenCreateParams::PaymentMethodDatum`, `PaymentAttemptRecord::PaymentMethodDetail`, `PaymentIntent::PaymentMethodOption`, `PaymentIntentConfirmParams::PaymentMethodDatum`, `PaymentIntentConfirmParams::PaymentMethodOption`, `PaymentIntentCreateParams::PaymentMethodDatum`, `PaymentIntentCreateParams::PaymentMethodOption`, `PaymentIntentUpdateParams::PaymentMethodDatum`, `PaymentIntentUpdateParams::PaymentMethodOption`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord::PaymentMethodDetail`, `Refund::DestinationDetail`, `SetupIntentConfirmParams::PaymentMethodDatum`, `SetupIntentCreateParams::PaymentMethodDatum`, and `SetupIntentUpdateParams::PaymentMethodDatum`
* Add support for `mandate` on `Charge::PaymentMethodDetail::Twint`, `PaymentAttemptRecord::PaymentMethodDetail::Twint`, and `PaymentRecord::PaymentMethodDetail::Twint`
* Change type of `Checkout::SessionCreateParams::PaymentMethodOption::Twint.setup_future_usage`, `PaymentIntentConfirmParams::PaymentMethodOption::Twint.setup_future_usage`, `PaymentIntentCreateParams::PaymentMethodOption::Twint.setup_future_usage`, and `PaymentIntentUpdateParams::PaymentMethodOption::Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
* ⚠️ Change type of `Checkout::Session::PaymentMethodOption::Twint.setup_future_usage` and `PaymentIntent::PaymentMethodOption::Twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
* Add support for `credited_items` on `InvoiceItem::ProrationDetail`
* Add support for `discountable` on `InvoiceCreatePreviewParams::ScheduleDetail::Phase::AddInvoiceItem`, `SubscriptionCreateParams::AddInvoiceItem`, `SubscriptionSchedule::Phase::AddInvoiceItem`, `SubscriptionScheduleCreateParams::Phase::AddInvoiceItem`, `SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem`, and `SubscriptionUpdateParams::AddInvoiceItem`
* Add support for `billing_schedules` on `InvoiceCreatePreviewParams::SubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
* Add support for `amount_paid_off_stripe` on `Invoice`
* Add support for `twint` on `Mandate::PaymentMethodDetail` and `SetupAttempt::PaymentMethodDetail`
* Add support for `metadata` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, `PaymentIntentUpdateParams::TransferDatum`, and `Subscription::PendingUpdate`
* Add support for `payment_data` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum`
* Add support for `blik_authorize` on `PaymentIntent::NextAction` and `SetupIntent::NextAction`
* Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
* Add support for `active` on `PaymentMethodConfigurationListParams`
* Add support for `billed_until` on `SubscriptionItem`
* Add support for `discount` and `discounts` on `Subscription::PendingUpdate`
* Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal::ConfigurationCreateParams`, `Terminal::ConfigurationUpdateParams`, and `Terminal::Configuration`
* Add support for `api_error` and `print_content` on `Terminal::Reader::Action`
* Add support for `customer` on `TestHelpers::TestClockCreateParams`
* Add support for `signer` on `V2::Core::Account::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::Account::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountCreateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::AccountCreateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, `V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`, `V2::Core::AccountUpdateParams::Identity::BusinessDetail::Document::ProofOfRegistration`, and `V2::Core::AccountUpdateParams::Identity::BusinessDetail::Document::ProofOfUltimateBeneficialOwnership`
* Add support for `azure_event_grid` on `V2::Core::EventDestinationCreateParams` and `V2::Core::EventDestination`
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2::Commerce::ProductCatalogImport`
* [#1866](https://github.com/stripe/stripe-ruby/pull/1866) Emit warning when `stripe-notify` header is present in response
* [#1855](https://github.com/stripe/stripe-ruby/pull/1855) Use autoload instead of eager require for generated resource, service, and param files

## 19.2.0-alpha.6 - 2026-05-20
* [#1865](https://github.com/stripe/stripe-ruby/pull/1865) Update generated code for private-preview
* Add support for new resource `PaymentLocationCapability`
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
656489921ee220b536bc00fc1c8ee7ed528f24e2
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2277
v2290
3 changes: 3 additions & 0 deletions lib/stripe/api_requestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ def execute_request(method, path, base_address,
)
req_opts = RequestOptions.extract_opts_from_hash(req_opts)

notice = http_resp["stripe-notice"]
warn("WARNING: #{notice}") if notice

resp = interpret_response(http_resp)

# If being called from `APIRequestor#request`, put the last response in
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

module Stripe
module ApiVersion
CURRENT = "2026-05-27.preview"
CURRENT = "2026-06-03.preview"
end
end
4 changes: 4 additions & 0 deletions lib/stripe/event_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ def self.v2_event_types_to_classes
Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent.lookup_type =>
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent,
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent.lookup_type =>
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent,
# v2 event types: The end of the section generated from our OpenAPI spec
}
end
Expand Down Expand Up @@ -1403,6 +1405,8 @@ def self.event_notification_types_to_classes
Events::V2ReportingReportRunUpdatedEventNotification,
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification.lookup_type =>
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification.lookup_type =>
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
# event notification types: The end of the section generated from our OpenAPI spec
}
end
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module Events
# Occurs when a merchant delinquency signal is ready for an account.
class V2SignalsAccountSignalMerchantDelinquencyReadyEvent < Stripe::V2::Core::Event
def self.lookup_type
"v2.signals.account_signal.merchant_delinquency_ready"
end

# Retrieves the related object from the API. Makes an API request on every call.
def fetch_related_object
_request(
method: :get,
path: related_object.url,
base_address: :api,
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
)
end
attr_reader :related_object
end

# Occurs when a merchant delinquency signal is ready for an account.
class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification < Stripe::V2::Core::EventNotification
def self.lookup_type
"v2.signals.account_signal.merchant_delinquency_ready"
end

attr_reader :related_object

# Retrieves the AccountSignal related to this EventNotification from the Stripe API. Makes an API request on every call.
def fetch_related_object
resp = @client.raw_request(
:get,
related_object.url,
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
usage: ["fetch_related_object"]
)
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
end
end
end
end
6 changes: 6 additions & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def self.object_names_to_classes
CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
CustomerSession.object_name => CustomerSession,
DelegatedCheckout::Order.object_name => DelegatedCheckout::Order,
DelegatedCheckout::OrderEvent.object_name => DelegatedCheckout::OrderEvent,
DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
Discount.object_name => Discount,
Dispute.object_name => Dispute,
Expand Down Expand Up @@ -219,6 +221,9 @@ def self.v2_object_names_to_classes
V2::Billing::CadenceSpendModifier.object_name => V2::Billing::CadenceSpendModifier,
V2::Billing::CollectionSetting.object_name => V2::Billing::CollectionSetting,
V2::Billing::CollectionSettingVersion.object_name => V2::Billing::CollectionSettingVersion,
V2::Billing::Contract.object_name => V2::Billing::Contract,
V2::Billing::ContractLicensePricingQuantityChange.object_name =>
V2::Billing::ContractLicensePricingQuantityChange,
V2::Billing::CustomPricingUnit.object_name => V2::Billing::CustomPricingUnit,
V2::Billing::Intent.object_name => V2::Billing::Intent,
V2::Billing::IntentAction.object_name => V2::Billing::IntentAction,
Expand Down Expand Up @@ -297,6 +302,7 @@ def self.v2_object_names_to_classes
V2::Payments::SettlementAllocationIntentSplit,
V2::Reporting::Report.object_name => V2::Reporting::Report,
V2::Reporting::ReportRun.object_name => V2::Reporting::ReportRun,
V2::Signals::AccountSignal.object_name => V2::Signals::AccountSignal,
V2::Tax::ManualRule.object_name => V2::Tax::ManualRule,
# v2 object classes: The end of the section generated from our OpenAPI spec
}
Expand Down
33 changes: 33 additions & 0 deletions lib/stripe/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,12 @@ module Climate
end

module DelegatedCheckout
autoload :OrderRetrieveParams, "stripe/params/delegated_checkout/order_retrieve_params"
autoload :RequestedSessionConfirmParams, "stripe/params/delegated_checkout/requested_session_confirm_params"
autoload :RequestedSessionCreateParams, "stripe/params/delegated_checkout/requested_session_create_params"
autoload :RequestedSessionExpireParams, "stripe/params/delegated_checkout/requested_session_expire_params"
autoload :RequestedSessionListOrdersParams, "stripe/params/delegated_checkout/requested_session_list_orders_params"
autoload :RequestedSessionOrderListParams, "stripe/params/delegated_checkout/requested_session_order_list_params"
autoload :RequestedSessionRetrieveParams, "stripe/params/delegated_checkout/requested_session_retrieve_params"
autoload :RequestedSessionUpdateParams, "stripe/params/delegated_checkout/requested_session_update_params"
end
Expand Down Expand Up @@ -873,6 +876,12 @@ module Billing
autoload :CollectionSettingListParams, "stripe/params/v2/billing/collection_setting_list_params"
autoload :CollectionSettingRetrieveParams, "stripe/params/v2/billing/collection_setting_retrieve_params"
autoload :CollectionSettingUpdateParams, "stripe/params/v2/billing/collection_setting_update_params"
autoload :ContractActivateParams, "stripe/params/v2/billing/contract_activate_params"
autoload :ContractCancelParams, "stripe/params/v2/billing/contract_cancel_params"
autoload :ContractCreateParams, "stripe/params/v2/billing/contract_create_params"
autoload :ContractListParams, "stripe/params/v2/billing/contract_list_params"
autoload :ContractRetrieveParams, "stripe/params/v2/billing/contract_retrieve_params"
autoload :ContractUpdateParams, "stripe/params/v2/billing/contract_update_params"
autoload :CustomPricingUnitCreateParams, "stripe/params/v2/billing/custom_pricing_unit_create_params"
autoload :CustomPricingUnitListParams, "stripe/params/v2/billing/custom_pricing_unit_list_params"
autoload :CustomPricingUnitRetrieveParams, "stripe/params/v2/billing/custom_pricing_unit_retrieve_params"
Expand Down Expand Up @@ -948,6 +957,13 @@ module CollectionSettings
autoload :VersionRetrieveParams, "stripe/params/v2/billing/collection_settings/version_retrieve_params"
end

module Contracts
module LicensePricing
autoload :QuantityChangeListQuantityChangesParams,
"stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params"
end
end

module Intents
autoload :ActionListParams, "stripe/params/v2/billing/intents/action_list_params"
autoload :ActionRetrieveParams, "stripe/params/v2/billing/intents/action_retrieve_params"
Expand Down Expand Up @@ -1209,6 +1225,11 @@ module Reporting
autoload :ReportRunRetrieveParams, "stripe/params/v2/reporting/report_run_retrieve_params"
end

module Signals
autoload :AccountSignalListParams, "stripe/params/v2/signals/account_signal_list_params"
autoload :AccountSignalRetrieveParams, "stripe/params/v2/signals/account_signal_retrieve_params"
end

module Tax
autoload :ManualRuleCreateParams, "stripe/params/v2/tax/manual_rule_create_params"
autoload :ManualRuleDeactivateParams, "stripe/params/v2/tax/manual_rule_deactivate_params"
Expand Down Expand Up @@ -1390,9 +1411,12 @@ module Stripe
stripe/params/customer_tax_id_list_params
stripe/params/customer_tax_id_retrieve_params
stripe/params/customer_update_params
stripe/params/delegated_checkout/order_retrieve_params
stripe/params/delegated_checkout/requested_session_confirm_params
stripe/params/delegated_checkout/requested_session_create_params
stripe/params/delegated_checkout/requested_session_expire_params
stripe/params/delegated_checkout/requested_session_list_orders_params
stripe/params/delegated_checkout/requested_session_order_list_params
stripe/params/delegated_checkout/requested_session_retrieve_params
stripe/params/delegated_checkout/requested_session_update_params
stripe/params/dispute_close_params
Expand Down Expand Up @@ -1972,6 +1996,13 @@ module Stripe
stripe/params/v2/billing/collection_setting_update_params
stripe/params/v2/billing/collection_settings/version_list_params
stripe/params/v2/billing/collection_settings/version_retrieve_params
stripe/params/v2/billing/contract_activate_params
stripe/params/v2/billing/contract_cancel_params
stripe/params/v2/billing/contract_create_params
stripe/params/v2/billing/contract_list_params
stripe/params/v2/billing/contract_retrieve_params
stripe/params/v2/billing/contract_update_params
stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params
stripe/params/v2/billing/custom_pricing_unit_create_params
stripe/params/v2/billing/custom_pricing_unit_list_params
stripe/params/v2/billing/custom_pricing_unit_retrieve_params
Expand Down Expand Up @@ -2203,6 +2234,8 @@ module Stripe
stripe/params/v2/reporting/report_retrieve_params
stripe/params/v2/reporting/report_run_create_params
stripe/params/v2/reporting/report_run_retrieve_params
stripe/params/v2/signals/account_signal_list_params
stripe/params/v2/signals/account_signal_retrieve_params
stripe/params/v2/tax/manual_rule_create_params
stripe/params/v2/tax/manual_rule_deactivate_params
stripe/params/v2/tax/manual_rule_list_params
Expand Down
Loading
Loading