Skip to content

Commit c97cdf9

Browse files
Merge pull request #1870 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents 4382ac7 + 8c64324 commit c97cdf9

136 files changed

Lines changed: 13491 additions & 863 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,42 @@ This release changes the pinned API version to 2026-05-27.private.
1818
* Add support for `canonical_path` on `EventsV2CoreHealthTrafficVolumeDropFiringEvent` and `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`
1919
* Add support for event notifications `V2CoreHealthElementsErrorFiringEvent`, `V2CoreHealthElementsErrorResolvedEvent`, `V2CoreHealthInvoiceCountDroppedFiringEvent`, and `V2CoreHealthInvoiceCountDroppedResolvedEvent`
2020

21+
## 19.2.0 - 2026-05-27
22+
This release changes the pinned API version to 2026-05-27.dahlia.
23+
24+
* [#1864](https://github.com/stripe/stripe-ruby/pull/1864) Update generated code
25+
* Add support for new resource `V2::Commerce::ProductCatalogImport`
26+
* Add support for `create` and `retrieve` methods on resource `V2::Commerce::ProductCatalogImport`
27+
* Add support for `bizum_payments` and `scalapay_payments` on `Account::Capability`, `AccountCreateParams::Capability`, and `AccountUpdateParams::Capability`
28+
* Add support for `automatic_transfer_rules_by_currency` on `BalanceSettings::Payment::Payout` and `BalanceSettingsUpdateParams::Payment::Payout`
29+
* Add support for `start_of_day` on `BalanceSettings::Payment::SettlementTiming` and `BalanceSettingsUpdateParams::Payment::SettlementTiming`
30+
* Add support for `description` on `ChargeCreateParams::TransferDatum`, `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum`
31+
* 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`
32+
* 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`
33+
* Add support for `mandate` on `Charge::PaymentMethodDetail::Twint`, `PaymentAttemptRecord::PaymentMethodDetail::Twint`, and `PaymentRecord::PaymentMethodDetail::Twint`
34+
* 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')`
35+
* ⚠️ 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')`
36+
* Add support for `credited_items` on `InvoiceItem::ProrationDetail`
37+
* Add support for `discountable` on `InvoiceCreatePreviewParams::ScheduleDetail::Phase::AddInvoiceItem`, `SubscriptionCreateParams::AddInvoiceItem`, `SubscriptionSchedule::Phase::AddInvoiceItem`, `SubscriptionScheduleCreateParams::Phase::AddInvoiceItem`, `SubscriptionScheduleUpdateParams::Phase::AddInvoiceItem`, and `SubscriptionUpdateParams::AddInvoiceItem`
38+
* Add support for `billing_schedules` on `InvoiceCreatePreviewParams::SubscriptionDetail`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
39+
* Add support for `amount_paid_off_stripe` on `Invoice`
40+
* Add support for `twint` on `Mandate::PaymentMethodDetail` and `SetupAttempt::PaymentMethodDetail`
41+
* Add support for `metadata` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, `PaymentIntentUpdateParams::TransferDatum`, and `Subscription::PendingUpdate`
42+
* Add support for `payment_data` on `PaymentIntent::TransferDatum`, `PaymentIntentCreateParams::TransferDatum`, and `PaymentIntentUpdateParams::TransferDatum`
43+
* Add support for `blik_authorize` on `PaymentIntent::NextAction` and `SetupIntent::NextAction`
44+
* Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
45+
* Add support for `active` on `PaymentMethodConfigurationListParams`
46+
* Add support for `billed_until` on `SubscriptionItem`
47+
* Add support for `discount` and `discounts` on `Subscription::PendingUpdate`
48+
* Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal::ConfigurationCreateParams`, `Terminal::ConfigurationUpdateParams`, and `Terminal::Configuration`
49+
* Add support for `api_error` and `print_content` on `Terminal::Reader::Action`
50+
* Add support for `customer` on `TestHelpers::TestClockCreateParams`
51+
* 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`
52+
* Add support for `azure_event_grid` on `V2::Core::EventDestinationCreateParams` and `V2::Core::EventDestination`
53+
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2::Commerce::ProductCatalogImport`
54+
* [#1866](https://github.com/stripe/stripe-ruby/pull/1866) Emit warning when `stripe-notify` header is present in response
55+
* [#1855](https://github.com/stripe/stripe-ruby/pull/1855) Use autoload instead of eager require for generated resource, service, and param files
56+
2157
## 19.2.0-alpha.6 - 2026-05-20
2258
* [#1865](https://github.com/stripe/stripe-ruby/pull/1865) Update generated code for private-preview
2359
* Add support for new resource `PaymentLocationCapability`

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1af5aa444ea8141a2d2b8d86e76c73f788f65e09
1+
656489921ee220b536bc00fc1c8ee7ed528f24e2

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2277
1+
v2290

lib/stripe/api_requestor.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ def execute_request(method, path, base_address,
201201
)
202202
req_opts = RequestOptions.extract_opts_from_hash(req_opts)
203203

204+
notice = http_resp["stripe-notice"]
205+
warn("WARNING: #{notice}") if notice
206+
204207
resp = interpret_response(http_resp)
205208

206209
# If being called from `APIRequestor#request`, put the last response in

lib/stripe/api_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2026-05-27.preview"
6+
CURRENT = "2026-06-03.preview"
77
end
88
end

lib/stripe/event_types.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,8 @@ def self.v2_event_types_to_classes
638638
Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
639639
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent.lookup_type =>
640640
Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent,
641+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent.lookup_type =>
642+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent,
641643
# v2 event types: The end of the section generated from our OpenAPI spec
642644
}
643645
end
@@ -1403,6 +1405,8 @@ def self.event_notification_types_to_classes
14031405
Events::V2ReportingReportRunUpdatedEventNotification,
14041406
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification.lookup_type =>
14051407
Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
1408+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification.lookup_type =>
1409+
Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
14061410
# event notification types: The end of the section generated from our OpenAPI spec
14071411
}
14081412
end
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
module Events
6+
# Occurs when a merchant delinquency signal is ready for an account.
7+
class V2SignalsAccountSignalMerchantDelinquencyReadyEvent < Stripe::V2::Core::Event
8+
def self.lookup_type
9+
"v2.signals.account_signal.merchant_delinquency_ready"
10+
end
11+
12+
# Retrieves the related object from the API. Makes an API request on every call.
13+
def fetch_related_object
14+
_request(
15+
method: :get,
16+
path: related_object.url,
17+
base_address: :api,
18+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19+
)
20+
end
21+
attr_reader :related_object
22+
end
23+
24+
# Occurs when a merchant delinquency signal is ready for an account.
25+
class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification < Stripe::V2::Core::EventNotification
26+
def self.lookup_type
27+
"v2.signals.account_signal.merchant_delinquency_ready"
28+
end
29+
30+
attr_reader :related_object
31+
32+
# Retrieves the AccountSignal related to this EventNotification from the Stripe API. Makes an API request on every call.
33+
def fetch_related_object
34+
resp = @client.raw_request(
35+
:get,
36+
related_object.url,
37+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38+
usage: ["fetch_related_object"]
39+
)
40+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41+
end
42+
end
43+
end
44+
end

lib/stripe/object_types.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def self.object_names_to_classes
6262
CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
6363
CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
6464
CustomerSession.object_name => CustomerSession,
65+
DelegatedCheckout::Order.object_name => DelegatedCheckout::Order,
66+
DelegatedCheckout::OrderEvent.object_name => DelegatedCheckout::OrderEvent,
6567
DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
6668
Discount.object_name => Discount,
6769
Dispute.object_name => Dispute,
@@ -219,6 +221,9 @@ def self.v2_object_names_to_classes
219221
V2::Billing::CadenceSpendModifier.object_name => V2::Billing::CadenceSpendModifier,
220222
V2::Billing::CollectionSetting.object_name => V2::Billing::CollectionSetting,
221223
V2::Billing::CollectionSettingVersion.object_name => V2::Billing::CollectionSettingVersion,
224+
V2::Billing::Contract.object_name => V2::Billing::Contract,
225+
V2::Billing::ContractLicensePricingQuantityChange.object_name =>
226+
V2::Billing::ContractLicensePricingQuantityChange,
222227
V2::Billing::CustomPricingUnit.object_name => V2::Billing::CustomPricingUnit,
223228
V2::Billing::Intent.object_name => V2::Billing::Intent,
224229
V2::Billing::IntentAction.object_name => V2::Billing::IntentAction,
@@ -297,6 +302,7 @@ def self.v2_object_names_to_classes
297302
V2::Payments::SettlementAllocationIntentSplit,
298303
V2::Reporting::Report.object_name => V2::Reporting::Report,
299304
V2::Reporting::ReportRun.object_name => V2::Reporting::ReportRun,
305+
V2::Signals::AccountSignal.object_name => V2::Signals::AccountSignal,
300306
V2::Tax::ManualRule.object_name => V2::Tax::ManualRule,
301307
# v2 object classes: The end of the section generated from our OpenAPI spec
302308
}

lib/stripe/params.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,12 @@ module Climate
456456
end
457457

458458
module DelegatedCheckout
459+
autoload :OrderRetrieveParams, "stripe/params/delegated_checkout/order_retrieve_params"
459460
autoload :RequestedSessionConfirmParams, "stripe/params/delegated_checkout/requested_session_confirm_params"
460461
autoload :RequestedSessionCreateParams, "stripe/params/delegated_checkout/requested_session_create_params"
461462
autoload :RequestedSessionExpireParams, "stripe/params/delegated_checkout/requested_session_expire_params"
463+
autoload :RequestedSessionListOrdersParams, "stripe/params/delegated_checkout/requested_session_list_orders_params"
464+
autoload :RequestedSessionOrderListParams, "stripe/params/delegated_checkout/requested_session_order_list_params"
462465
autoload :RequestedSessionRetrieveParams, "stripe/params/delegated_checkout/requested_session_retrieve_params"
463466
autoload :RequestedSessionUpdateParams, "stripe/params/delegated_checkout/requested_session_update_params"
464467
end
@@ -873,6 +876,12 @@ module Billing
873876
autoload :CollectionSettingListParams, "stripe/params/v2/billing/collection_setting_list_params"
874877
autoload :CollectionSettingRetrieveParams, "stripe/params/v2/billing/collection_setting_retrieve_params"
875878
autoload :CollectionSettingUpdateParams, "stripe/params/v2/billing/collection_setting_update_params"
879+
autoload :ContractActivateParams, "stripe/params/v2/billing/contract_activate_params"
880+
autoload :ContractCancelParams, "stripe/params/v2/billing/contract_cancel_params"
881+
autoload :ContractCreateParams, "stripe/params/v2/billing/contract_create_params"
882+
autoload :ContractListParams, "stripe/params/v2/billing/contract_list_params"
883+
autoload :ContractRetrieveParams, "stripe/params/v2/billing/contract_retrieve_params"
884+
autoload :ContractUpdateParams, "stripe/params/v2/billing/contract_update_params"
876885
autoload :CustomPricingUnitCreateParams, "stripe/params/v2/billing/custom_pricing_unit_create_params"
877886
autoload :CustomPricingUnitListParams, "stripe/params/v2/billing/custom_pricing_unit_list_params"
878887
autoload :CustomPricingUnitRetrieveParams, "stripe/params/v2/billing/custom_pricing_unit_retrieve_params"
@@ -948,6 +957,13 @@ module CollectionSettings
948957
autoload :VersionRetrieveParams, "stripe/params/v2/billing/collection_settings/version_retrieve_params"
949958
end
950959

960+
module Contracts
961+
module LicensePricing
962+
autoload :QuantityChangeListQuantityChangesParams,
963+
"stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params"
964+
end
965+
end
966+
951967
module Intents
952968
autoload :ActionListParams, "stripe/params/v2/billing/intents/action_list_params"
953969
autoload :ActionRetrieveParams, "stripe/params/v2/billing/intents/action_retrieve_params"
@@ -1209,6 +1225,11 @@ module Reporting
12091225
autoload :ReportRunRetrieveParams, "stripe/params/v2/reporting/report_run_retrieve_params"
12101226
end
12111227

1228+
module Signals
1229+
autoload :AccountSignalListParams, "stripe/params/v2/signals/account_signal_list_params"
1230+
autoload :AccountSignalRetrieveParams, "stripe/params/v2/signals/account_signal_retrieve_params"
1231+
end
1232+
12121233
module Tax
12131234
autoload :ManualRuleCreateParams, "stripe/params/v2/tax/manual_rule_create_params"
12141235
autoload :ManualRuleDeactivateParams, "stripe/params/v2/tax/manual_rule_deactivate_params"
@@ -1390,9 +1411,12 @@ module Stripe
13901411
stripe/params/customer_tax_id_list_params
13911412
stripe/params/customer_tax_id_retrieve_params
13921413
stripe/params/customer_update_params
1414+
stripe/params/delegated_checkout/order_retrieve_params
13931415
stripe/params/delegated_checkout/requested_session_confirm_params
13941416
stripe/params/delegated_checkout/requested_session_create_params
13951417
stripe/params/delegated_checkout/requested_session_expire_params
1418+
stripe/params/delegated_checkout/requested_session_list_orders_params
1419+
stripe/params/delegated_checkout/requested_session_order_list_params
13961420
stripe/params/delegated_checkout/requested_session_retrieve_params
13971421
stripe/params/delegated_checkout/requested_session_update_params
13981422
stripe/params/dispute_close_params
@@ -1972,6 +1996,13 @@ module Stripe
19721996
stripe/params/v2/billing/collection_setting_update_params
19731997
stripe/params/v2/billing/collection_settings/version_list_params
19741998
stripe/params/v2/billing/collection_settings/version_retrieve_params
1999+
stripe/params/v2/billing/contract_activate_params
2000+
stripe/params/v2/billing/contract_cancel_params
2001+
stripe/params/v2/billing/contract_create_params
2002+
stripe/params/v2/billing/contract_list_params
2003+
stripe/params/v2/billing/contract_retrieve_params
2004+
stripe/params/v2/billing/contract_update_params
2005+
stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params
19752006
stripe/params/v2/billing/custom_pricing_unit_create_params
19762007
stripe/params/v2/billing/custom_pricing_unit_list_params
19772008
stripe/params/v2/billing/custom_pricing_unit_retrieve_params
@@ -2203,6 +2234,8 @@ module Stripe
22032234
stripe/params/v2/reporting/report_retrieve_params
22042235
stripe/params/v2/reporting/report_run_create_params
22052236
stripe/params/v2/reporting/report_run_retrieve_params
2237+
stripe/params/v2/signals/account_signal_list_params
2238+
stripe/params/v2/signals/account_signal_retrieve_params
22062239
stripe/params/v2/tax/manual_rule_create_params
22072240
stripe/params/v2/tax/manual_rule_deactivate_params
22082241
stripe/params/v2/tax/manual_rule_list_params

0 commit comments

Comments
 (0)