stripe 15.1.0.pre.beta.2 → 15.2.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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +6 -0
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_version.rb +1 -1
  7. data/lib/stripe/event_types.rb +15 -0
  8. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  9. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  10. data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
  12. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +1 -1
  13. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +1 -1
  14. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +1 -1
  15. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +1 -1
  17. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +1 -1
  18. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
  19. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +1 -1
  21. data/lib/stripe/events/v2_core_account_person_created_event.rb +1 -1
  22. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +1 -1
  23. data/lib/stripe/events/v2_core_account_person_updated_event.rb +1 -1
  24. data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
  25. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  26. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
  27. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +1 -1
  28. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
  29. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +1 -1
  30. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +1 -1
  31. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +1 -1
  32. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +1 -1
  33. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
  34. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +1 -1
  35. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +1 -1
  36. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +1 -1
  37. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +1 -1
  38. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +1 -1
  39. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
  40. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +1 -1
  41. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +1 -1
  42. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +1 -1
  43. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +1 -1
  44. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +1 -1
  45. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +1 -1
  46. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +1 -1
  47. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +1 -1
  48. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +1 -1
  49. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
  50. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
  51. data/lib/stripe/object_types.rb +0 -1
  52. data/lib/stripe/resources/account.rb +2 -2
  53. data/lib/stripe/resources/charge.rb +2 -2
  54. data/lib/stripe/resources/checkout/session.rb +7 -3
  55. data/lib/stripe/resources/confirmation_token.rb +5 -3
  56. data/lib/stripe/resources/customer.rb +2 -2
  57. data/lib/stripe/resources/invoice.rb +10 -2
  58. data/lib/stripe/resources/order.rb +3 -3
  59. data/lib/stripe/resources/payment_intent.rb +4 -4
  60. data/lib/stripe/resources/payment_method.rb +2 -0
  61. data/lib/stripe/resources/privacy/redaction_job.rb +22 -1
  62. data/lib/stripe/resources/quote.rb +6 -0
  63. data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
  64. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
  65. data/lib/stripe/resources/subscription.rb +8 -2
  66. data/lib/stripe/resources/subscription_schedule.rb +6 -0
  67. data/lib/stripe/resources/tax/calculation.rb +2 -2
  68. data/lib/stripe/resources/tax/registration.rb +60 -0
  69. data/lib/stripe/resources/tax/transaction.rb +1 -1
  70. data/lib/stripe/resources/tax_id.rb +2 -2
  71. data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
  72. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  73. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  74. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  75. data/lib/stripe/resources/v2/core/account.rb +44 -13
  76. data/lib/stripe/resources/v2/core/account_link.rb +3 -1
  77. data/lib/stripe/resources/v2/core/person.rb +4 -0
  78. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +4 -2
  79. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +5 -3
  80. data/lib/stripe/resources/v2/event.rb +2 -2
  81. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  82. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +2 -0
  83. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +2 -0
  84. data/lib/stripe/resources/v2/money_management/adjustment.rb +3 -1
  85. data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -1
  86. data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -0
  87. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
  88. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
  89. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +8 -0
  90. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +2 -0
  91. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +3 -1
  92. data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
  93. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +2 -0
  94. data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
  95. data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
  96. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  97. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  98. data/lib/stripe/resources.rb +11 -1
  99. data/lib/stripe/services/account_external_account_service.rb +1 -1
  100. data/lib/stripe/services/account_service.rb +2 -2
  101. data/lib/stripe/services/charge_service.rb +2 -2
  102. data/lib/stripe/services/checkout/session_service.rb +4 -0
  103. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  104. data/lib/stripe/services/customer_service.rb +1 -1
  105. data/lib/stripe/services/customer_tax_id_service.rb +1 -1
  106. data/lib/stripe/services/external_account_service.rb +1 -1
  107. data/lib/stripe/services/invoice_service.rb +9 -1
  108. data/lib/stripe/services/order_service.rb +2 -2
  109. data/lib/stripe/services/payment_intent_service.rb +4 -4
  110. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -20
  111. data/lib/stripe/services/quote_service.rb +4 -0
  112. data/lib/stripe/services/subscription_schedule_service.rb +4 -0
  113. data/lib/stripe/services/subscription_service.rb +5 -1
  114. data/lib/stripe/services/tax/calculation_service.rb +1 -1
  115. data/lib/stripe/services/tax/registration_service.rb +39 -0
  116. data/lib/stripe/services/tax_id_service.rb +1 -1
  117. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
  118. data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
  119. data/lib/stripe/services/v2/core/account_service.rb +15 -7
  120. data/lib/stripe/services/v2/core/accounts/person_service.rb +8 -0
  121. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +1 -1
  122. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +5 -5
  123. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +16 -0
  124. data/lib/stripe/version.rb +1 -1
  125. data/rbi/stripe.rbi +465 -190
  126. metadata +13 -3
  127. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fc9731736cbcaa7fc5eb7af91f4d006c1a582578ea8214ab6f4f6931a7abae7
4
- data.tar.gz: 854bd0b37606972d4e72775e5b47cc2f9aa6a5506f0cf0d39c4dcccea1c5e68e
3
+ metadata.gz: 59a3898b019cb6fe6f2d55089631a35138e413395611f6c5d7e709e9d4932af1
4
+ data.tar.gz: 1ee12e643fd001fb987d797700418e282139289bf71709aded57593d8afe4079
5
5
  SHA512:
6
- metadata.gz: b9dc3bce5a79ba09dd048d080bfdec50a39072d7060eccd8ab7dcbf3bc9e7ba04dfa1298c81b0e7172c30298122dac538dfceafa20ab53fbca092f7365c22414
7
- data.tar.gz: c696fd9853059c7284c964b15338252f4b2f0fa8639bc74d5a467d4690af51114896eac855ef81a728e658de610b29f68c403550fb3e799b00cb3c333eb8bbf4
6
+ metadata.gz: 04b9ad677e3d425eb4ad77606f00e8753014d3e5a2a202212bcbe252303c17a48c76804d1b9b059ccc60c43306be7ae09a0796b53b8862c0608af896aff5cbaf
7
+ data.tar.gz: 435652dbf4960e4a1b7eae1f02bfd91b13106d8e5c135a4f6a8669b053f3f1dea50ba387f6caceb8356164d0ae49f88028305060589455ea48c2b4eba7edbb96
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.2.0-beta.1 - 2025-04-30
4
+ * [#1589](https://github.com/stripe/stripe-ruby/pull/1589) Update generated code for beta
5
+ This release changes the pinned API version to `2025-04-30.preview`.
6
+
7
+ * Add support for `billing_mode` on `Checkout::Session::CreateParams::SubscriptionDatum`, `Invoice::CreatePreviewParams::ScheduleDetail`, `Invoice::CreatePreviewParams::SubscriptionDetail`, `Quote::CreateParams::SubscriptionDatum`, `Quote::SubscriptionDatum`, `QuotePreviewSubscriptionSchedule`, `Subscription::CreateParams`, `SubscriptionSchedule::CreateParams`, `SubscriptionSchedule`, and `Subscription`
8
+ * Change `Checkout::Session::AutomaticTax.provider`, `Invoice::AutomaticTax.provider`, `Quote::AutomaticTax.provider`, and `QuotePreviewInvoice::AutomaticTax.provider` to be required
9
+ * Add support for `account_number` on `ConfirmationToken::PaymentMethodPreview::AcssDebit` and `PaymentMethod::AcssDebit`
10
+
3
11
  ## 15.1.0-beta.2 - 2025-04-17
4
12
  * [#1578](https://github.com/stripe/stripe-ruby/pull/1578) Update generated code for beta
5
13
  * Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1697
1
+ v1719
data/README.md CHANGED
@@ -127,6 +127,12 @@ Keep in mind that there are different method signatures depending on the action:
127
127
  `retrieve(id, opts)`. In addition, it will accept a Hash for the `id` param but will extract the
128
128
  `id` key out and use the others as options.
129
129
 
130
+ ### StripeClient vs legacy pattern
131
+
132
+ We introduced the `StripeClient` class in v13 of the Ruby SDK. The legacy pattern used prior to that version is still available to use but will be marked as deprecated soon. Review the [migration guide to use StripeClient](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v13) to move from the legacy pattern.
133
+
134
+ Once the legacy pattern is deprecated, new API endpoints will only be accessible in the StripeClient. While there are no current plans to remove the legacy pattern for existing API endpoints, this may change in the future.
135
+
130
136
  ### Accessing resource properties
131
137
 
132
138
  Both indexer and accessors can be used to retrieve values of resource properties.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 15.1.0-beta.2
1
+ 15.2.0-beta.1
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2025-03-31.preview"
6
+ CURRENT = "2025-04-30.preview"
7
7
  end
8
8
  end
@@ -7,6 +7,8 @@ module Stripe
7
7
  # The beginning of the section generated from our OpenAPI spec
8
8
  V1BillingMeterErrorReportTriggeredEvent.lookup_type => V1BillingMeterErrorReportTriggeredEvent,
9
9
  V1BillingMeterNoMeterFoundEvent.lookup_type => V1BillingMeterNoMeterFoundEvent,
10
+ V2CoreAccountClosedEvent.lookup_type => V2CoreAccountClosedEvent,
11
+ V2CoreAccountCreatedEvent.lookup_type => V2CoreAccountCreatedEvent,
10
12
  V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.lookup_type =>
11
13
  V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent,
12
14
  V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.lookup_type =>
@@ -19,6 +21,8 @@ module Stripe
19
21
  V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,
20
22
  V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.lookup_type =>
21
23
  V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,
24
+ V2CoreAccountIncludingDefaultsUpdatedEvent.lookup_type =>
25
+ V2CoreAccountIncludingDefaultsUpdatedEvent,
22
26
  V2CoreAccountIncludingIdentityUpdatedEvent.lookup_type =>
23
27
  V2CoreAccountIncludingIdentityUpdatedEvent,
24
28
  V2CoreAccountIncludingRequirementsUpdatedEvent.lookup_type =>
@@ -27,8 +31,13 @@ module Stripe
27
31
  V2CoreAccountPersonCreatedEvent.lookup_type => V2CoreAccountPersonCreatedEvent,
28
32
  V2CoreAccountPersonDeletedEvent.lookup_type => V2CoreAccountPersonDeletedEvent,
29
33
  V2CoreAccountPersonUpdatedEvent.lookup_type => V2CoreAccountPersonUpdatedEvent,
34
+ V2CoreAccountUpdatedEvent.lookup_type => V2CoreAccountUpdatedEvent,
35
+ V2CoreEventDestinationPingEvent.lookup_type => V2CoreEventDestinationPingEvent,
36
+ V2MoneyManagementAdjustmentCreatedEvent.lookup_type => V2MoneyManagementAdjustmentCreatedEvent,
30
37
  V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
31
38
  V2MoneyManagementFinancialAccountCreatedEvent,
39
+ V2MoneyManagementFinancialAccountUpdatedEvent.lookup_type =>
40
+ V2MoneyManagementFinancialAccountUpdatedEvent,
32
41
  V2MoneyManagementFinancialAddressActivatedEvent.lookup_type =>
33
42
  V2MoneyManagementFinancialAddressActivatedEvent,
34
43
  V2MoneyManagementFinancialAddressFailedEvent.lookup_type =>
@@ -55,6 +64,8 @@ module Stripe
55
64
  V2MoneyManagementOutboundPaymentPostedEvent,
56
65
  V2MoneyManagementOutboundPaymentReturnedEvent.lookup_type =>
57
66
  V2MoneyManagementOutboundPaymentReturnedEvent,
67
+ V2MoneyManagementOutboundPaymentUpdatedEvent.lookup_type =>
68
+ V2MoneyManagementOutboundPaymentUpdatedEvent,
58
69
  V2MoneyManagementOutboundTransferCanceledEvent.lookup_type =>
59
70
  V2MoneyManagementOutboundTransferCanceledEvent,
60
71
  V2MoneyManagementOutboundTransferCreatedEvent.lookup_type =>
@@ -65,6 +76,8 @@ module Stripe
65
76
  V2MoneyManagementOutboundTransferPostedEvent,
66
77
  V2MoneyManagementOutboundTransferReturnedEvent.lookup_type =>
67
78
  V2MoneyManagementOutboundTransferReturnedEvent,
79
+ V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
80
+ V2MoneyManagementOutboundTransferUpdatedEvent,
68
81
  V2MoneyManagementReceivedCreditAvailableEvent.lookup_type =>
69
82
  V2MoneyManagementReceivedCreditAvailableEvent,
70
83
  V2MoneyManagementReceivedCreditFailedEvent.lookup_type =>
@@ -82,6 +95,8 @@ module Stripe
82
95
  V2MoneyManagementReceivedDebitSucceededEvent,
83
96
  V2MoneyManagementReceivedDebitUpdatedEvent.lookup_type =>
84
97
  V2MoneyManagementReceivedDebitUpdatedEvent,
98
+ V2MoneyManagementTransactionCreatedEvent.lookup_type => V2MoneyManagementTransactionCreatedEvent,
99
+ V2MoneyManagementTransactionUpdatedEvent.lookup_type => V2MoneyManagementTransactionUpdatedEvent,
85
100
  # The end of the section generated from our OpenAPI spec
86
101
  }
87
102
  end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when there are invalid async usage events for a given meter.
5
+ # Occurs when a Meter has invalid async usage events.
6
6
  class V1BillingMeterErrorReportTriggeredEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v1.billing.meter.error_report_triggered"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when async usage events have missing or invalid meter ids.
5
+ # Occurs when a Meter's id is missing or invalid in async usage events.
6
6
  class V1BillingMeterNoMeterFoundEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v1.billing.meter.no_meter_found"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # This event occurs when an account is closed.
6
+ class V2CoreAccountClosedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account.closed"
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
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when an Account is created.
6
+ class V2CoreAccountCreatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account.created"
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The status of a customer config capability was updated.
5
+ # Occurs when the status of an Account's customer configuration capability is updated.
6
6
  class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.customer].capability_status_updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A customer config was updated.
5
+ # Occurs when an Account's customer configuration is updated.
6
6
  class V2CoreAccountIncludingConfigurationCustomerUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.customer].updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The status of a merchant config capability was updated.
5
+ # Occurs when the status of an Account's merchant configuration capability is updated.
6
6
  class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.merchant].capability_status_updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A merchant config was updated.
5
+ # Occurs when an Account's merchant configuration is updated.
6
6
  class V2CoreAccountIncludingConfigurationMerchantUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.merchant].updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The status of a recipient config capability was updated.
5
+ # Occurs when the status of an Account's recipient configuration capability is updated.
6
6
  class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.recipient].capability_status_updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A recipient config was updated.
5
+ # Occurs when a Recipient's configuration is updated.
6
6
  class V2CoreAccountIncludingConfigurationRecipientUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[configuration.recipient].updated"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # This event occurs when account defaults are created or updated.
6
+ class V2CoreAccountIncludingDefaultsUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account[defaults].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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when identity is updated.
5
+ # Occurs when an Identity is updated.
6
6
  class V2CoreAccountIncludingIdentityUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[identity].updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when the account's requirements are updated.
5
+ # Occurs when an Account's requirements are updated.
6
6
  class V2CoreAccountIncludingRequirementsUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account[requirements].updated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when a person is created.
5
+ # Occurs when a Person is created.
6
6
  class V2CoreAccountPersonCreatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account_person.created"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when a person is deleted.
5
+ # Occurs when a Person is deleted.
6
6
  class V2CoreAccountPersonDeletedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account_person.deleted"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event occurs when a person is updated.
5
+ # Occurs when a Person is updated.
6
6
  class V2CoreAccountPersonUpdatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.core.account_person.updated"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when an Account is updated.
6
+ class V2CoreAccountUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.account.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
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # A ping event used to test the connection to an event destination.
6
+ class V2CoreEventDestinationPingEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.event_destination.ping"
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
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when an Adjustment is created.
6
+ class V2MoneyManagementAdjustmentCreatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.money_management.adjustment.created"
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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Occurs when a financial account is created.
5
+ # Occurs when a FinancialAccount is created.
6
6
  class V2MoneyManagementFinancialAccountCreatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.financial_account.created"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a FinancialAccount is updated.
6
+ class V2MoneyManagementFinancialAccountUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.money_management.financial_account.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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The FinancialAddress is now active and ready to receive funds using the credentials provided.
5
+ # Occurs when a FinancialAddress is activated and is ready to receive funds.
6
6
  class V2MoneyManagementFinancialAddressActivatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.financial_address.activated"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The FinancialAddress could not be activated and can not receive funds.
5
+ # Occurs when a FinancialAddress fails to activate and can not receive funds.
6
6
  class V2MoneyManagementFinancialAddressFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.financial_address.failed"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Funds from an InboundTransfer were just made available.
5
+ # Occurs when an InboundTransfer's funds are made available.
6
6
  class V2MoneyManagementInboundTransferAvailableEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.inbound_transfer.available"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A new OutboundPayment has been created.
5
+ # Occurs when an OutboundPayment is created.
6
6
  class V2MoneyManagementOutboundPaymentCreatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_payment.created"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Event that is emitted every time an Outbound Payment is updated.
6
+ class V2MoneyManagementOutboundPaymentUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.money_management.outbound_payment.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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An OutboundTransfer has transitioned into the canceled state.
5
+ # Occurs when an OutboundTransfer transitions into the canceled state.
6
6
  class V2MoneyManagementOutboundTransferCanceledEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_transfer.canceled"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A new OutboundTransfer has been created.
5
+ # Occurs when an OutboundTransfer is created.
6
6
  class V2MoneyManagementOutboundTransferCreatedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_transfer.created"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An OutboundTransfer has transitioned into the failed state.
5
+ # Occurs when an OutboundTransfer transitions into the failed state.
6
6
  class V2MoneyManagementOutboundTransferFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_transfer.failed"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An OutboundTransfer has transitioned into the posted state.
5
+ # Occurs when an OutboundTransfer transitions into the posted state.
6
6
  class V2MoneyManagementOutboundTransferPostedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_transfer.posted"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An OutboundTransfer has transitioned into the returned state.
5
+ # Occurs when an OutboundTransfer transitions into the returned state.
6
6
  class V2MoneyManagementOutboundTransferReturnedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.outbound_transfer.returned"
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Event that is emitted every time an Outbound Transfer is updated.
6
+ class V2MoneyManagementOutboundTransferUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.money_management.outbound_transfer.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
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The funds related to the received credit are available in your balance.
5
+ # Occurs when a ReceivedCredit's funds are received and are available in your balance.
6
6
  class V2MoneyManagementReceivedCreditAvailableEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_credit.available"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A credit was attempted to your balance and was not successful. See the status_details for more information.
5
+ # Occurs when a ReceivedCredit is attempted to your balance and fails. See the status_details for more information.
6
6
  class V2MoneyManagementReceivedCreditFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_credit.failed"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # The previously received credit has been reversed, returned to the originator and deducted from your balance.
5
+ # Occurs when a ReceivedCredit is reversed, returned to the originator, and deducted from your balance.
6
6
  class V2MoneyManagementReceivedCreditReturnedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_credit.returned"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A credit was received successfully and processed by Stripe.
5
+ # Occurs when a ReceivedCredit succeeds.
6
6
  class V2MoneyManagementReceivedCreditSucceededEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_credit.succeeded"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event is sent when a received debit is canceled.
5
+ # Occurs when a ReceivedDebit is canceled.
6
6
  class V2MoneyManagementReceivedDebitCanceledEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_debit.canceled"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event is sent when a received debit fails.
5
+ # Occurs when a ReceivedDebit fails.
6
6
  class V2MoneyManagementReceivedDebitFailedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_debit.failed"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event is sent when a ReceivedDebit is set to pending.
5
+ # Occurs when a ReceivedDebit is set to pending.
6
6
  class V2MoneyManagementReceivedDebitPendingEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_debit.pending"
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # This event is sent when a ReceivedDebit succeeds.
5
+ # Occurs when a ReceivedDebit succeeds.
6
6
  class V2MoneyManagementReceivedDebitSucceededEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
8
  "v2.money_management.received_debit.succeeded"