stripe 15.5.0.pre.beta.2 → 15.6.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/API_VERSION +1 -1
- data/CHANGELOG.md +53 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +18 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +23 -23
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +40 -5
- data/lib/stripe/resources/checkout/session.rb +109 -5
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +44 -1
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +90 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +111 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +107 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- 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/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +86 -4
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +43 -0
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +107 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +142341 -140132
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c642c066b3f649ba0a4cd905b78f1fb16c737f95092bc59cdf5d50608ae1621
|
4
|
+
data.tar.gz: 6ce6093b6470fa5bb6db669f01680bedc62a0775d65353f5913588b9b1aec474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58eae5852e9a3836700a1657d4e85b9526d001e4ba2bb2de45ff5c23dc2d22b6e641e6e70af100d5671ea42aba4798a9ef98a60a2dc96f502ba29ceb2e5171f4
|
7
|
+
data.tar.gz: 83f07337b4cea16ce37a7d16f87694c188a0457d3932436ea3609667db80c3d6bb70373acae8de67b37157d9e76a06d537bdc93c49d2556770aa496f61148323
|
data/API_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2025-
|
1
|
+
2025-08-27.preview
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,37 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 15.6.0-beta.1 - 2025-08-27
|
4
|
+
This release changes the pinned API version to `2025-08-27.preview`.
|
5
|
+
|
6
|
+
* [#1629](https://github.com/stripe/stripe-ruby/pull/1629) Update generated code for beta
|
7
|
+
* Add support for `list` and `retrieve` methods on resource `InvoicePayment`
|
8
|
+
* Add support for `list` method on resource `Mandate`
|
9
|
+
* Add support for `applied` on `V2::Core::Account::Configuration::Customer`, `V2::Core::Account::Configuration::Merchant`, `V2::Core::Account::Configuration::Recipient`, `V2::Core::Account::Configuration::Storer`, `V2::Core::Account::UpdateParams::Configuration::Customer`, `V2::Core::Account::UpdateParams::Configuration::Merchant`, `V2::Core::Account::UpdateParams::Configuration::Recipient`, and `V2::Core::Account::UpdateParams::Configuration::Storer`
|
10
|
+
* Change type of `Billing::AlertTriggered.value` from `longInteger` to `decimal_string`
|
11
|
+
* Add support for `display_name` on `V2::MoneyManagement::FinancialAccount::CreateParams` and `V2::MoneyManagement::FinancialAccount`
|
12
|
+
* Add support for `currency_conversion` on `V2::MoneyManagement::Transaction::Flow` and `V2::MoneyManagement::TransactionEntry::TransactionDetail::Flow`
|
13
|
+
* Add support for `payments` on `BalanceSettings::UpdateParams` and `BalanceSettings`
|
14
|
+
* Remove support for `debit_negative_balances`, `payouts`, and `settlement_timing` on `BalanceSettings::UpdateParams` and `BalanceSettings`
|
15
|
+
* Add support for `mandate` on `Charge::PaymentMethodDetail::Pix`, `PaymentAttemptRecord::PaymentMethodDetail::Pix`, and `PaymentRecord::PaymentMethodDetail::Pix`
|
16
|
+
* Add support for `coupon_data` on `Checkout::Session::CreateParams::Discount`
|
17
|
+
* Add support for `mandate_options` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix`, `Checkout::Session::PaymentMethodOption::Pix`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Pix`, `PaymentIntent::CreateParams::PaymentMethodOption::Pix`, `PaymentIntent::PaymentMethodOption::Pix`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Pix`
|
18
|
+
* Change type of `Checkout::Session::CreateParams::PaymentMethodOption::Pix.setup_future_usage`, `Checkout::Session::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::ConfirmParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::CreateParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntent::PaymentMethodOption::Pix.setup_future_usage`, and `PaymentIntent::UpdateParams::PaymentMethodOption::Pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
|
19
|
+
* Add support for `amount` on `Mandate::MultiUse`, `PaymentAttemptRecord`, and `PaymentRecord`
|
20
|
+
* Add support for `currency` on `Mandate::MultiUse`
|
21
|
+
* Add support for `pix` on `Mandate::PaymentMethodDetail`, `SetupAttempt::PaymentMethodDetail`, `SetupIntent::ConfirmParams::PaymentMethodOption`, `SetupIntent::CreateParams::PaymentMethodOption`, `SetupIntent::PaymentMethodOption`, and `SetupIntent::UpdateParams::PaymentMethodOption`
|
22
|
+
* Add support for `limit` on `PaymentAttemptRecord::ListParams`
|
23
|
+
* Add support for `amount_authorized`, `amount_refunded`, and `application` on `PaymentAttemptRecord` and `PaymentRecord`
|
24
|
+
* Add support for `processor_details` on `PaymentAttemptRecord`, `PaymentRecord::ReportPaymentParams`, and `PaymentRecord`
|
25
|
+
* Remove support for `payment_reference` on `PaymentAttemptRecord`, `PaymentRecord::ReportPaymentParams`, and `PaymentRecord`
|
26
|
+
* Add support for `installments` on `PaymentAttemptRecord::PaymentMethodDetail::Alma` and `PaymentRecord::PaymentMethodDetail::Alma`
|
27
|
+
* Add support for `transaction_id` on `PaymentAttemptRecord::PaymentMethodDetail::Alma`, `PaymentAttemptRecord::PaymentMethodDetail::AmazonPay`, `PaymentAttemptRecord::PaymentMethodDetail::Billie`, `PaymentAttemptRecord::PaymentMethodDetail::KakaoPay`, `PaymentAttemptRecord::PaymentMethodDetail::KrCard`, `PaymentAttemptRecord::PaymentMethodDetail::NaverPay`, `PaymentAttemptRecord::PaymentMethodDetail::Payco`, `PaymentAttemptRecord::PaymentMethodDetail::RevolutPay`, `PaymentAttemptRecord::PaymentMethodDetail::SamsungPay`, `PaymentAttemptRecord::PaymentMethodDetail::Satispay`, `PaymentRecord::PaymentMethodDetail::Alma`, `PaymentRecord::PaymentMethodDetail::AmazonPay`, `PaymentRecord::PaymentMethodDetail::Billie`, `PaymentRecord::PaymentMethodDetail::KakaoPay`, `PaymentRecord::PaymentMethodDetail::KrCard`, `PaymentRecord::PaymentMethodDetail::NaverPay`, `PaymentRecord::PaymentMethodDetail::Payco`, `PaymentRecord::PaymentMethodDetail::RevolutPay`, `PaymentRecord::PaymentMethodDetail::SamsungPay`, and `PaymentRecord::PaymentMethodDetail::Satispay`
|
28
|
+
* Add support for `location` and `reader` on `PaymentAttemptRecord::PaymentMethodDetail::Paynow` and `PaymentRecord::PaymentMethodDetail::Paynow`
|
29
|
+
* Add support for `latest_active_mandate` on `PaymentMethod`
|
30
|
+
* Change `Payout.payout_method` to be required
|
31
|
+
* Add support for `metadata` and `period` on `QuotePreviewSubscriptionSchedule::Phase::AddInvoiceItem`
|
32
|
+
* Add support for `pix_display_qr_code` on `SetupIntent::NextAction`
|
33
|
+
* Add support for `reader_security` on `Terminal::Configuration::CreateParams`, `Terminal::Configuration::UpdateParams`, and `Terminal::Configuration`
|
34
|
+
|
3
35
|
## 15.5.0-beta.2 - 2025-08-08
|
4
36
|
* [#1632](https://github.com/stripe/stripe-ruby/pull/1632) Bring back invoice payments APIs that were missing in the public preview SDKs
|
5
37
|
* Add support for new resource `InvoicePayment`
|
@@ -32,6 +64,25 @@ This release changes the pinned API version to `2025-07-30.preview`.
|
|
32
64
|
* Remove support for thin event `V2CoreAccountLinkCompletedEvent`
|
33
65
|
* Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `V2::Payments::OffSessionPayment`
|
34
66
|
|
67
|
+
## 15.4.0 - 2025-07-30
|
68
|
+
This release changes the pinned API version to `2025-07-30.basil`.
|
69
|
+
|
70
|
+
* [#1627](https://github.com/stripe/stripe-ruby/pull/1627) Update generated code
|
71
|
+
* Add support for `instant_payouts_promotion` on `AccountSession::Component` and `AccountSession::CreateParams::Component`
|
72
|
+
* Add support for `adjustable_quantity` on `BillingPortal::Configuration::CreateParams::Feature::SubscriptionUpdate::Product`, `BillingPortal::Configuration::Feature::SubscriptionUpdate::Product`, and `BillingPortal::Configuration::UpdateParams::Feature::SubscriptionUpdate::Product`
|
73
|
+
* Add support for `transaction_id` on `Charge::PaymentMethodDetail::Cashapp`
|
74
|
+
* Add support for `origin_context` on `Checkout::Session::CreateParams` and `Checkout::Session`
|
75
|
+
* Add support for `template` on `Checkout::Session::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `Checkout::Session::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::CreateParams::InvoiceCreation::InvoiceDatum::RenderingOption`, `PaymentLink::InvoiceCreation::InvoiceDatum::RenderingOption`, and `PaymentLink::UpdateParams::InvoiceCreation::InvoiceDatum::RenderingOption`
|
76
|
+
* Add support for `setup_future_usage` on `Checkout::Session::CreateParams::PaymentMethodOption::Pix` and `Checkout::Session::PaymentMethodOption::Pix`
|
77
|
+
* Change `Identity::VerificationSession::RelatedPerson.account` to be required
|
78
|
+
* Change `Identity::VerificationSession::RelatedPerson.person` to be required
|
79
|
+
* Add support for `duration` on `Invoice::CreatePreviewParams::ScheduleDetail::Phase`, `SubscriptionSchedule::CreateParams::Phase`, and `SubscriptionSchedule::UpdateParams::Phase`
|
80
|
+
* Change type of `Invoice::CreatePreviewParams::SubscriptionDetail.cancel_at`, `Subscription::CreateParams.cancel_at`, and `Subscription::UpdateParams.cancel_at` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')`
|
81
|
+
* Add support for `price_data` on `PaymentLink::CreateParams::LineItem`
|
82
|
+
* Change `PaymentLink::CreateParams::LineItem.price` to be optional
|
83
|
+
* Add support for `standard` on `Tax::Registration::CountryOption::Ae`, `Tax::Registration::CountryOption::Au`, `Tax::Registration::CountryOption::Ch`, `Tax::Registration::CountryOption::Gb`, `Tax::Registration::CountryOption::Jp`, `Tax::Registration::CountryOption::No`, `Tax::Registration::CountryOption::Nz`, `Tax::Registration::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Ae`, `Tax::Registration::CreateParams::CountryOption::Al`, `Tax::Registration::CreateParams::CountryOption::Ao`, `Tax::Registration::CreateParams::CountryOption::Au`, `Tax::Registration::CreateParams::CountryOption::Aw`, `Tax::Registration::CreateParams::CountryOption::B`, `Tax::Registration::CreateParams::CountryOption::Ba`, `Tax::Registration::CreateParams::CountryOption::Bb`, `Tax::Registration::CreateParams::CountryOption::Bd`, `Tax::Registration::CreateParams::CountryOption::Bf`, `Tax::Registration::CreateParams::CountryOption::Bh`, `Tax::Registration::CreateParams::CountryOption::Cd`, `Tax::Registration::CreateParams::CountryOption::Ch`, `Tax::Registration::CreateParams::CountryOption::Et`, `Tax::Registration::CreateParams::CountryOption::Gb`, `Tax::Registration::CreateParams::CountryOption::Gn`, `Tax::Registration::CreateParams::CountryOption::Is`, `Tax::Registration::CreateParams::CountryOption::Jp`, `Tax::Registration::CreateParams::CountryOption::Me`, `Tax::Registration::CreateParams::CountryOption::Mk`, `Tax::Registration::CreateParams::CountryOption::Mr`, `Tax::Registration::CreateParams::CountryOption::No`, `Tax::Registration::CreateParams::CountryOption::Nz`, `Tax::Registration::CreateParams::CountryOption::Om`, `Tax::Registration::CreateParams::CountryOption::R`, `Tax::Registration::CreateParams::CountryOption::Sg`, `Tax::Registration::CreateParams::CountryOption::Sr`, `Tax::Registration::CreateParams::CountryOption::Uy`, `Tax::Registration::CreateParams::CountryOption::Za`, and `Tax::Registration::CreateParams::CountryOption::Zw`
|
84
|
+
* Add support for `aed`, `bgn`, `huf`, and `ron` on `Terminal::Configuration::CreateParams::Tipping`, `Terminal::Configuration::Tipping`, and `Terminal::Configuration::UpdateParams::Tipping`
|
85
|
+
|
35
86
|
## 15.4.0-beta.2 - 2025-07-09
|
36
87
|
* [#1625](https://github.com/stripe/stripe-ruby/pull/1625) Pull in V2 FinancialAccount changes for June release
|
37
88
|
* Add support for `close` and `create` methods on resource `V2::MoneyManagement::FinancialAccount`
|
@@ -66,6 +117,8 @@ This release changes the pinned API version to `2025-06-30.preview`.
|
|
66
117
|
* Change `V2::Payments::OffSessionPayment::CreateParams::TransferDatum.amount` to be optional
|
67
118
|
|
68
119
|
## 15.3.0 - 2025-07-01
|
120
|
+
This release changes the pinned API version to `2025-06-30.basil`.
|
121
|
+
|
69
122
|
* [#1618](https://github.com/stripe/stripe-ruby/pull/1618) Update generated code
|
70
123
|
* Add support for `migrate` method on resource `Subscription`
|
71
124
|
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal::Reader`
|
@@ -89,7 +142,6 @@ This release changes the pinned API version to `2025-06-30.preview`.
|
|
89
142
|
* Add support for `status` on `Treasury::FinancialAccount::ListParams`
|
90
143
|
* [#1615](https://github.com/stripe/stripe-ruby/pull/1615) Update README to mention that APIResource.request was removed
|
91
144
|
* [#1619](https://github.com/stripe/stripe-ruby/pull/1619) Updated StripeClient snippets in README
|
92
|
-
* [#1621](https://github.com/stripe/stripe-ruby/pull/1621) Disable flaky test in jruby/truffleruby
|
93
145
|
* [#1620](https://github.com/stripe/stripe-ruby/pull/1620) Fix `raw_request` example in README
|
94
146
|
|
95
147
|
## 15.3.0-beta.2 - 2025-06-26
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1932
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
15.
|
1
|
+
15.6.0-beta.1
|
data/lib/stripe/api_requestor.rb
CHANGED
@@ -850,32 +850,20 @@ module Stripe
|
|
850
850
|
when "idempotency_error"
|
851
851
|
IdempotencyError.new(error_data[:message], **opts)
|
852
852
|
# switch cases: The beginning of the section generated from our OpenAPI spec
|
853
|
-
when "
|
854
|
-
|
855
|
-
when "non_zero_balance"
|
856
|
-
NonZeroBalanceError.new(error_data[:message], **opts)
|
853
|
+
when "already_canceled"
|
854
|
+
AlreadyCanceledError.new(error_data[:message], **opts)
|
857
855
|
when "already_exists"
|
858
856
|
AlreadyExistsError.new(error_data[:message], **opts)
|
857
|
+
when "blocked_by_stripe"
|
858
|
+
BlockedByStripeError.new(error_data[:message], **opts)
|
859
|
+
when "controlled_by_dashboard"
|
860
|
+
ControlledByDashboardError.new(error_data[:message], **opts)
|
859
861
|
when "feature_not_enabled"
|
860
862
|
FeatureNotEnabledError.new(error_data[:message], **opts)
|
861
863
|
when "financial_account_not_open"
|
862
864
|
FinancialAccountNotOpenError.new(error_data[:message], **opts)
|
863
|
-
when "blocked_by_stripe"
|
864
|
-
BlockedByStripeError.new(error_data[:message], **opts)
|
865
|
-
when "already_canceled"
|
866
|
-
AlreadyCanceledError.new(error_data[:message], **opts)
|
867
|
-
when "not_cancelable"
|
868
|
-
NotCancelableError.new(error_data[:message], **opts)
|
869
865
|
when "insufficient_funds"
|
870
866
|
InsufficientFundsError.new(error_data[:message], **opts)
|
871
|
-
when "quota_exceeded"
|
872
|
-
QuotaExceededError.new(error_data[:message], **opts)
|
873
|
-
when "recipient_not_notifiable"
|
874
|
-
RecipientNotNotifiableError.new(error_data[:message], **opts)
|
875
|
-
when "invalid_payout_method"
|
876
|
-
InvalidPayoutMethodError.new(error_data[:message], **opts)
|
877
|
-
when "controlled_by_dashboard"
|
878
|
-
ControlledByDashboardError.new(error_data[:message], **opts)
|
879
867
|
when "invalid_payment_method"
|
880
868
|
|
881
869
|
InvalidPaymentMethodError.new(
|
@@ -884,6 +872,18 @@ module Stripe
|
|
884
872
|
invalid_param: error_data[:invalid_param]
|
885
873
|
)
|
886
874
|
|
875
|
+
when "invalid_payout_method"
|
876
|
+
InvalidPayoutMethodError.new(error_data[:message], **opts)
|
877
|
+
when "non_zero_balance"
|
878
|
+
NonZeroBalanceError.new(error_data[:message], **opts)
|
879
|
+
when "not_cancelable"
|
880
|
+
NotCancelableError.new(error_data[:message], **opts)
|
881
|
+
when "quota_exceeded"
|
882
|
+
QuotaExceededError.new(error_data[:message], **opts)
|
883
|
+
when "recipient_not_notifiable"
|
884
|
+
RecipientNotNotifiableError.new(error_data[:message], **opts)
|
885
|
+
when "temporary_session_expired"
|
886
|
+
TemporarySessionExpiredError.new(error_data[:message], **opts)
|
887
887
|
# switch cases: The end of the section generated from our OpenAPI spec
|
888
888
|
else
|
889
889
|
specific_api_error(resp, error_data, context)
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/errors.rb
CHANGED
@@ -162,43 +162,25 @@ module Stripe
|
|
162
162
|
end
|
163
163
|
|
164
164
|
# class definitions: The beginning of the section generated from our OpenAPI spec
|
165
|
-
class
|
166
|
-
end
|
167
|
-
|
168
|
-
class NonZeroBalanceError < StripeError
|
165
|
+
class AlreadyCanceledError < StripeError
|
169
166
|
end
|
170
167
|
|
171
168
|
class AlreadyExistsError < StripeError
|
172
169
|
end
|
173
170
|
|
174
|
-
class FeatureNotEnabledError < StripeError
|
175
|
-
end
|
176
|
-
|
177
|
-
class FinancialAccountNotOpenError < StripeError
|
178
|
-
end
|
179
|
-
|
180
171
|
class BlockedByStripeError < StripeError
|
181
172
|
end
|
182
173
|
|
183
|
-
class
|
184
|
-
end
|
185
|
-
|
186
|
-
class NotCancelableError < StripeError
|
187
|
-
end
|
188
|
-
|
189
|
-
class InsufficientFundsError < StripeError
|
190
|
-
end
|
191
|
-
|
192
|
-
class QuotaExceededError < StripeError
|
174
|
+
class ControlledByDashboardError < StripeError
|
193
175
|
end
|
194
176
|
|
195
|
-
class
|
177
|
+
class FeatureNotEnabledError < StripeError
|
196
178
|
end
|
197
179
|
|
198
|
-
class
|
180
|
+
class FinancialAccountNotOpenError < StripeError
|
199
181
|
end
|
200
182
|
|
201
|
-
class
|
183
|
+
class InsufficientFundsError < StripeError
|
202
184
|
end
|
203
185
|
|
204
186
|
class InvalidPaymentMethodError < StripeError
|
@@ -224,5 +206,23 @@ module Stripe
|
|
224
206
|
@invalid_param = invalid_param
|
225
207
|
end
|
226
208
|
end
|
209
|
+
|
210
|
+
class InvalidPayoutMethodError < StripeError
|
211
|
+
end
|
212
|
+
|
213
|
+
class NonZeroBalanceError < StripeError
|
214
|
+
end
|
215
|
+
|
216
|
+
class NotCancelableError < StripeError
|
217
|
+
end
|
218
|
+
|
219
|
+
class QuotaExceededError < StripeError
|
220
|
+
end
|
221
|
+
|
222
|
+
class RecipientNotNotifiableError < StripeError
|
223
|
+
end
|
224
|
+
|
225
|
+
class TemporarySessionExpiredError < StripeError
|
226
|
+
end
|
227
227
|
# class definitions: The end of the section generated from our OpenAPI spec
|
228
228
|
end
|
@@ -319,13 +319,13 @@ module Stripe
|
|
319
319
|
|
320
320
|
class Verification < Stripe::StripeObject
|
321
321
|
class Document < Stripe::StripeObject
|
322
|
-
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
|
322
|
+
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
323
323
|
attr_reader :back
|
324
324
|
# A user-displayable string describing the verification state of this document.
|
325
325
|
attr_reader :details
|
326
326
|
# One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
|
327
327
|
attr_reader :details_code
|
328
|
-
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
|
328
|
+
# The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
329
329
|
attr_reader :front
|
330
330
|
end
|
331
331
|
# Attribute for field document
|
@@ -44,6 +44,14 @@ module Stripe
|
|
44
44
|
attr_reader :features
|
45
45
|
end
|
46
46
|
|
47
|
+
class BalanceReport < Stripe::StripeObject
|
48
|
+
class Features < Stripe::StripeObject; end
|
49
|
+
# Whether the embedded component is enabled.
|
50
|
+
attr_reader :enabled
|
51
|
+
# Attribute for field features
|
52
|
+
attr_reader :features
|
53
|
+
end
|
54
|
+
|
47
55
|
class Balances < Stripe::StripeObject
|
48
56
|
class Features < Stripe::StripeObject
|
49
57
|
# 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`.
|
@@ -253,6 +261,22 @@ module Stripe
|
|
253
261
|
attr_reader :features
|
254
262
|
end
|
255
263
|
|
264
|
+
class PayoutDetails < Stripe::StripeObject
|
265
|
+
class Features < Stripe::StripeObject; end
|
266
|
+
# Whether the embedded component is enabled.
|
267
|
+
attr_reader :enabled
|
268
|
+
# Attribute for field features
|
269
|
+
attr_reader :features
|
270
|
+
end
|
271
|
+
|
272
|
+
class PayoutReconciliationReport < Stripe::StripeObject
|
273
|
+
class Features < Stripe::StripeObject; end
|
274
|
+
# Whether the embedded component is enabled.
|
275
|
+
attr_reader :enabled
|
276
|
+
# Attribute for field features
|
277
|
+
attr_reader :features
|
278
|
+
end
|
279
|
+
|
256
280
|
class Payouts < Stripe::StripeObject
|
257
281
|
class Features < Stripe::StripeObject
|
258
282
|
# 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`.
|
@@ -299,6 +323,8 @@ module Stripe
|
|
299
323
|
attr_reader :account_management
|
300
324
|
# Attribute for field account_onboarding
|
301
325
|
attr_reader :account_onboarding
|
326
|
+
# Attribute for field balance_report
|
327
|
+
attr_reader :balance_report
|
302
328
|
# Attribute for field balances
|
303
329
|
attr_reader :balances
|
304
330
|
# Attribute for field capital_financing
|
@@ -329,6 +355,10 @@ module Stripe
|
|
329
355
|
attr_reader :payment_disputes
|
330
356
|
# Attribute for field payments
|
331
357
|
attr_reader :payments
|
358
|
+
# Attribute for field payout_details
|
359
|
+
attr_reader :payout_details
|
360
|
+
# Attribute for field payout_reconciliation_report
|
361
|
+
attr_reader :payout_reconciliation_report
|
332
362
|
# Attribute for field payouts
|
333
363
|
attr_reader :payouts
|
334
364
|
# Attribute for field payouts_list
|
@@ -433,6 +463,19 @@ module Stripe
|
|
433
463
|
end
|
434
464
|
end
|
435
465
|
|
466
|
+
class BalanceReport < Stripe::RequestParams
|
467
|
+
class Features < Stripe::RequestParams; end
|
468
|
+
# Whether the embedded component is enabled.
|
469
|
+
attr_accessor :enabled
|
470
|
+
# An empty list, because this embedded component has no features.
|
471
|
+
attr_accessor :features
|
472
|
+
|
473
|
+
def initialize(enabled: nil, features: nil)
|
474
|
+
@enabled = enabled
|
475
|
+
@features = features
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
436
479
|
class Balances < Stripe::RequestParams
|
437
480
|
class Features < Stripe::RequestParams
|
438
481
|
# 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`.
|
@@ -475,7 +518,7 @@ module Stripe
|
|
475
518
|
class Features < Stripe::RequestParams; end
|
476
519
|
# Whether the embedded component is enabled.
|
477
520
|
attr_accessor :enabled
|
478
|
-
#
|
521
|
+
# An empty list, because this embedded component has no features.
|
479
522
|
attr_accessor :features
|
480
523
|
|
481
524
|
def initialize(enabled: nil, features: nil)
|
@@ -488,7 +531,7 @@ module Stripe
|
|
488
531
|
class Features < Stripe::RequestParams; end
|
489
532
|
# Whether the embedded component is enabled.
|
490
533
|
attr_accessor :enabled
|
491
|
-
#
|
534
|
+
# An empty list, because this embedded component has no features.
|
492
535
|
attr_accessor :features
|
493
536
|
|
494
537
|
def initialize(enabled: nil, features: nil)
|
@@ -501,7 +544,7 @@ module Stripe
|
|
501
544
|
class Features < Stripe::RequestParams; end
|
502
545
|
# Whether the embedded component is enabled.
|
503
546
|
attr_accessor :enabled
|
504
|
-
#
|
547
|
+
# An empty list, because this embedded component has no features.
|
505
548
|
attr_accessor :features
|
506
549
|
|
507
550
|
def initialize(enabled: nil, features: nil)
|
@@ -514,7 +557,7 @@ module Stripe
|
|
514
557
|
class Features < Stripe::RequestParams; end
|
515
558
|
# Whether the embedded component is enabled.
|
516
559
|
attr_accessor :enabled
|
517
|
-
#
|
560
|
+
# An empty list, because this embedded component has no features.
|
518
561
|
attr_accessor :features
|
519
562
|
|
520
563
|
def initialize(enabled: nil, features: nil)
|
@@ -561,7 +604,7 @@ module Stripe
|
|
561
604
|
class Features < Stripe::RequestParams; end
|
562
605
|
# Whether the embedded component is enabled.
|
563
606
|
attr_accessor :enabled
|
564
|
-
#
|
607
|
+
# An empty list, because this embedded component has no features.
|
565
608
|
attr_accessor :features
|
566
609
|
|
567
610
|
def initialize(enabled: nil, features: nil)
|
@@ -574,7 +617,7 @@ module Stripe
|
|
574
617
|
class Features < Stripe::RequestParams; end
|
575
618
|
# Whether the embedded component is enabled.
|
576
619
|
attr_accessor :enabled
|
577
|
-
#
|
620
|
+
# An empty list, because this embedded component has no features.
|
578
621
|
attr_accessor :features
|
579
622
|
|
580
623
|
def initialize(enabled: nil, features: nil)
|
@@ -833,7 +876,7 @@ module Stripe
|
|
833
876
|
class Features < Stripe::RequestParams; end
|
834
877
|
# Whether the embedded component is enabled.
|
835
878
|
attr_accessor :enabled
|
836
|
-
#
|
879
|
+
# An empty list, because this embedded component has no features.
|
837
880
|
attr_accessor :features
|
838
881
|
|
839
882
|
def initialize(enabled: nil, features: nil)
|
@@ -876,6 +919,32 @@ module Stripe
|
|
876
919
|
end
|
877
920
|
end
|
878
921
|
|
922
|
+
class PayoutDetails < Stripe::RequestParams
|
923
|
+
class Features < Stripe::RequestParams; end
|
924
|
+
# Whether the embedded component is enabled.
|
925
|
+
attr_accessor :enabled
|
926
|
+
# An empty list, because this embedded component has no features.
|
927
|
+
attr_accessor :features
|
928
|
+
|
929
|
+
def initialize(enabled: nil, features: nil)
|
930
|
+
@enabled = enabled
|
931
|
+
@features = features
|
932
|
+
end
|
933
|
+
end
|
934
|
+
|
935
|
+
class PayoutReconciliationReport < Stripe::RequestParams
|
936
|
+
class Features < Stripe::RequestParams; end
|
937
|
+
# Whether the embedded component is enabled.
|
938
|
+
attr_accessor :enabled
|
939
|
+
# An empty list, because this embedded component has no features.
|
940
|
+
attr_accessor :features
|
941
|
+
|
942
|
+
def initialize(enabled: nil, features: nil)
|
943
|
+
@enabled = enabled
|
944
|
+
@features = features
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
879
948
|
class Payouts < Stripe::RequestParams
|
880
949
|
class Features < Stripe::RequestParams
|
881
950
|
# 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`.
|
@@ -918,7 +987,7 @@ module Stripe
|
|
918
987
|
class Features < Stripe::RequestParams; end
|
919
988
|
# Whether the embedded component is enabled.
|
920
989
|
attr_accessor :enabled
|
921
|
-
#
|
990
|
+
# An empty list, because this embedded component has no features.
|
922
991
|
attr_accessor :features
|
923
992
|
|
924
993
|
def initialize(enabled: nil, features: nil)
|
@@ -931,7 +1000,7 @@ module Stripe
|
|
931
1000
|
class Features < Stripe::RequestParams; end
|
932
1001
|
# Whether the embedded component is enabled.
|
933
1002
|
attr_accessor :enabled
|
934
|
-
#
|
1003
|
+
# An empty list, because this embedded component has no features.
|
935
1004
|
attr_accessor :features
|
936
1005
|
|
937
1006
|
def initialize(enabled: nil, features: nil)
|
@@ -964,7 +1033,7 @@ module Stripe
|
|
964
1033
|
class Features < Stripe::RequestParams; end
|
965
1034
|
# Whether the embedded component is enabled.
|
966
1035
|
attr_accessor :enabled
|
967
|
-
#
|
1036
|
+
# An empty list, because this embedded component has no features.
|
968
1037
|
attr_accessor :features
|
969
1038
|
|
970
1039
|
def initialize(enabled: nil, features: nil)
|
@@ -977,7 +1046,7 @@ module Stripe
|
|
977
1046
|
class Features < Stripe::RequestParams; end
|
978
1047
|
# Whether the embedded component is enabled.
|
979
1048
|
attr_accessor :enabled
|
980
|
-
#
|
1049
|
+
# An empty list, because this embedded component has no features.
|
981
1050
|
attr_accessor :features
|
982
1051
|
|
983
1052
|
def initialize(enabled: nil, features: nil)
|
@@ -990,7 +1059,7 @@ module Stripe
|
|
990
1059
|
class Features < Stripe::RequestParams; end
|
991
1060
|
# Whether the embedded component is enabled.
|
992
1061
|
attr_accessor :enabled
|
993
|
-
#
|
1062
|
+
# An empty list, because this embedded component has no features.
|
994
1063
|
attr_accessor :features
|
995
1064
|
|
996
1065
|
def initialize(enabled: nil, features: nil)
|
@@ -1003,7 +1072,7 @@ module Stripe
|
|
1003
1072
|
class Features < Stripe::RequestParams; end
|
1004
1073
|
# Whether the embedded component is enabled.
|
1005
1074
|
attr_accessor :enabled
|
1006
|
-
#
|
1075
|
+
# An empty list, because this embedded component has no features.
|
1007
1076
|
attr_accessor :features
|
1008
1077
|
|
1009
1078
|
def initialize(enabled: nil, features: nil)
|
@@ -1019,6 +1088,8 @@ module Stripe
|
|
1019
1088
|
attr_accessor :app_install
|
1020
1089
|
# Configuration for the [app viewport](/connect/supported-embedded-components/app-viewport/) embedded component.
|
1021
1090
|
attr_accessor :app_viewport
|
1091
|
+
# Configuration for the [balance report](/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
|
1092
|
+
attr_accessor :balance_report
|
1022
1093
|
# Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
|
1023
1094
|
attr_accessor :balances
|
1024
1095
|
# Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
|
@@ -1055,6 +1126,10 @@ module Stripe
|
|
1055
1126
|
attr_accessor :payment_method_settings
|
1056
1127
|
# Configuration for the [payments](/connect/supported-embedded-components/payments/) embedded component.
|
1057
1128
|
attr_accessor :payments
|
1129
|
+
# Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.
|
1130
|
+
attr_accessor :payout_details
|
1131
|
+
# Configuration for the [payout reconciliation report](/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
|
1132
|
+
attr_accessor :payout_reconciliation_report
|
1058
1133
|
# Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
|
1059
1134
|
attr_accessor :payouts
|
1060
1135
|
# Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
|
@@ -1077,6 +1152,7 @@ module Stripe
|
|
1077
1152
|
account_onboarding: nil,
|
1078
1153
|
app_install: nil,
|
1079
1154
|
app_viewport: nil,
|
1155
|
+
balance_report: nil,
|
1080
1156
|
balances: nil,
|
1081
1157
|
capital_financing: nil,
|
1082
1158
|
capital_financing_application: nil,
|
@@ -1095,6 +1171,8 @@ module Stripe
|
|
1095
1171
|
payment_disputes: nil,
|
1096
1172
|
payment_method_settings: nil,
|
1097
1173
|
payments: nil,
|
1174
|
+
payout_details: nil,
|
1175
|
+
payout_reconciliation_report: nil,
|
1098
1176
|
payouts: nil,
|
1099
1177
|
payouts_list: nil,
|
1100
1178
|
product_tax_code_selector: nil,
|
@@ -1108,6 +1186,7 @@ module Stripe
|
|
1108
1186
|
@account_onboarding = account_onboarding
|
1109
1187
|
@app_install = app_install
|
1110
1188
|
@app_viewport = app_viewport
|
1189
|
+
@balance_report = balance_report
|
1111
1190
|
@balances = balances
|
1112
1191
|
@capital_financing = capital_financing
|
1113
1192
|
@capital_financing_application = capital_financing_application
|
@@ -1126,6 +1205,8 @@ module Stripe
|
|
1126
1205
|
@payment_disputes = payment_disputes
|
1127
1206
|
@payment_method_settings = payment_method_settings
|
1128
1207
|
@payments = payments
|
1208
|
+
@payout_details = payout_details
|
1209
|
+
@payout_reconciliation_report = payout_reconciliation_report
|
1129
1210
|
@payouts = payouts
|
1130
1211
|
@payouts_list = payouts_list
|
1131
1212
|
@product_tax_code_selector = product_tax_code_selector
|
@@ -5,14 +5,9 @@ module Stripe
|
|
5
5
|
# This is an object representing your Stripe balance. You can retrieve it to see
|
6
6
|
# the balance currently on your Stripe account.
|
7
7
|
#
|
8
|
-
#
|
9
|
-
# [transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance
|
10
|
-
# (charges, payouts, and so forth).
|
8
|
+
# The top-level `available` and `pending` comprise your "payments balance."
|
11
9
|
#
|
12
|
-
#
|
13
|
-
# payment source types.
|
14
|
-
#
|
15
|
-
# Related guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
|
10
|
+
# Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)
|
16
11
|
class Balance < SingletonAPIResource
|
17
12
|
OBJECT_NAME = "balance"
|
18
13
|
def self.object_name
|