stripe 15.4.0.pre.beta.1 → 15.4.0.pre.beta.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d4c52518034d7e848630739fbe09f7afb095d2d8cf74969d9b2dd28f5a51677
4
- data.tar.gz: 76740593a8056a1cb78ccfd9f4e18adbade2e2b09b660161eccbb43cd5ade784
3
+ metadata.gz: 19ae208dad5f548afd7f38e69e5f361899ea405cd3e123f6b1ecf4881f43610e
4
+ data.tar.gz: cb76df3bf646482f7dbed488b00d84023221622846430a94c717a505ba150157
5
5
  SHA512:
6
- metadata.gz: 5df4535cc192bb850ea2e332934e9985c7b0e9d88d08937e616f3f42e8546539e15ea312f291dcb460640f9edc2d2f63291a68ea76e7a0ccd029c71332c668b5
7
- data.tar.gz: d5a5e828ef120fbaa21ff623b79e92292c5d1ac526e284235ad3563c61554e30b984c2f47a3f831b27c94296198e53c0e0db98ec93f88cedb4ecd5217becd917
6
+ metadata.gz: bb6df5e8436d28255e89f2cc2fc0e4ef83084fa7cb7058cbcfeff64f79b01634b9fedd4dca086ef19041fd3aee63a62477de340627be8f20efd88ef7bc0e8f22
7
+ data.tar.gz: fcf2622b9071e3ffcb6e4c338c9aed653beb921121ad9a8ce2e39cf73eaee6e9bf86aba5e733b51405231c658b11fd6f03528cc95dc80842939cf5479721b44d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.4.0-beta.2 - 2025-07-09
4
+ * [#1625](https://github.com/stripe/stripe-ruby/pull/1625) Pull in V2 FinancialAccount changes for June release
5
+ * Add support for `close` and `create` methods on resource `V2::MoneyManagement::FinancialAccount`
6
+ * Add support for `storer` on `V2::Core::Account::Configuration`, `V2::Core::Account::CreateParams::Configuration`, and `V2::Core::Account::UpdateParams::Configuration`
7
+ * Add support for `status_details` on `V2::MoneyManagement::FinancialAccount`
8
+ * Add support for `status` on `V2::MoneyManagement::FinancialAccount::ListParams`
9
+ * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2::Core::Account`
10
+ * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError`
11
+
3
12
  ## 15.4.0-beta.1 - 2025-07-01
4
13
  * [#1607](https://github.com/stripe/stripe-ruby/pull/1607) Update generated code for beta
5
14
  * Change type of `Checkout::Session::CreateParams::SubscriptionDatum.billing_mode`, `Invoice::CreatePreviewParams::ScheduleDetail.billing_mode`, `Invoice::CreatePreviewParams::SubscriptionDetail.billing_mode`, `Quote::CreateParams::SubscriptionDatum.billing_mode`, `Quote::SubscriptionDatum.billing_mode`, `Subscription::CreateParams.billing_mode`, and `SubscriptionSchedule::CreateParams.billing_mode` from `enum('classic'|'flexible')` to `billing_mode`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 15.4.0-beta.1
1
+ 15.4.0-beta.2
@@ -852,10 +852,14 @@ module Stripe
852
852
  # switch cases: The beginning of the section generated from our OpenAPI spec
853
853
  when "temporary_session_expired"
854
854
  TemporarySessionExpiredError.new(error_data[:message], **opts)
855
- when "financial_account_not_open"
856
- FinancialAccountNotOpenError.new(error_data[:message], **opts)
855
+ when "non_zero_balance"
856
+ NonZeroBalanceError.new(error_data[:message], **opts)
857
+ when "already_exists"
858
+ AlreadyExistsError.new(error_data[:message], **opts)
857
859
  when "feature_not_enabled"
858
860
  FeatureNotEnabledError.new(error_data[:message], **opts)
861
+ when "financial_account_not_open"
862
+ FinancialAccountNotOpenError.new(error_data[:message], **opts)
859
863
  when "blocked_by_stripe"
860
864
  BlockedByStripeError.new(error_data[:message], **opts)
861
865
  when "already_canceled"
data/lib/stripe/errors.rb CHANGED
@@ -165,12 +165,18 @@ module Stripe
165
165
  class TemporarySessionExpiredError < StripeError
166
166
  end
167
167
 
168
- class FinancialAccountNotOpenError < StripeError
168
+ class NonZeroBalanceError < StripeError
169
+ end
170
+
171
+ class AlreadyExistsError < StripeError
169
172
  end
170
173
 
171
174
  class FeatureNotEnabledError < StripeError
172
175
  end
173
176
 
177
+ class FinancialAccountNotOpenError < StripeError
178
+ end
179
+
174
180
  class BlockedByStripeError < StripeError
175
181
  end
176
182
 
@@ -21,6 +21,10 @@ module Stripe
21
21
  V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,
22
22
  V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.lookup_type =>
23
23
  V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,
24
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.lookup_type =>
25
+ V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent,
26
+ V2CoreAccountIncludingConfigurationStorerUpdatedEvent.lookup_type =>
27
+ V2CoreAccountIncludingConfigurationStorerUpdatedEvent,
24
28
  V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
25
29
  V2CoreAccountIncludingDefaultsUpdatedEvent,
26
30
  V2CoreAccountIncludingIdentityUpdatedEvent.lookup_type =>
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when the status of an Account's storer configuration capability is updated.
6
+ class V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account[configuration.storer].capability_status_updated"
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 Storer's configuration is updated.
6
+ class V2CoreAccountIncludingConfigurationStorerUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account[configuration.storer].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
@@ -1079,12 +1079,176 @@ module Stripe
1079
1079
  # The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard.
1080
1080
  attr_reader :default_outbound_destination
1081
1081
  end
1082
+
1083
+ class Storer < Stripe::StripeObject
1084
+ class Capabilities < Stripe::StripeObject
1085
+ class FinancialAddresses < Stripe::StripeObject
1086
+ class BankAccounts < Stripe::StripeObject
1087
+ class StatusDetail < Stripe::StripeObject
1088
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1089
+ attr_reader :code
1090
+ # Machine-readable code explaining how to make the Capability active.
1091
+ attr_reader :resolution
1092
+ end
1093
+ # Whether the Capability has been requested.
1094
+ attr_reader :requested
1095
+ # The status of the Capability.
1096
+ attr_reader :status
1097
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1098
+ attr_reader :status_details
1099
+ end
1100
+ # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount.
1101
+ attr_reader :bank_accounts
1102
+ end
1103
+
1104
+ class HoldsCurrencies < Stripe::StripeObject
1105
+ class Gbp < Stripe::StripeObject
1106
+ class StatusDetail < Stripe::StripeObject
1107
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1108
+ attr_reader :code
1109
+ # Machine-readable code explaining how to make the Capability active.
1110
+ attr_reader :resolution
1111
+ end
1112
+ # Whether the Capability has been requested.
1113
+ attr_reader :requested
1114
+ # The status of the Capability.
1115
+ attr_reader :status
1116
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1117
+ attr_reader :status_details
1118
+ end
1119
+ # Can hold storage-type funds on Stripe in GBP.
1120
+ attr_reader :gbp
1121
+ end
1122
+
1123
+ class InboundTransfers < Stripe::StripeObject
1124
+ class BankAccounts < Stripe::StripeObject
1125
+ class StatusDetail < Stripe::StripeObject
1126
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1127
+ attr_reader :code
1128
+ # Machine-readable code explaining how to make the Capability active.
1129
+ attr_reader :resolution
1130
+ end
1131
+ # Whether the Capability has been requested.
1132
+ attr_reader :requested
1133
+ # The status of the Capability.
1134
+ attr_reader :status
1135
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1136
+ attr_reader :status_details
1137
+ end
1138
+ # Can pull funds from an external bank account, owned by yourself, to a FinancialAccount.
1139
+ attr_reader :bank_accounts
1140
+ end
1141
+
1142
+ class OutboundPayments < Stripe::StripeObject
1143
+ class BankAccounts < Stripe::StripeObject
1144
+ class StatusDetail < Stripe::StripeObject
1145
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1146
+ attr_reader :code
1147
+ # Machine-readable code explaining how to make the Capability active.
1148
+ attr_reader :resolution
1149
+ end
1150
+ # Whether the Capability has been requested.
1151
+ attr_reader :requested
1152
+ # The status of the Capability.
1153
+ attr_reader :status
1154
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1155
+ attr_reader :status_details
1156
+ end
1157
+
1158
+ class Cards < Stripe::StripeObject
1159
+ class StatusDetail < Stripe::StripeObject
1160
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1161
+ attr_reader :code
1162
+ # Machine-readable code explaining how to make the Capability active.
1163
+ attr_reader :resolution
1164
+ end
1165
+ # Whether the Capability has been requested.
1166
+ attr_reader :requested
1167
+ # The status of the Capability.
1168
+ attr_reader :status
1169
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1170
+ attr_reader :status_details
1171
+ end
1172
+
1173
+ class FinancialAccounts < Stripe::StripeObject
1174
+ class StatusDetail < Stripe::StripeObject
1175
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1176
+ attr_reader :code
1177
+ # Machine-readable code explaining how to make the Capability active.
1178
+ attr_reader :resolution
1179
+ end
1180
+ # Whether the Capability has been requested.
1181
+ attr_reader :requested
1182
+ # The status of the Capability.
1183
+ attr_reader :status
1184
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1185
+ attr_reader :status_details
1186
+ end
1187
+ # Can send funds from a FinancialAccount to a bank account, owned by someone else.
1188
+ attr_reader :bank_accounts
1189
+ # Can send funds from a FinancialAccount to a debit card, owned by someone else.
1190
+ attr_reader :cards
1191
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else.
1192
+ attr_reader :financial_accounts
1193
+ end
1194
+
1195
+ class OutboundTransfers < Stripe::StripeObject
1196
+ class BankAccounts < Stripe::StripeObject
1197
+ class StatusDetail < Stripe::StripeObject
1198
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1199
+ attr_reader :code
1200
+ # Machine-readable code explaining how to make the Capability active.
1201
+ attr_reader :resolution
1202
+ end
1203
+ # Whether the Capability has been requested.
1204
+ attr_reader :requested
1205
+ # The status of the Capability.
1206
+ attr_reader :status
1207
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1208
+ attr_reader :status_details
1209
+ end
1210
+
1211
+ class FinancialAccounts < Stripe::StripeObject
1212
+ class StatusDetail < Stripe::StripeObject
1213
+ # Machine-readable code explaining the reason for the Capability to be in its current status.
1214
+ attr_reader :code
1215
+ # Machine-readable code explaining how to make the Capability active.
1216
+ attr_reader :resolution
1217
+ end
1218
+ # Whether the Capability has been requested.
1219
+ attr_reader :requested
1220
+ # The status of the Capability.
1221
+ attr_reader :status
1222
+ # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`.
1223
+ attr_reader :status_details
1224
+ end
1225
+ # Can send funds from a FinancialAccount, to a bank account, owned by yourself.
1226
+ attr_reader :bank_accounts
1227
+ # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself.
1228
+ attr_reader :financial_accounts
1229
+ end
1230
+ # Can provision a financial address to credit/debit a FinancialAccount.
1231
+ attr_reader :financial_addresses
1232
+ # Can hold storage-type funds on Stripe.
1233
+ attr_reader :holds_currencies
1234
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1235
+ attr_reader :inbound_transfers
1236
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1237
+ attr_reader :outbound_payments
1238
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1239
+ attr_reader :outbound_transfers
1240
+ end
1241
+ # Capabilities that have been requested on the Storer Configuration.
1242
+ attr_reader :capabilities
1243
+ end
1082
1244
  # The Customer Configuration allows the Account to be used in inbound payment flows.
1083
1245
  attr_reader :customer
1084
1246
  # The Merchant configuration allows the Account to act as a connected account and collect payments facilitated by a Connect platform. You can add this configuration to your connected accounts only if you’ve completed onboarding as a Connect platform.
1085
1247
  attr_reader :merchant
1086
1248
  # The Recipient Configuration allows the Account to receive funds.
1087
1249
  attr_reader :recipient
1250
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1251
+ attr_reader :storer
1088
1252
  end
1089
1253
 
1090
1254
  class Defaults < Stripe::StripeObject
@@ -25,6 +25,23 @@ module Stripe
25
25
  attr_reader :type
26
26
  end
27
27
 
28
+ class StatusDetails < Stripe::StripeObject
29
+ class Closed < Stripe::StripeObject
30
+ class ForwardingSettings < Stripe::StripeObject
31
+ # The address to send forwarded payments to.
32
+ attr_reader :payment_method
33
+ # The address to send forwarded payouts to.
34
+ attr_reader :payout_method
35
+ end
36
+ # Attribute for field forwarding_settings
37
+ attr_reader :forwarding_settings
38
+ # Attribute for field reason
39
+ attr_reader :reason
40
+ end
41
+ # Attribute for field closed
42
+ attr_reader :closed
43
+ end
44
+
28
45
  class Storage < Stripe::StripeObject
29
46
  # The currencies that this FinancialAccount can hold.
30
47
  attr_reader :holds_currencies
@@ -45,6 +62,8 @@ module Stripe
45
62
  attr_reader :other
46
63
  # Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
47
64
  attr_reader :status
65
+ # Attribute for field status_details
66
+ attr_reader :status_details
48
67
  # If this is a `storage` FinancialAccount, this hash includes details specific to `storage` FinancialAccounts.
49
68
  attr_reader :storage
50
69
  # Type of the FinancialAccount. An additional hash is included on the FinancialAccount with a name matching this value.
@@ -200,6 +200,8 @@ require "stripe/events/v2_core_account_including_configuration_merchant_capabili
200
200
  require "stripe/events/v2_core_account_including_configuration_merchant_updated_event"
201
201
  require "stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event"
202
202
  require "stripe/events/v2_core_account_including_configuration_recipient_updated_event"
203
+ require "stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event"
204
+ require "stripe/events/v2_core_account_including_configuration_storer_updated_event"
203
205
  require "stripe/events/v2_core_account_including_defaults_updated_event"
204
206
  require "stripe/events/v2_core_account_including_identity_updated_event"
205
207
  require "stripe/events/v2_core_account_including_requirements_updated_event"