Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3a1c37d
Update generated code for v2063 and
stripe-openapi[bot] Oct 13, 2025
420b72f
Update generated code for v2066 and
stripe-openapi[bot] Oct 13, 2025
7ab3183
Update generated code for v2074 and
stripe-openapi[bot] Oct 15, 2025
53e57d2
Update generated code for v2076 and
stripe-openapi[bot] Oct 16, 2025
5e2b562
Update generated code for v2077 and
stripe-openapi[bot] Oct 16, 2025
5f10299
Bump version to 17.0.1
helenye-stripe Oct 16, 2025
1b1d607
Merge upstream and update generated code for v2080 and
stripe-openapi[bot] Oct 17, 2025
5f04e15
Update generated code for v2082 and
stripe-openapi[bot] Oct 17, 2025
118875b
Updated Sorbet wiki link in README.md (#1709)
prathmesh-stripe Oct 17, 2025
b3c8d96
Merge upstream and update generated code for v2083 and
stripe-openapi[bot] Oct 17, 2025
c2d554b
Update generated code for v2086 and
stripe-openapi[bot] Oct 17, 2025
0d2a7f4
Update generated code for v2088 and
stripe-openapi[bot] Oct 18, 2025
5322bc6
Update generated code for v2091 and
stripe-openapi[bot] Oct 20, 2025
645a7f2
Update generated code for v2092 and
stripe-openapi[bot] Oct 21, 2025
36a5db6
Update generated code for v2094 and
stripe-openapi[bot] Oct 22, 2025
966c47e
Update generated code for v2095 and
stripe-openapi[bot] Oct 22, 2025
b55872b
Update generated code for v2096 and
stripe-openapi[bot] Oct 22, 2025
8639985
Update generated code for v2099 and
stripe-openapi[bot] Oct 22, 2025
7f3f228
Turn off rubocop format on save (#1711)
helenye-stripe Oct 23, 2025
edafd1a
Merge upstream and update generated code for v2100 and
stripe-openapi[bot] Oct 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

// Rubocop settings
"ruby.rubocop.configFilePath": ".rubocop.yml",
"ruby.rubocop.onSave": true
"ruby.rubocop.onSave": false
}
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-09-30.preview
b2c5026cbcd9404c94b31197152f479d279410a8
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## 17.1.0-beta.1 - 2025-10-09
* Contains a breaking bug fix and other improvements from [v17.0.0](https://github.com/stripe/stripe-ruby/releases/tag/v17.0.0).

## 17.0.1 - 2025-10-16
* [#1705](https://github.com/stripe/stripe-ruby/pull/1705) Require `V2::Amount` and `V2::DeletedObject` in gem

## 17.0.0 - 2025-10-09
* [#1698](https://github.com/stripe/stripe-ruby/pull/1698) Remove expanded instance variables after a resource has been updated
- ⚠️ Removes dynamically added instance variables on subsequent non-expanded updates to a resource that had previously been expanded. For example,
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2028
v2100
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Stripe.enable_telemetry = false
### Types

In [v14.0.0](https://github.com/stripe/stripe-python/releases/tag/v7.1.0) and newer, the library provides RBI
static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations)
static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations-(with-Sorbet))
for an detailed guide.

Please note that these types are available only for static analysis and we only support RBIs at the moment.
Expand Down
3 changes: 0 additions & 3 deletions lib/stripe/event_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def self.v2_event_types_to_classes
Events::V1BillingMeterErrorReportTriggeredEvent.lookup_type =>
Events::V1BillingMeterErrorReportTriggeredEvent,
Events::V1BillingMeterNoMeterFoundEvent.lookup_type => Events::V1BillingMeterNoMeterFoundEvent,
Events::V2BillingBillSettingUpdatedEvent.lookup_type => Events::V2BillingBillSettingUpdatedEvent,
Events::V2CoreAccountClosedEvent.lookup_type => Events::V2CoreAccountClosedEvent,
Events::V2CoreAccountCreatedEvent.lookup_type => Events::V2CoreAccountCreatedEvent,
Events::V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
Expand Down Expand Up @@ -134,8 +133,6 @@ def self.event_notification_types_to_classes
Events::V1BillingMeterErrorReportTriggeredEventNotification,
Events::V1BillingMeterNoMeterFoundEventNotification.lookup_type =>
Events::V1BillingMeterNoMeterFoundEventNotification,
Events::V2BillingBillSettingUpdatedEventNotification.lookup_type =>
Events::V2BillingBillSettingUpdatedEventNotification,
Events::V2CoreAccountClosedEventNotification.lookup_type =>
Events::V2CoreAccountClosedEventNotification,
Events::V2CoreAccountCreatedEventNotification.lookup_type =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def self.lookup_type
"v1.billing.meter.error_report_triggered"
end

class V1BillingMeterErrorReportTriggeredEventData < Stripe::StripeObject
class Reason < Stripe::StripeObject
class ErrorType < Stripe::StripeObject
class SampleError < Stripe::StripeObject
class Request < Stripe::StripeObject
class V1BillingMeterErrorReportTriggeredEventData < ::Stripe::StripeObject
class Reason < ::Stripe::StripeObject
class ErrorType < ::Stripe::StripeObject
class SampleError < ::Stripe::StripeObject
class Request < ::Stripe::StripeObject
# The request idempotency key.
attr_reader :identifier

Expand Down
10 changes: 5 additions & 5 deletions lib/stripe/events/v1_billing_meter_no_meter_found_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ def self.lookup_type
"v1.billing.meter.no_meter_found"
end

class V1BillingMeterNoMeterFoundEventData < Stripe::StripeObject
class Reason < Stripe::StripeObject
class ErrorType < Stripe::StripeObject
class SampleError < Stripe::StripeObject
class Request < Stripe::StripeObject
class V1BillingMeterNoMeterFoundEventData < ::Stripe::StripeObject
class Reason < ::Stripe::StripeObject
class ErrorType < ::Stripe::StripeObject
class SampleError < ::Stripe::StripeObject
class Request < ::Stripe::StripeObject
# The request idempotency key.
attr_reader :identifier

Expand Down
61 changes: 0 additions & 61 deletions lib/stripe/events/v2_billing_bill_setting_updated_event.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account[configuration.customer].capability_status_updated"
end

class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData < Stripe::StripeObject
class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
# Open Enum. The capability which had its status updated.
attr_reader :updated_capability

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account[configuration.merchant].capability_status_updated"
end

class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData < Stripe::StripeObject
class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
# Open Enum. The capability which had its status updated.
attr_reader :updated_capability

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account[configuration.recipient].capability_status_updated"
end

class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData < Stripe::StripeObject
class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
# Open Enum. The capability which had its status updated.
attr_reader :updated_capability

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account[configuration.storer].capability_status_updated"
end

class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData < Stripe::StripeObject
class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventData < ::Stripe::StripeObject
# Open Enum. The capability which had its status updated.
attr_reader :updated_capability

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/events/v2_core_account_link_returned_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account_link.returned"
end

class V2CoreAccountLinkReturnedEventData < Stripe::StripeObject
class V2CoreAccountLinkReturnedEventData < ::Stripe::StripeObject
# Open Enum. The use case type of the account link that has been completed.
attr_reader :use_case
# The ID of the v2 account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account_person.created"
end

class V2CoreAccountPersonCreatedEventData < Stripe::StripeObject
class V2CoreAccountPersonCreatedEventData < ::Stripe::StripeObject
# The ID of the v2 account.
attr_reader :account_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account_person.deleted"
end

class V2CoreAccountPersonDeletedEventData < Stripe::StripeObject
class V2CoreAccountPersonDeletedEventData < ::Stripe::StripeObject
# The ID of the v2 account.
attr_reader :account_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.core.account_person.updated"
end

class V2CoreAccountPersonUpdatedEventData < Stripe::StripeObject
class V2CoreAccountPersonUpdatedEventData < ::Stripe::StripeObject
# The ID of the v2 account.
attr_reader :account_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.money_management.inbound_transfer.available"
end

class V2MoneyManagementInboundTransferAvailableEventData < Stripe::StripeObject
class V2MoneyManagementInboundTransferAvailableEventData < ::Stripe::StripeObject
# The transaction ID of the received credit.
attr_reader :transaction_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def self.lookup_type
"v2.money_management.received_credit.available"
end

class V2MoneyManagementReceivedCreditAvailableEventData < Stripe::StripeObject
class V2MoneyManagementReceivedCreditAvailableEventData < ::Stripe::StripeObject
# The transaction ID of the received credit.
attr_reader :transaction_id

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ def self.lookup_type
"v2.money_management.transaction.created"
end

class V2MoneyManagementTransactionCreatedEventData < ::Stripe::StripeObject
# Id of the v1 Transaction corresponding to this Transaction.
attr_reader :v1_id

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

def self.inner_class_types
@inner_class_types = { data: V2MoneyManagementTransactionCreatedEventData }
end
attr_reader :data, :related_object

# Retrieves the related object from the API. Makes an API request on every call.
def fetch_related_object
_request(
Expand All @@ -18,7 +36,6 @@ def fetch_related_object
opts: { stripe_context: context }
)
end
attr_reader :related_object
end

# Occurs when a Transaction is created.
Expand Down
6 changes: 6 additions & 0 deletions lib/stripe/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@
require "stripe/params/payment_record_report_payment_attempt_informational_params"
require "stripe/params/payment_record_report_payment_attempt_params"
require "stripe/params/payment_record_report_payment_params"
require "stripe/params/payment_record_report_refund_params"
require "stripe/params/payment_record_retrieve_params"
require "stripe/params/payout_cancel_params"
require "stripe/params/payout_create_params"
Expand Down Expand Up @@ -698,17 +699,22 @@
require "stripe/params/v2/core/vault/gb_bank_account_archive_params"
require "stripe/params/v2/core/vault/gb_bank_account_create_params"
require "stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params"
require "stripe/params/v2/core/vault/gb_bank_account_list_params"
require "stripe/params/v2/core/vault/gb_bank_account_retrieve_params"
require "stripe/params/v2/core/vault/us_bank_account_archive_params"
require "stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params"
require "stripe/params/v2/core/vault/us_bank_account_create_params"
require "stripe/params/v2/core/vault/us_bank_account_list_params"
require "stripe/params/v2/core/vault/us_bank_account_retrieve_params"
require "stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params"
require "stripe/params/v2/core/vault/us_bank_account_update_params"
require "stripe/params/v2/money_management/adjustment_list_params"
require "stripe/params/v2/money_management/adjustment_retrieve_params"
require "stripe/params/v2/money_management/financial_account_close_params"
require "stripe/params/v2/money_management/financial_account_create_params"
require "stripe/params/v2/money_management/financial_account_list_params"
require "stripe/params/v2/money_management/financial_account_retrieve_params"
require "stripe/params/v2/money_management/financial_account_update_params"
require "stripe/params/v2/money_management/financial_address_create_params"
require "stripe/params/v2/money_management/financial_address_list_params"
require "stripe/params/v2/money_management/financial_address_retrieve_params"
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/params/account_capability_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

module Stripe
class AccountCapabilityListParams < Stripe::RequestParams
class AccountCapabilityListParams < ::Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/params/account_capability_retrieve_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

module Stripe
class AccountCapabilityRetrieveParams < Stripe::RequestParams
class AccountCapabilityRetrieveParams < ::Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand

Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/params/account_capability_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

module Stripe
class AccountCapabilityUpdateParams < Stripe::RequestParams
class AccountCapabilityUpdateParams < ::Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays.
Expand Down
Loading
Loading