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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +15 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_created_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +1 -1
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +1 -1
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +0 -1
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/charge.rb +2 -2
- data/lib/stripe/resources/checkout/session.rb +7 -3
- data/lib/stripe/resources/confirmation_token.rb +5 -3
- data/lib/stripe/resources/customer.rb +2 -2
- data/lib/stripe/resources/invoice.rb +10 -2
- data/lib/stripe/resources/order.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +4 -4
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +22 -1
- data/lib/stripe/resources/quote.rb +6 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +2 -0
- data/lib/stripe/resources/subscription.rb +8 -2
- data/lib/stripe/resources/subscription_schedule.rb +6 -0
- data/lib/stripe/resources/tax/calculation.rb +2 -2
- data/lib/stripe/resources/tax/registration.rb +60 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +2 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +1 -4
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/core/account.rb +44 -13
- data/lib/stripe/resources/v2/core/account_link.rb +3 -1
- data/lib/stripe/resources/v2/core/person.rb +4 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +4 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +5 -3
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +2 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +2 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -1
- data/lib/stripe/resources/v2/money_management/financial_address.rb +2 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +3 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +8 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +3 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources.rb +11 -1
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +2 -2
- data/lib/stripe/services/charge_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +4 -0
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +1 -1
- data/lib/stripe/services/external_account_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +9 -1
- data/lib/stripe/services/order_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +4 -4
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -20
- data/lib/stripe/services/quote_service.rb +4 -0
- data/lib/stripe/services/subscription_schedule_service.rb +4 -0
- data/lib/stripe/services/subscription_service.rb +5 -1
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/registration_service.rb +39 -0
- data/lib/stripe/services/tax_id_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
- data/lib/stripe/services/treasury/outbound_payment_service.rb +1 -4
- data/lib/stripe/services/v2/core/account_service.rb +15 -7
- data/lib/stripe/services/v2/core/accounts/person_service.rb +8 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +5 -5
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +16 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +465 -190
- metadata +13 -3
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59a3898b019cb6fe6f2d55089631a35138e413395611f6c5d7e709e9d4932af1
|
4
|
+
data.tar.gz: 1ee12e643fd001fb987d797700418e282139289bf71709aded57593d8afe4079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
+
15.2.0-beta.1
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
@@ -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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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"
|
@@ -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
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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"
|