stripe 15.4.0.pre.beta.2 → 15.5.0.pre.beta.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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +61 -5
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +1 -1
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +2 -2
  9. data/lib/stripe/events/{v2_core_account_link_completed_event.rb → v2_core_account_link_returned_event.rb} +2 -2
  10. data/lib/stripe/events/{v2_off_session_payment_requires_capture_event.rb → v2_money_management_payout_method_updated_event.rb} +3 -3
  11. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +1 -1
  12. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -1
  13. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +1 -1
  14. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +1 -1
  15. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +1 -1
  16. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +1 -1
  17. data/lib/stripe/object_types.rb +3 -0
  18. data/lib/stripe/resources/account.rb +5 -5
  19. data/lib/stripe/resources/account_link.rb +3 -1
  20. data/lib/stripe/resources/account_session.rb +51 -0
  21. data/lib/stripe/resources/balance_settings.rb +13 -13
  22. data/lib/stripe/resources/billing/credit_grant.rb +1 -1
  23. data/lib/stripe/resources/billing/meter_usage.rb +23 -0
  24. data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
  25. data/lib/stripe/resources/billing_portal/configuration.rb +46 -2
  26. data/lib/stripe/resources/charge.rb +7 -5
  27. data/lib/stripe/resources/checkout/session.rb +106 -6
  28. data/lib/stripe/resources/confirmation_token.rb +3 -3
  29. data/lib/stripe/resources/customer.rb +1 -1
  30. data/lib/stripe/resources/dispute.rb +10 -1
  31. data/lib/stripe/resources/event.rb +14 -26
  32. data/lib/stripe/resources/fx_quote.rb +6 -4
  33. data/lib/stripe/resources/invoice.rb +101 -8
  34. data/lib/stripe/resources/invoice_item.rb +1 -1
  35. data/lib/stripe/resources/payment_attempt_record.rb +6 -4
  36. data/lib/stripe/resources/payment_intent.rb +815 -4
  37. data/lib/stripe/resources/payment_link.rb +83 -5
  38. data/lib/stripe/resources/payment_method.rb +4 -4
  39. data/lib/stripe/resources/payment_record.rb +6 -4
  40. data/lib/stripe/resources/quote.rb +1 -1
  41. data/lib/stripe/resources/quote_preview_invoice.rb +17 -0
  42. data/lib/stripe/resources/radar/value_list.rb +2 -2
  43. data/lib/stripe/resources/refund.rb +1 -1
  44. data/lib/stripe/resources/review.rb +2 -2
  45. data/lib/stripe/resources/setup_attempt.rb +1 -1
  46. data/lib/stripe/resources/subscription.rb +79 -2
  47. data/lib/stripe/resources/subscription_item.rb +2 -2
  48. data/lib/stripe/resources/subscription_schedule.rb +35 -3
  49. data/lib/stripe/resources/tax/registration.rb +408 -30
  50. data/lib/stripe/resources/terminal/configuration.rb +196 -0
  51. data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
  52. data/lib/stripe/resources/v2/core/account.rb +11 -0
  53. data/lib/stripe/resources/v2/core/account_link.rb +18 -2
  54. data/lib/stripe/resources/v2/money_management/payout_method.rb +2 -0
  55. data/lib/stripe/resources/v2/payments/off_session_payment.rb +40 -23
  56. data/lib/stripe/resources.rb +5 -2
  57. data/lib/stripe/services/account_link_service.rb +3 -1
  58. data/lib/stripe/services/account_service.rb +3 -3
  59. data/lib/stripe/services/account_session_service.rb +34 -0
  60. data/lib/stripe/services/balance_settings_service.rb +10 -10
  61. data/lib/stripe/services/billing/credit_grant_service.rb +1 -1
  62. data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
  63. data/lib/stripe/services/billing_portal/configuration_service.rb +36 -2
  64. data/lib/stripe/services/billing_service.rb +2 -1
  65. data/lib/stripe/services/checkout/session_service.rb +93 -5
  66. data/lib/stripe/services/invoice_item_service.rb +1 -1
  67. data/lib/stripe/services/invoice_service.rb +84 -8
  68. data/lib/stripe/services/payment_intent_service.rb +809 -3
  69. data/lib/stripe/services/payment_link_service.rb +81 -5
  70. data/lib/stripe/services/payment_method_service.rb +1 -1
  71. data/lib/stripe/services/quote_service.rb +1 -1
  72. data/lib/stripe/services/radar/value_list_service.rb +1 -1
  73. data/lib/stripe/services/subscription_item_service.rb +2 -2
  74. data/lib/stripe/services/subscription_schedule_service.rb +35 -3
  75. data/lib/stripe/services/subscription_service.rb +62 -2
  76. data/lib/stripe/services/tax/registration_service.rb +360 -30
  77. data/lib/stripe/services/terminal/configuration_service.rb +152 -0
  78. data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
  79. data/lib/stripe/services/terminal_service.rb +2 -1
  80. data/lib/stripe/services/v2/core/account_link_service.rb +41 -3
  81. data/lib/stripe/services/v2/core/account_service.rb +38 -2
  82. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +34 -19
  83. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +4 -0
  84. data/lib/stripe/services.rb +2 -0
  85. data/lib/stripe/version.rb +1 -1
  86. data/rbi/stripe.rbi +4893 -390
  87. metadata +9 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19ae208dad5f548afd7f38e69e5f361899ea405cd3e123f6b1ecf4881f43610e
4
- data.tar.gz: cb76df3bf646482f7dbed488b00d84023221622846430a94c717a505ba150157
3
+ metadata.gz: 535c3651b7c080eb5b57d36126a998aa714502f3e1920d1f66c38a6a53e8ef83
4
+ data.tar.gz: 3360d292e8d2950852390e89d3992948b42b071f75628c666f3b5dc860627860
5
5
  SHA512:
6
- metadata.gz: bb6df5e8436d28255e89f2cc2fc0e4ef83084fa7cb7058cbcfeff64f79b01634b9fedd4dca086ef19041fd3aee63a62477de340627be8f20efd88ef7bc0e8f22
7
- data.tar.gz: fcf2622b9071e3ffcb6e4c338c9aed653beb921121ad9a8ce2e39cf73eaee6e9bf86aba5e733b51405231c658b11fd6f03528cc95dc80842939cf5479721b44d
6
+ metadata.gz: 5d86ce4de653b4e2dd456cedc1ee2a6a1a580dfa7beccfa042d2e44e993589112fe4cc3b3b97cb81f07434817bd172dca5339e7eef4e50b309b0e17df9cfa27d
7
+ data.tar.gz: 85ee74626f17f755dfd3052634a25e64aeac05eab1c36c5c82cc12b08094273761d99f77b6c782bb90d4baef2b5e24fc8519b40bf08acc13b98ba6ef7c37bfed
data/API_VERSION CHANGED
@@ -1 +1 @@
1
- 2025-06-30.preview
1
+ 2025-07-30.preview
data/CHANGELOG.md CHANGED
@@ -1,15 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.5.0-beta.1 - 2025-07-30
4
+ This release changes the pinned API version to `2025-07-30.preview`.
5
+
6
+ * [#1624](https://github.com/stripe/stripe-ruby/pull/1624) Update generated code for beta
7
+ * Add support for new resources `Billing::MeterUsageRow`, `Billing::MeterUsage`, and `Terminal::OnboardingLink`
8
+ * Add support for `retrieve` method on resource `Billing::MeterUsage`
9
+ * Add support for `create` method on resource `Terminal::OnboardingLink`
10
+ * Add support for `monthly_payout_days` and `weekly_payout_days` on `BalanceSettings::Payout::Schedule` and `BalanceSettings::UpdateParams::Payout::Schedule`
11
+ * Remove support for `monthly_anchor` and `weekly_anchor` on `BalanceSettings::Payout::Schedule` and `BalanceSettings::UpdateParams::Payout::Schedule`
12
+ * Add support for `delay_days_override` on `BalanceSettings::UpdateParams::SettlementTiming`
13
+ * Remove support for `delay_days` on `BalanceSettings::UpdateParams::SettlementTiming`
14
+ * Add support for `update_discounts` on `Checkout::Session::CreateParams::Permission`
15
+ * Add support for `discounts` and `subscription_data` on `Checkout::Session::UpdateParams`
16
+ * Add support for `smart_disputes` on `Dispute`
17
+ * Add support for `upi` on `Invoice::CreateParams::PaymentSetting::PaymentMethodOption`, `Invoice::PaymentSetting::PaymentMethodOption`, `Invoice::UpdateParams::PaymentSetting::PaymentMethodOption`, `QuotePreviewInvoice::PaymentSetting::PaymentMethodOption`, `Subscription::CreateParams::PaymentSetting::PaymentMethodOption`, `Subscription::PaymentSetting::PaymentMethodOption`, and `Subscription::UpdateParams::PaymentSetting::PaymentMethodOption`
18
+ * Add support for `transaction_id` on `PaymentAttemptRecord::PaymentMethodDetail::Cashapp` and `PaymentRecord::PaymentMethodDetail::Cashapp`
19
+ * Add support for `amount_details` on `PaymentIntent::CaptureParams`, `PaymentIntent::ConfirmParams`, `PaymentIntent::CreateParams`, `PaymentIntent::IncrementAuthorizationParams`, and `PaymentIntent::UpdateParams`
20
+ * Add support for `payment_details` on `PaymentIntent::IncrementAuthorizationParams`
21
+ * Add support for `storer` on `V2::Core::Account::CreateParams::Identity::Attestation::TermsOfService`, `V2::Core::Account::Identity::Attestation::TermsOfService`, and `V2::Core::Account::UpdateParams::Identity::Attestation::TermsOfService`
22
+ * Add support for `collection_options` on `V2::Core::AccountLink::CreateParams::UseCase::AccountOnboarding`, `V2::Core::AccountLink::CreateParams::UseCase::AccountUpdate`, `V2::Core::AccountLink::UseCase::AccountOnboarding`, and `V2::Core::AccountLink::UseCase::AccountUpdate`
23
+ * Change type of `V2::Core::AccountLink::CreateParams::UseCase::AccountOnboarding.configurations`, `V2::Core::AccountLink::CreateParams::UseCase::AccountUpdate.configurations`, `V2::Core::AccountLink::UseCase::AccountOnboarding.configurations`, and `V2::Core::AccountLink::UseCase::AccountUpdate.configurations` from `literal('recipient')` to `enum('customer'|'merchant'|'recipient'|'storer')`
24
+ * Add support for `bank_account_type` on `V2::MoneyManagement::PayoutMethod::BankAccount`
25
+ * Add support for thin event `V2CoreAccountLinkReturnedEvent`
26
+ * Add support for thin event `V2MoneyManagementPayoutMethodUpdatedEvent` with related object `V2::MoneyManagement::PayoutMethod`
27
+ * Remove support for thin event `V2CoreAccountLinkCompletedEvent`
28
+ * Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `V2::Payments::OffSessionPayment`
29
+
3
30
  ## 15.4.0-beta.2 - 2025-07-09
4
31
  * [#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`
32
+ * Add support for `close` and `create` methods on resource `V2::MoneyManagement::FinancialAccount`
33
+ * Add support for `storer` on `V2::Core::Account::Configuration`, `V2::Core::Account::CreateParams::Configuration`, and `V2::Core::Account::UpdateParams::Configuration`
34
+ * Add support for `status_details` on `V2::MoneyManagement::FinancialAccount`
35
+ * Add support for `status` on `V2::MoneyManagement::FinancialAccount::ListParams`
36
+ * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2::Core::Account`
10
37
  * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError`
11
38
 
12
39
  ## 15.4.0-beta.1 - 2025-07-01
40
+ This release changes the pinned API version to `2025-06-30.preview`.
41
+
13
42
  * [#1607](https://github.com/stripe/stripe-ruby/pull/1607) Update generated code for beta
14
43
  * 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`
15
44
  * Add support for `submission_method` on `Dispute::EvidenceDetail`
@@ -31,6 +60,33 @@
31
60
  * Change type of `V2::MoneyManagement::ReceivedCredit::BalanceTransfer.payout_v1` from `string` to `nullable(string)`
32
61
  * Change `V2::Payments::OffSessionPayment::CreateParams::TransferDatum.amount` to be optional
33
62
 
63
+ ## 15.3.0 - 2025-07-01
64
+ * [#1618](https://github.com/stripe/stripe-ruby/pull/1618) Update generated code
65
+ * Add support for `migrate` method on resource `Subscription`
66
+ * Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal::Reader`
67
+ * Add support for `crypto_payments` on `Account::Capability`, `Account::CreateParams::Capability`, and `Account::UpdateParams::Capability`
68
+ * Add support for `proof_of_address` on `Account::CreateParams::Document` and `Account::UpdateParams::Document`
69
+ * Add support for `monthly_payout_days` and `weekly_payout_days` on `Account::CreateParams::Setting::Payout::Schedule`, `Account::Setting::Payout::Schedule`, and `Account::UpdateParams::Setting::Payout::Schedule`
70
+ * Change `Account::Setting::Invoice.hosted_payment_method_save` to be required
71
+ * Add support for `crypto` on `Charge::PaymentMethodDetail`, `ConfirmationToken::CreateParams::PaymentMethodDatum`, `ConfirmationToken::PaymentMethodPreview`, `PaymentIntent::ConfirmParams::PaymentMethodDatum`, `PaymentIntent::ConfirmParams::PaymentMethodOption`, `PaymentIntent::CreateParams::PaymentMethodDatum`, `PaymentIntent::CreateParams::PaymentMethodOption`, `PaymentIntent::PaymentMethodOption`, `PaymentIntent::UpdateParams::PaymentMethodDatum`, `PaymentIntent::UpdateParams::PaymentMethodOption`, `PaymentMethod::CreateParams`, `PaymentMethod`, `SetupIntent::ConfirmParams::PaymentMethodDatum`, `SetupIntent::CreateParams::PaymentMethodDatum`, and `SetupIntent::UpdateParams::PaymentMethodDatum`
72
+ * Change type of `Charge::PaymentMethodDetail::Card::Installment::Plan.type`, `ConfirmationToken::CreateParams::PaymentMethodOption::Card::Installment::Plan.type`, `ConfirmationToken::PaymentMethodOption::Card::Installment::Plan.type`, `Invoice::CreateParams::PaymentSetting::PaymentMethodOption::Card::Installment::Plan.type`, `Invoice::UpdateParams::PaymentSetting::PaymentMethodOption::Card::Installment::Plan.type`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Card::Installment::Plan.type`, `PaymentIntent::CreateParams::PaymentMethodOption::Card::Installment::Plan.type`, `PaymentIntent::PaymentMethodOption::Card::Installment::AvailablePlan.type`, `PaymentIntent::PaymentMethodOption::Card::Installment::Plan.type`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Card::Installment::Plan.type` from `literal('fixed_count')` to `enum('bonus'|'fixed_count'|'revolving')`
73
+ * Add support for `subscriptions` on `Checkout::Session::CreateParams::PaymentMethodOption::Klarna`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Klarna`, `PaymentIntent::CreateParams::PaymentMethodOption::Klarna`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Klarna`
74
+ * Add support for `billing_mode` on `Checkout::Session::CreateParams::SubscriptionDatum`, `Invoice::CreatePreviewParams::ScheduleDetail`, `Invoice::CreatePreviewParams::SubscriptionDetail`, `Quote::CreateParams::SubscriptionDatum`, `Quote::SubscriptionDatum`, `Subscription::CreateParams`, `SubscriptionSchedule::CreateParams`, `SubscriptionSchedule`, and `Subscription`
75
+ * Change type of `Dispute.enhanced_eligibility_types` from `literal('visa_compelling_evidence_3')` to `enum('visa_compelling_evidence_3'|'visa_compliance')`
76
+ * Add support for `related_person` on `Identity::VerificationSession::CreateParams` and `Identity::VerificationSession`
77
+ * Add support for `matching` on `Identity::VerificationSession::Option`
78
+ * Add support for `klarna` on `Mandate::PaymentMethodDetail`, `SetupIntent::ConfirmParams::PaymentMethodOption`, `SetupIntent::CreateParams::PaymentMethodOption`, `SetupIntent::PaymentMethodOption`, and `SetupIntent::UpdateParams::PaymentMethodOption`
79
+ * Add support for `on_demand` on `PaymentIntent::ConfirmParams::PaymentMethodOption::Klarna`, `PaymentIntent::CreateParams::PaymentMethodOption::Klarna`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Klarna`
80
+ * Change type of `PaymentIntent::ConfirmParams::PaymentMethodOption::Klarna.setup_future_usage`, `PaymentIntent::CreateParams::PaymentMethodOption::Klarna.setup_future_usage`, `PaymentIntent::PaymentMethodOption::Klarna.setup_future_usage`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')`
81
+ * Add support for `ua` on `Tax::Registration::CountryOption` and `Tax::Registration::CreateParams::CountryOption`
82
+ * Change type of `Terminal::Location::UpdateParams.display_name` from `string` to `emptyable(string)`
83
+ * Add support for `collect_payment_method` and `confirm_payment_intent` on `Terminal::Reader::Action`
84
+ * Add support for `status` on `Treasury::FinancialAccount::ListParams`
85
+ * [#1615](https://github.com/stripe/stripe-ruby/pull/1615) Update README to mention that APIResource.request was removed
86
+ * [#1619](https://github.com/stripe/stripe-ruby/pull/1619) Updated StripeClient snippets in README
87
+ * [#1621](https://github.com/stripe/stripe-ruby/pull/1621) Disable flaky test in jruby/truffleruby
88
+ * [#1620](https://github.com/stripe/stripe-ruby/pull/1620) Fix `raw_request` example in README
89
+
34
90
  ## 15.3.0-beta.2 - 2025-06-26
35
91
  * [#1623](https://github.com/stripe/stripe-ruby/pull/1623) Pull in OffSessionPayment changes for the May release
36
92
 
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1819
1
+ v1868
data/README.md CHANGED
@@ -347,7 +347,7 @@ If you:
347
347
 
348
348
  - would like to send a request to an undocumented API (for example you are in a private beta)
349
349
  - prefer to bypass the method definitions in the library and specify your request details directly,
350
- - used the method `Stripe::APIResource.request(...)` to specify your own requests, which will soon be broken
350
+ - used the method `Stripe::APIResource.request(...)` to specify your own requests, which was removed in v13+
351
351
 
352
352
  you can now use the `raw_request` method on `StripeClient`.
353
353
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 15.4.0-beta.2
1
+ 15.5.0-beta.1
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2025-06-30.preview"
6
+ CURRENT = "2025-07-30.preview"
7
7
  end
8
8
  end
@@ -31,7 +31,7 @@ module Stripe
31
31
  V2CoreAccountIncludingIdentityUpdatedEvent,
32
32
  V2CoreAccountIncludingRequirementsUpdatedEvent.lookup_type =>
33
33
  V2CoreAccountIncludingRequirementsUpdatedEvent,
34
- V2CoreAccountLinkCompletedEvent.lookup_type => V2CoreAccountLinkCompletedEvent,
34
+ V2CoreAccountLinkReturnedEvent.lookup_type => V2CoreAccountLinkReturnedEvent,
35
35
  V2CoreAccountPersonCreatedEvent.lookup_type => V2CoreAccountPersonCreatedEvent,
36
36
  V2CoreAccountPersonDeletedEvent.lookup_type => V2CoreAccountPersonDeletedEvent,
37
37
  V2CoreAccountPersonUpdatedEvent.lookup_type => V2CoreAccountPersonUpdatedEvent,
@@ -82,6 +82,7 @@ module Stripe
82
82
  V2MoneyManagementOutboundTransferReturnedEvent,
83
83
  V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
84
84
  V2MoneyManagementOutboundTransferUpdatedEvent,
85
+ V2MoneyManagementPayoutMethodUpdatedEvent.lookup_type => V2MoneyManagementPayoutMethodUpdatedEvent,
85
86
  V2MoneyManagementReceivedCreditAvailableEvent.lookup_type =>
86
87
  V2MoneyManagementReceivedCreditAvailableEvent,
87
88
  V2MoneyManagementReceivedCreditFailedEvent.lookup_type =>
@@ -101,7 +102,6 @@ module Stripe
101
102
  V2MoneyManagementReceivedDebitUpdatedEvent,
102
103
  V2MoneyManagementTransactionCreatedEvent.lookup_type => V2MoneyManagementTransactionCreatedEvent,
103
104
  V2MoneyManagementTransactionUpdatedEvent.lookup_type => V2MoneyManagementTransactionUpdatedEvent,
104
- V2OffSessionPaymentRequiresCaptureEvent.lookup_type => V2OffSessionPaymentRequiresCaptureEvent,
105
105
  V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent.lookup_type =>
106
106
  V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent,
107
107
  V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent.lookup_type =>
@@ -3,9 +3,9 @@
3
3
 
4
4
  module Stripe
5
5
  # Occurs when the generated AccountLink is completed.
6
- class V2CoreAccountLinkCompletedEvent < Stripe::V2::Event
6
+ class V2CoreAccountLinkReturnedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
- "v2.core.account_link.completed"
8
+ "v2.core.account_link.returned"
9
9
  end
10
10
  # There is additional data present for this event, accessible with the `data` property.
11
11
  # See the Stripe API docs for more information.
@@ -2,10 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment requires capture event definition.
6
- class V2OffSessionPaymentRequiresCaptureEvent < Stripe::V2::Event
5
+ # Occurs when a PayoutMethod is updated.
6
+ class V2MoneyManagementPayoutMethodUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
- "v2.off_session_payment.requires_capture"
8
+ "v2.money_management.payout_method.updated"
9
9
  end
10
10
 
11
11
  # Retrieves the related object from the API. Make an API request on every call.
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment authorization attempt failed event definition.
5
+ # Sent after a failed authorization if there are still retries available on the OffSessionPayment.
6
6
  class V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.payments.off_session_payment.authorization_attempt_failed"
@@ -2,7 +2,8 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment authorization attempt started event definition.
5
+ # Sent when our internal scheduling system kicks off an attempt at authorization, whether it's a
6
+ # retry or an initial authorization.
6
7
  class V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent < Stripe::V2::Event
7
8
  def self.lookup_type
8
9
  "v2.payments.off_session_payment.authorization_attempt_started"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment canceled event definition.
5
+ # Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
6
6
  class V2PaymentsOffSessionPaymentCanceledEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.payments.off_session_payment.canceled"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment created event definition.
5
+ # Sent immediately following a user's call to the Off-Session Payments create endpoint.
6
6
  class V2PaymentsOffSessionPaymentCreatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.payments.off_session_payment.created"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment failed event definition.
5
+ # Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
6
6
  class V2PaymentsOffSessionPaymentFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.payments.off_session_payment.failed"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Off session payment succeeded event definition.
5
+ # Sent immediately after a successful authorization.
6
6
  class V2PaymentsOffSessionPaymentSucceededEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.payments.off_session_payment.succeeded"
@@ -34,6 +34,8 @@ module Stripe
34
34
  Billing::MeterEvent.object_name => Billing::MeterEvent,
35
35
  Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,
36
36
  Billing::MeterEventSummary.object_name => Billing::MeterEventSummary,
37
+ Billing::MeterUsage.object_name => Billing::MeterUsage,
38
+ Billing::MeterUsageRow.object_name => Billing::MeterUsageRow,
37
39
  BillingPortal::Configuration.object_name => BillingPortal::Configuration,
38
40
  BillingPortal::Session.object_name => BillingPortal::Session,
39
41
  Capability.object_name => Capability,
@@ -157,6 +159,7 @@ module Stripe
157
159
  Terminal::Configuration.object_name => Terminal::Configuration,
158
160
  Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
159
161
  Terminal::Location.object_name => Terminal::Location,
162
+ Terminal::OnboardingLink.object_name => Terminal::OnboardingLink,
160
163
  Terminal::Reader.object_name => Terminal::Reader,
161
164
  Terminal::ReaderCollectedData.object_name => Terminal::ReaderCollectedData,
162
165
  TestHelpers::TestClock.object_name => TestHelpers::TestClock,
@@ -71,7 +71,7 @@ module Stripe
71
71
  attr_reader :estimated_worker_count
72
72
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
73
73
  attr_reader :mcc
74
- # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
74
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
75
75
  attr_reader :minority_owned_business_designation
76
76
  # Attribute for field monthly_estimated_revenue
77
77
  attr_reader :monthly_estimated_revenue
@@ -789,7 +789,7 @@ module Stripe
789
789
  attr_accessor :estimated_worker_count
790
790
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
791
791
  attr_accessor :mcc
792
- # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
792
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
793
793
  attr_accessor :minority_owned_business_designation
794
794
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
795
795
  attr_accessor :monthly_estimated_revenue
@@ -3102,7 +3102,7 @@ module Stripe
3102
3102
  attr_accessor :estimated_worker_count
3103
3103
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
3104
3104
  attr_accessor :mcc
3105
- # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
3105
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
3106
3106
  attr_accessor :minority_owned_business_designation
3107
3107
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
3108
3108
  attr_accessor :monthly_estimated_revenue
@@ -5504,7 +5504,7 @@ module Stripe
5504
5504
  #
5505
5505
  # Test-mode accounts can be deleted at any time.
5506
5506
  #
5507
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5507
+ # Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5508
5508
  #
5509
5509
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
5510
5510
  def self.delete(account, params = {}, opts = {})
@@ -5520,7 +5520,7 @@ module Stripe
5520
5520
  #
5521
5521
  # Test-mode accounts can be deleted at any time.
5522
5522
  #
5523
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5523
+ # Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5524
5524
  #
5525
5525
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
5526
5526
  def delete(params = {}, opts = {})
@@ -38,7 +38,9 @@ module Stripe
38
38
  attr_accessor :refresh_url
39
39
  # The URL that the user will be redirected to upon leaving or completing the linked flow.
40
40
  attr_accessor :return_url
41
- # The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
41
+ # The type of account link the user is requesting.
42
+ #
43
+ # You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
42
44
  attr_accessor :type
43
45
 
44
46
  def initialize(
@@ -140,6 +140,21 @@ module Stripe
140
140
  attr_reader :features
141
141
  end
142
142
 
143
+ class InstantPayoutsPromotion < Stripe::StripeObject
144
+ class Features < Stripe::StripeObject
145
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
146
+ attr_reader :disable_stripe_user_authentication
147
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
148
+ attr_reader :external_account_collection
149
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
150
+ attr_reader :instant_payouts
151
+ end
152
+ # Whether the embedded component is enabled.
153
+ attr_reader :enabled
154
+ # Attribute for field features
155
+ attr_reader :features
156
+ end
157
+
143
158
  class IssuingCard < Stripe::StripeObject
144
159
  class Features < Stripe::StripeObject
145
160
  # Whether to allow card management features.
@@ -300,6 +315,8 @@ module Stripe
300
315
  attr_reader :financial_account
301
316
  # Attribute for field financial_account_transactions
302
317
  attr_reader :financial_account_transactions
318
+ # Attribute for field instant_payouts_promotion
319
+ attr_reader :instant_payouts_promotion
303
320
  # Attribute for field issuing_card
304
321
  attr_reader :issuing_card
305
322
  # Attribute for field issuing_cards_list
@@ -620,6 +637,36 @@ module Stripe
620
637
  end
621
638
  end
622
639
 
640
+ class InstantPayoutsPromotion < Stripe::RequestParams
641
+ class Features < Stripe::RequestParams
642
+ # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
643
+ attr_accessor :disable_stripe_user_authentication
644
+ # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
645
+ attr_accessor :external_account_collection
646
+ # Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
647
+ attr_accessor :instant_payouts
648
+
649
+ def initialize(
650
+ disable_stripe_user_authentication: nil,
651
+ external_account_collection: nil,
652
+ instant_payouts: nil
653
+ )
654
+ @disable_stripe_user_authentication = disable_stripe_user_authentication
655
+ @external_account_collection = external_account_collection
656
+ @instant_payouts = instant_payouts
657
+ end
658
+ end
659
+ # Whether the embedded component is enabled.
660
+ attr_accessor :enabled
661
+ # The list of features enabled in the embedded component.
662
+ attr_accessor :features
663
+
664
+ def initialize(enabled: nil, features: nil)
665
+ @enabled = enabled
666
+ @features = features
667
+ end
668
+ end
669
+
623
670
  class IssuingCard < Stripe::RequestParams
624
671
  class Features < Stripe::RequestParams
625
672
  # Whether to allow card management features.
@@ -992,6 +1039,8 @@ module Stripe
992
1039
  attr_accessor :financial_account
993
1040
  # Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
994
1041
  attr_accessor :financial_account_transactions
1042
+ # Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
1043
+ attr_accessor :instant_payouts_promotion
995
1044
  # Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
996
1045
  attr_accessor :issuing_card
997
1046
  # Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
@@ -1038,6 +1087,7 @@ module Stripe
1038
1087
  export_tax_transactions: nil,
1039
1088
  financial_account: nil,
1040
1089
  financial_account_transactions: nil,
1090
+ instant_payouts_promotion: nil,
1041
1091
  issuing_card: nil,
1042
1092
  issuing_cards_list: nil,
1043
1093
  notification_banner: nil,
@@ -1068,6 +1118,7 @@ module Stripe
1068
1118
  @export_tax_transactions = export_tax_transactions
1069
1119
  @financial_account = financial_account
1070
1120
  @financial_account_transactions = financial_account_transactions
1121
+ @instant_payouts_promotion = instant_payouts_promotion
1071
1122
  @issuing_card = issuing_card
1072
1123
  @issuing_cards_list = issuing_cards_list
1073
1124
  @notification_banner = notification_banner
@@ -20,9 +20,9 @@ module Stripe
20
20
  # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
21
21
  attr_reader :interval
22
22
  # The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
23
- attr_reader :monthly_anchor
24
- # The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
25
- attr_reader :weekly_anchor
23
+ attr_reader :monthly_payout_days
24
+ # The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
25
+ attr_reader :weekly_payout_days
26
26
  end
27
27
  # Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
28
28
  attr_reader :schedule
@@ -42,15 +42,15 @@ module Stripe
42
42
  class Schedule < Stripe::RequestParams
43
43
  # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
44
44
  attr_accessor :interval
45
- # The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
46
- attr_accessor :monthly_anchor
47
- # The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
48
- attr_accessor :weekly_anchor
45
+ # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
46
+ attr_accessor :monthly_payout_days
47
+ # The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
48
+ attr_accessor :weekly_payout_days
49
49
 
50
- def initialize(interval: nil, monthly_anchor: nil, weekly_anchor: nil)
50
+ def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
51
51
  @interval = interval
52
- @monthly_anchor = monthly_anchor
53
- @weekly_anchor = weekly_anchor
52
+ @monthly_payout_days = monthly_payout_days
53
+ @weekly_payout_days = weekly_payout_days
54
54
  end
55
55
  end
56
56
  # Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
@@ -66,10 +66,10 @@ module Stripe
66
66
 
67
67
  class SettlementTiming < Stripe::RequestParams
68
68
  # The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule).
69
- attr_accessor :delay_days
69
+ attr_accessor :delay_days_override
70
70
 
71
- def initialize(delay_days: nil)
72
- @delay_days = delay_days
71
+ def initialize(delay_days_override: nil)
72
+ @delay_days_override = delay_days_override
73
73
  end
74
74
  end
75
75
  # A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
@@ -90,7 +90,7 @@ module Stripe
90
90
  end
91
91
  # The monetary amount.
92
92
  attr_accessor :monetary
93
- # Specify the type of this amount. We currently only support `monetary` billing credits.
93
+ # The type of this amount. We currently only support `monetary` billing credits.
94
94
  attr_accessor :type
95
95
 
96
96
  def initialize(monetary: nil, type: nil)
@@ -0,0 +1,23 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Billing
6
+ # A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
7
+ class MeterUsage < SingletonAPIResource
8
+ OBJECT_NAME = "billing.meter_usage"
9
+ def self.object_name
10
+ "billing.meter_usage"
11
+ end
12
+
13
+ # The aggregated meter usage data for the specified customer and time range.
14
+ attr_reader :data
15
+ # Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch.
16
+ attr_reader :data_refreshed_at
17
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
18
+ attr_reader :livemode
19
+ # String representing the object's type. Objects of the same type share the same value.
20
+ attr_reader :object
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Billing
6
+ class MeterUsageRow < APIResource
7
+ OBJECT_NAME = "billing.meter_usage_row"
8
+ def self.object_name
9
+ "billing.meter_usage_row"
10
+ end
11
+
12
+ # Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
13
+ attr_reader :bucket_end_time
14
+ # Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
15
+ attr_reader :bucket_start_time
16
+ # The aggregated meter usage value for the specified bucket.
17
+ attr_reader :bucket_value
18
+ # A set of key-value pairs representing the dimensions of the meter usage.
19
+ attr_reader :dimensions
20
+ # Unique identifier for the object.
21
+ attr_reader :id
22
+ # The unique identifier for the meter.
23
+ attr_reader :meter_id
24
+ # String representing the object's type. Objects of the same type share the same value.
25
+ attr_reader :object
26
+ end
27
+ end
28
+ end
@@ -60,6 +60,16 @@ module Stripe
60
60
 
61
61
  class SubscriptionUpdate < Stripe::StripeObject
62
62
  class Product < Stripe::StripeObject
63
+ class AdjustableQuantity < Stripe::StripeObject
64
+ # If true, the quantity can be adjusted to any non-negative integer.
65
+ attr_reader :enabled
66
+ # The maximum quantity that can be set for the product.
67
+ attr_reader :maximum
68
+ # The minimum quantity that can be set for the product.
69
+ attr_reader :minimum
70
+ end
71
+ # Attribute for field adjustable_quantity
72
+ attr_reader :adjustable_quantity
63
73
  # The list of price IDs which, when subscribed to, a subscription can be updated.
64
74
  attr_reader :prices
65
75
  # The product ID.
@@ -220,12 +230,29 @@ module Stripe
220
230
 
221
231
  class SubscriptionUpdate < Stripe::RequestParams
222
232
  class Product < Stripe::RequestParams
233
+ class AdjustableQuantity < Stripe::RequestParams
234
+ # Set to true if the quantity can be adjusted to any non-negative integer.
235
+ attr_accessor :enabled
236
+ # The maximum quantity that can be set for the product.
237
+ attr_accessor :maximum
238
+ # The minimum quantity that can be set for the product.
239
+ attr_accessor :minimum
240
+
241
+ def initialize(enabled: nil, maximum: nil, minimum: nil)
242
+ @enabled = enabled
243
+ @maximum = maximum
244
+ @minimum = minimum
245
+ end
246
+ end
247
+ # Control whether the quantity of the product can be adjusted.
248
+ attr_accessor :adjustable_quantity
223
249
  # The list of price IDs for the product that a subscription can be updated to.
224
250
  attr_accessor :prices
225
251
  # The product id.
226
252
  attr_accessor :product
227
253
 
228
- def initialize(prices: nil, product: nil)
254
+ def initialize(adjustable_quantity: nil, prices: nil, product: nil)
255
+ @adjustable_quantity = adjustable_quantity
229
256
  @prices = prices
230
257
  @product = product
231
258
  end
@@ -419,12 +446,29 @@ module Stripe
419
446
 
420
447
  class SubscriptionUpdate < Stripe::RequestParams
421
448
  class Product < Stripe::RequestParams
449
+ class AdjustableQuantity < Stripe::RequestParams
450
+ # Set to true if the quantity can be adjusted to any non-negative integer.
451
+ attr_accessor :enabled
452
+ # The maximum quantity that can be set for the product.
453
+ attr_accessor :maximum
454
+ # The minimum quantity that can be set for the product.
455
+ attr_accessor :minimum
456
+
457
+ def initialize(enabled: nil, maximum: nil, minimum: nil)
458
+ @enabled = enabled
459
+ @maximum = maximum
460
+ @minimum = minimum
461
+ end
462
+ end
463
+ # Control whether the quantity of the product can be adjusted.
464
+ attr_accessor :adjustable_quantity
422
465
  # The list of price IDs for the product that a subscription can be updated to.
423
466
  attr_accessor :prices
424
467
  # The product id.
425
468
  attr_accessor :product
426
469
 
427
- def initialize(prices: nil, product: nil)
470
+ def initialize(adjustable_quantity: nil, prices: nil, product: nil)
471
+ @adjustable_quantity = adjustable_quantity
428
472
  @prices = prices
429
473
  @product = product
430
474
  end