stripe 15.1.0 → 15.2.0
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 +34 -6
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/account.rb +47 -20
- data/lib/stripe/resources/account_session.rb +111 -7
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +1 -1
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +13 -5
- data/lib/stripe/resources/checkout/session.rb +20 -4
- data/lib/stripe/resources/confirmation_token.rb +33 -87
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +1 -2
- data/lib/stripe/resources/credit_note.rb +12 -9
- data/lib/stripe/resources/customer.rb +2 -4
- data/lib/stripe/resources/customer_session.rb +3 -3
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -11
- data/lib/stripe/resources/invoice.rb +114 -27
- data/lib/stripe/resources/invoice_item.rb +2 -3
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +196 -302
- data/lib/stripe/resources/payment_method.rb +46 -103
- data/lib/stripe/resources/payment_method_configuration.rb +297 -2
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +6 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +111 -281
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +89 -29
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +119 -4
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +1 -2
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +275 -3
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +38 -13
- data/lib/stripe/services/account_session_service.rb +75 -7
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +11 -3
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +7 -8
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +92 -23
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +176 -292
- data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +43 -100
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -3
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/setup_intent_service.rb +110 -280
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +93 -3
- data/lib/stripe/services/subscription_service.rb +77 -26
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +1 -2
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +106 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +46 -23
- data/rbi/stripe/resources/account_session.rbi +131 -12
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +1 -1
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +17 -5
- data/rbi/stripe/resources/checkout/session.rbi +22 -6
- data/rbi/stripe/resources/confirmation_token.rbi +33 -99
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +1 -3
- data/rbi/stripe/resources/credit_note.rbi +14 -9
- data/rbi/stripe/resources/customer.rbi +2 -6
- data/rbi/stripe/resources/customer_session.rbi +3 -3
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +1 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +20 -11
- data/rbi/stripe/resources/invoice.rbi +109 -33
- data/rbi/stripe/resources/invoice_item.rbi +2 -4
- data/rbi/stripe/resources/invoice_line_item.rbi +1 -1
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/payment_intent.rbi +201 -349
- data/rbi/stripe/resources/payment_method.rbi +46 -116
- data/rbi/stripe/resources/payment_method_configuration.rbi +334 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +2 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +2 -2
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +5 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +111 -325
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +99 -36
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +138 -10
- data/rbi/stripe/resources/tax/calculation.rbi +5 -1
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +3 -0
- data/rbi/stripe/resources/tax/registration.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +1 -3
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +1 -3
- data/rbi/stripe/resources/terminal/location.rbi +2 -4
- data/rbi/stripe/resources/terminal/reader.rbi +265 -5
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +2 -2
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +2 -4
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +1 -3
- data/rbi/stripe/services/account_service.rbi +40 -16
- data/rbi/stripe/services/account_session_service.rbi +86 -12
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +12 -5
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_service.rbi +7 -8
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +3 -7
- data/rbi/stripe/services/customer_tax_id_service.rbi +1 -3
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +5 -5
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +90 -29
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +179 -339
- data/rbi/stripe/services/payment_method_configuration_service.rbi +236 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +43 -113
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +110 -324
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +107 -9
- data/rbi/stripe/services/subscription_service.rbi +85 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +5 -1
- data/rbi/stripe/services/tax/registration_service.rbi +1 -1
- data/rbi/stripe/services/tax_id_service.rbi +1 -3
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +2 -4
- data/rbi/stripe/services/terminal/reader_service.rbi +115 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +33 -99
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +1 -1
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +4 -12
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 871a7ecc05861f249cad11b51617a359773b71518889865ae929c8a2a617b87b
|
4
|
+
data.tar.gz: b65099e942510572f3d501c154fc6f6951d063aab6990ec3d994143f80f87b7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865d99bee2b7d73007ae98f7a04e766a9882caf71a5f14c465cdb7053c1c4a43576a4493bf50da8d05459fd232fbfbbb959f3bec932b9ee59e63450cda0637d5
|
7
|
+
data.tar.gz: 6d1505c08160d5ee8877082e8b2f3ef348370d1802863a01e864978b68f18f8203bf0a0444e13845ee01ca2cb0eee5cc811836a99c6f545efd7b95478517a883
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,32 @@
|
|
1
1
|
# Changelog
|
2
|
+
## 15.2.0 - 2025-05-29
|
3
|
+
This release changes the pinned API version to `2025-05-28.basil`.
|
4
|
+
|
5
|
+
* [#1605](https://github.com/stripe/stripe-ruby/pull/1605) Update generated code
|
6
|
+
* Add support for `attach_payment` method on resource `Invoice`
|
7
|
+
* Add support for `collect_inputs` method on resource `Terminal::Reader`
|
8
|
+
* Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal::Reader`
|
9
|
+
* Add support for `pix_payments` on `Account::Capability`, `Account::CreateParams::Capability`, and `Account::UpdateParams::Capability`
|
10
|
+
* Add support for `disputes_list` and `payment_disputes` on `AccountSession::Component` and `AccountSession::CreateParams::Component`
|
11
|
+
* Add support for `refund_and_dispute_prefunding` on `Balance`
|
12
|
+
* Add support for `balance_type` on `BalanceTransaction`
|
13
|
+
* Change `Billing::Alert::CreateParams::UsageThreshold.meter` to be required
|
14
|
+
* Add support for `location` and `reader` on `Charge::PaymentMethodDetail::Affirm` and `Charge::PaymentMethodDetail::WechatPay`
|
15
|
+
* Add support for `payment_method_remove` on `Checkout::Session::CreateParams::SavedPaymentMethodOption`
|
16
|
+
* Add support for `setup_future_usage` on `Checkout::Session::PaymentMethodOption::NaverPay`
|
17
|
+
* Change `ConfirmationToken::PaymentMethodPreview::NaverPay.buyer_id` and `PaymentMethod::NaverPay.buyer_id` to be required
|
18
|
+
* Add support for `post_payment_amount` and `pre_payment_amount` on `CreditNote`
|
19
|
+
* Add support for `sex`, `unparsed_place_of_birth`, and `unparsed_sex` on `Identity::VerificationReport::Document` and `Identity::VerificationSession::VerifiedOutput`
|
20
|
+
* Add support for `billing_thresholds` on `Invoice::CreatePreviewParams::ScheduleDetail::Phase::Item`, `Invoice::CreatePreviewParams::ScheduleDetail::Phase`, `Invoice::CreatePreviewParams::SubscriptionDetail::Item`, `Subscription::CreateParams::Item`, `Subscription::CreateParams`, `Subscription::UpdateParams::Item`, `Subscription::UpdateParams`, `SubscriptionItem::CreateParams`, `SubscriptionItem::UpdateParams`, `SubscriptionItem`, `SubscriptionSchedule::CreateParams::DefaultSetting`, `SubscriptionSchedule::CreateParams::Phase::Item`, `SubscriptionSchedule::CreateParams::Phase`, `SubscriptionSchedule::DefaultSetting`, `SubscriptionSchedule::Phase::Item`, `SubscriptionSchedule::Phase`, `SubscriptionSchedule::UpdateParams::DefaultSetting`, `SubscriptionSchedule::UpdateParams::Phase::Item`, `SubscriptionSchedule::UpdateParams::Phase`, and `Subscription`
|
21
|
+
* Add support for `satispay` on `PaymentIntent::ConfirmParams::PaymentMethodOption`, `PaymentIntent::CreateParams::PaymentMethodOption`, `PaymentIntent::PaymentMethodOption`, and `PaymentIntent::UpdateParams::PaymentMethodOption`
|
22
|
+
* Add support for `capture_method` on `PaymentIntent::PaymentMethodOption::Billie`
|
23
|
+
* Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on `PaymentMethodConfiguration::CreateParams`, `PaymentMethodConfiguration::UpdateParams`, and `PaymentMethodConfiguration`
|
24
|
+
* Add support for `network_decline_code` on `Refund::DestinationDetail::Paypal`
|
25
|
+
* Add support for `metadata` on `Tax::Calculation::CreateParams::LineItem` and `Tax::CalculationLineItem`
|
26
|
+
* Add support for `return_url` on `Terminal::Reader::Action::ProcessPaymentIntent::ProcessConfig` and `Terminal::Reader::ProcessPaymentIntentParams::ProcessConfig`
|
27
|
+
* Add support for `collect_inputs` on `Terminal::Reader::Action`
|
28
|
+
* [#1601](https://github.com/stripe/stripe-ruby/pull/1601) Adds CONTRIBUTING.md
|
29
|
+
|
2
30
|
## 15.1.0 - 2025-04-30
|
3
31
|
|
4
32
|
This release changes the pinned API version to `2025-04-30.basil`.
|
@@ -34,12 +62,12 @@
|
|
34
62
|
* [#1576](https://github.com/stripe/stripe-ruby/pull/1576) Explicitly pass through custom headers in retrieve
|
35
63
|
* Fix custom options passing for resource-based retrieve
|
36
64
|
* [#1571](https://github.com/stripe/stripe-ruby/pull/1571) Validate all instance variable keys returned from the API
|
37
|
-
* Validate all keys returned from the API, including custom response fields, to make sure they can be set in an instance variable, as brought up in https://github.com/stripe/stripe-ruby/issues/1564
|
38
|
-
* We do not set instance variables for invalid field names (as defined by the [Ruby spec](https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident)). We recommend for custom hash map response fields, use the `[]` accessor.
|
39
|
-
```ruby
|
40
|
-
c = client.v1.customers.retrieve("cus_123")
|
41
|
-
c.metadata["invalid-variable-name!"]
|
42
|
-
c.metadata["valid_key_name_works_too"]
|
65
|
+
* Validate all keys returned from the API, including custom response fields, to make sure they can be set in an instance variable, as brought up in https://github.com/stripe/stripe-ruby/issues/1564
|
66
|
+
* We do not set instance variables for invalid field names (as defined by the [Ruby spec](https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident)). We recommend for custom hash map response fields, use the `[]` accessor.
|
67
|
+
```ruby
|
68
|
+
c = client.v1.customers.retrieve("cus_123")
|
69
|
+
c.metadata["invalid-variable-name!"]
|
70
|
+
c.metadata["valid_key_name_works_too"]
|
43
71
|
```
|
44
72
|
* [#1575](https://github.com/stripe/stripe-ruby/pull/1575) Remove unused youtube playlist link
|
45
73
|
* [#1573](https://github.com/stripe/stripe-ruby/pull/1573) Remove link for stale youtube video playlist
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
# Contributing
|
3
|
+
|
4
|
+
We welcome bug reports, feature requests, and code contributions in a pull request.
|
5
|
+
|
6
|
+
For most pull requests, we request that you identify or create an associated issue that has the necessary context. We use these issues to reach agreement on an approach and save the PR author from having to redo work. Fixing typos or documentation issues likely do not need an issue; for any issue that introduces substantial code changes, changes the public interface, or if you aren't sure, please find or [create an issue](https://www.github.com/stripe/stripe-ruby/issues/new/choose).
|
7
|
+
|
8
|
+
## Contributor License Agreement
|
9
|
+
|
10
|
+
All contributors must sign the Contributor License Agreement (CLA) before we can accept their contribution. If you have not yet signed the agreement, you will be given an option to do so when you open a pull request. You can then sign by clicking on the badge in the comment from @CLAassistant.
|
11
|
+
|
12
|
+
## Generated code
|
13
|
+
|
14
|
+
This project has a combination of manually maintained code and code generated from our private code generator. If your contribution involves changes to generated code, please call this out in the issue or pull request as we will likely need to make a change to our code generator before accepting the contribution.
|
15
|
+
|
16
|
+
To identify files with purely generated code, look for the comment `File generated from our OpenAPI spec.` at the start of the file. Generated blocks of code within hand-written files will be between comments that say `The beginning of the section generated from our OpenAPI spec` and `The end of the section generated from our OpenAPI spec`.
|
17
|
+
|
18
|
+
## Compatibility with supported language and runtime versions
|
19
|
+
|
20
|
+
This project supports [many different langauge and runtime versions](README.md#requirements) and we are unable to accept any contribution that does not work on _all_ supported versions. If, after discussing the approach in the associated issue, your change must use an API / feature that isn't available in all supported versions, please call this out explicitly in the issue or pull request so we can help figure out the best way forward.
|
21
|
+
|
22
|
+
## Set up your dev environment
|
23
|
+
|
24
|
+
Please refer to this project's [README.md](README.md#development) for instructions on how to set up your development environment.
|
25
|
+
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1773
|
data/README.md
CHANGED
@@ -353,22 +353,25 @@ by default. If you are overriding `Stripe.api_version` / `stripe_version` on the
|
|
353
353
|
or using a webhook endpoint tied to an older version, be aware that the data
|
354
354
|
you see at runtime may not match the types.
|
355
355
|
|
356
|
-
###
|
356
|
+
### Public Preview SDKs
|
357
357
|
|
358
|
-
Stripe has features in the
|
359
|
-
We would love for you to try these
|
360
|
-
|
358
|
+
Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `11.2.0-beta.2`.
|
359
|
+
We would love for you to try these as we incrementally release new features and improve them based on your feedback.
|
360
|
+
|
361
|
+
To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-ruby/releases/) and use it in the `gem install` command:
|
361
362
|
|
362
363
|
```sh
|
363
|
-
gem install stripe -v
|
364
|
+
gem install stripe -v <replace-with-the-version-of-your-choice>
|
364
365
|
```
|
365
366
|
|
367
|
+
You can find the latest version to use in this command from the [releases page](https://github.com/stripe/stripe-ruby/releases/)
|
368
|
+
|
366
369
|
> **Note**
|
367
|
-
> There can be breaking changes between
|
370
|
+
> There can be breaking changes between two versions of the public preview SDKs without a bump in the major version. Therefore we recommend pinning the package version to a specific version in your Gemfile. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest version of the public preview SDK.
|
368
371
|
|
369
372
|
We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
|
370
373
|
|
371
|
-
|
374
|
+
Some preview features require a name and version to be set in the `Stripe-Version` header like `feature_beta=v3`. If your preview feature has this requirement, use the `Stripe.add_beta_version` function (available only in the public preview SDKs):
|
372
375
|
|
373
376
|
```python
|
374
377
|
Stripe.add_beta_version("feature_beta", "v3")
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
15.
|
1
|
+
15.2.0
|
data/lib/stripe/api_version.rb
CHANGED
@@ -6,14 +6,14 @@ module Stripe
|
|
6
6
|
# properties on the account like its current requirements or if the account is
|
7
7
|
# enabled to make live charges or receive payouts.
|
8
8
|
#
|
9
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
9
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
10
10
|
# is `application`, which includes Custom accounts, the properties below are always
|
11
11
|
# returned.
|
12
12
|
#
|
13
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
13
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
14
14
|
# is `stripe`, which includes Standard and Express accounts, some properties are only returned
|
15
|
-
# until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
|
16
|
-
# to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
|
15
|
+
# until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
|
16
|
+
# to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
|
17
17
|
class Account < APIResource
|
18
18
|
extend Stripe::APIOperations::Create
|
19
19
|
include Stripe::APIOperations::Delete
|
@@ -174,6 +174,8 @@ module Stripe
|
|
174
174
|
attr_reader :payco_payments
|
175
175
|
# The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
176
176
|
attr_reader :paynow_payments
|
177
|
+
# The status of the pix payments capability of the account, or whether the account can directly process pix charges.
|
178
|
+
attr_reader :pix_payments
|
177
179
|
# The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
178
180
|
attr_reader :promptpay_payments
|
179
181
|
# The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
|
@@ -590,8 +592,7 @@ module Stripe
|
|
590
592
|
attr_reader :user_agent
|
591
593
|
end
|
592
594
|
|
593
|
-
class DeleteParams < Stripe::RequestParams
|
594
|
-
end
|
595
|
+
class DeleteParams < Stripe::RequestParams; end
|
595
596
|
|
596
597
|
class UpdateParams < Stripe::RequestParams
|
597
598
|
class BankAccount < Stripe::RequestParams
|
@@ -1111,6 +1112,15 @@ module Stripe
|
|
1111
1112
|
end
|
1112
1113
|
end
|
1113
1114
|
|
1115
|
+
class PixPayments < Stripe::RequestParams
|
1116
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1117
|
+
attr_accessor :requested
|
1118
|
+
|
1119
|
+
def initialize(requested: nil)
|
1120
|
+
@requested = requested
|
1121
|
+
end
|
1122
|
+
end
|
1123
|
+
|
1114
1124
|
class PromptpayPayments < Stripe::RequestParams
|
1115
1125
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
1116
1126
|
attr_accessor :requested
|
@@ -1336,6 +1346,8 @@ module Stripe
|
|
1336
1346
|
attr_accessor :payco_payments
|
1337
1347
|
# The paynow_payments capability.
|
1338
1348
|
attr_accessor :paynow_payments
|
1349
|
+
# The pix_payments capability.
|
1350
|
+
attr_accessor :pix_payments
|
1339
1351
|
# The promptpay_payments capability.
|
1340
1352
|
attr_accessor :promptpay_payments
|
1341
1353
|
# The revolut_pay_payments capability.
|
@@ -1411,6 +1423,7 @@ module Stripe
|
|
1411
1423
|
pay_by_bank_payments: nil,
|
1412
1424
|
payco_payments: nil,
|
1413
1425
|
paynow_payments: nil,
|
1426
|
+
pix_payments: nil,
|
1414
1427
|
promptpay_payments: nil,
|
1415
1428
|
revolut_pay_payments: nil,
|
1416
1429
|
samsung_pay_payments: nil,
|
@@ -1469,6 +1482,7 @@ module Stripe
|
|
1469
1482
|
@pay_by_bank_payments = pay_by_bank_payments
|
1470
1483
|
@payco_payments = payco_payments
|
1471
1484
|
@paynow_payments = paynow_payments
|
1485
|
+
@pix_payments = pix_payments
|
1472
1486
|
@promptpay_payments = promptpay_payments
|
1473
1487
|
@revolut_pay_payments = revolut_pay_payments
|
1474
1488
|
@samsung_pay_payments = samsung_pay_payments
|
@@ -3110,6 +3124,15 @@ module Stripe
|
|
3110
3124
|
end
|
3111
3125
|
end
|
3112
3126
|
|
3127
|
+
class PixPayments < Stripe::RequestParams
|
3128
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3129
|
+
attr_accessor :requested
|
3130
|
+
|
3131
|
+
def initialize(requested: nil)
|
3132
|
+
@requested = requested
|
3133
|
+
end
|
3134
|
+
end
|
3135
|
+
|
3113
3136
|
class PromptpayPayments < Stripe::RequestParams
|
3114
3137
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
3115
3138
|
attr_accessor :requested
|
@@ -3335,6 +3358,8 @@ module Stripe
|
|
3335
3358
|
attr_accessor :payco_payments
|
3336
3359
|
# The paynow_payments capability.
|
3337
3360
|
attr_accessor :paynow_payments
|
3361
|
+
# The pix_payments capability.
|
3362
|
+
attr_accessor :pix_payments
|
3338
3363
|
# The promptpay_payments capability.
|
3339
3364
|
attr_accessor :promptpay_payments
|
3340
3365
|
# The revolut_pay_payments capability.
|
@@ -3410,6 +3435,7 @@ module Stripe
|
|
3410
3435
|
pay_by_bank_payments: nil,
|
3411
3436
|
payco_payments: nil,
|
3412
3437
|
paynow_payments: nil,
|
3438
|
+
pix_payments: nil,
|
3413
3439
|
promptpay_payments: nil,
|
3414
3440
|
revolut_pay_payments: nil,
|
3415
3441
|
samsung_pay_payments: nil,
|
@@ -3468,6 +3494,7 @@ module Stripe
|
|
3468
3494
|
@pay_by_bank_payments = pay_by_bank_payments
|
3469
3495
|
@payco_payments = payco_payments
|
3470
3496
|
@paynow_payments = paynow_payments
|
3497
|
+
@pix_payments = pix_payments
|
3471
3498
|
@promptpay_payments = promptpay_payments
|
3472
3499
|
@revolut_pay_payments = revolut_pay_payments
|
3473
3500
|
@samsung_pay_payments = samsung_pay_payments
|
@@ -4727,21 +4754,21 @@ module Stripe
|
|
4727
4754
|
# Always true for a deleted object
|
4728
4755
|
attr_reader :deleted
|
4729
4756
|
|
4730
|
-
# With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
|
4757
|
+
# With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
|
4731
4758
|
# To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
4732
4759
|
#
|
4733
|
-
# If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
|
4760
|
+
# If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
|
4734
4761
|
# creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
|
4735
4762
|
# You can prefill any information on the account.
|
4736
4763
|
def self.create(params = {}, opts = {})
|
4737
4764
|
request_stripe_object(method: :post, path: "/v1/accounts", params: params, opts: opts)
|
4738
4765
|
end
|
4739
4766
|
|
4740
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
4767
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
4741
4768
|
#
|
4742
4769
|
# Test-mode accounts can be deleted at any time.
|
4743
4770
|
#
|
4744
|
-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
|
4771
|
+
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
4745
4772
|
#
|
4746
4773
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4747
4774
|
def self.delete(account, params = {}, opts = {})
|
@@ -4753,11 +4780,11 @@ module Stripe
|
|
4753
4780
|
)
|
4754
4781
|
end
|
4755
4782
|
|
4756
|
-
# With [Connect](https://stripe.com/connect), you can delete accounts you manage.
|
4783
|
+
# With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
4757
4784
|
#
|
4758
4785
|
# Test-mode accounts can be deleted at any time.
|
4759
4786
|
#
|
4760
|
-
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
|
4787
|
+
# Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
4761
4788
|
#
|
4762
4789
|
# If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
4763
4790
|
def delete(params = {}, opts = {})
|
@@ -4769,7 +4796,7 @@ module Stripe
|
|
4769
4796
|
)
|
4770
4797
|
end
|
4771
4798
|
|
4772
|
-
# Returns a list of accounts connected to your platform via [Connect](https://stripe.com/docs/connect). If you're not a platform, the list is empty.
|
4799
|
+
# Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
|
4773
4800
|
def self.list(params = {}, opts = {})
|
4774
4801
|
request_stripe_object(method: :get, path: "/v1/accounts", params: params, opts: opts)
|
4775
4802
|
end
|
@@ -4794,7 +4821,7 @@ module Stripe
|
|
4794
4821
|
)
|
4795
4822
|
end
|
4796
4823
|
|
4797
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4824
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4798
4825
|
#
|
4799
4826
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
4800
4827
|
def reject(params = {}, opts = {})
|
@@ -4806,7 +4833,7 @@ module Stripe
|
|
4806
4833
|
)
|
4807
4834
|
end
|
4808
4835
|
|
4809
|
-
# With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4836
|
+
# With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
4810
4837
|
#
|
4811
4838
|
# Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
4812
4839
|
def self.reject(account, params = {}, opts = {})
|
@@ -4818,19 +4845,19 @@ module Stripe
|
|
4818
4845
|
)
|
4819
4846
|
end
|
4820
4847
|
|
4821
|
-
# Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
4848
|
+
# Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
4822
4849
|
# left unchanged.
|
4823
4850
|
#
|
4824
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4851
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4825
4852
|
# is application, which includes Custom accounts, you can update any information on the account.
|
4826
4853
|
#
|
4827
|
-
# For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4854
|
+
# For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
4828
4855
|
# is stripe, which includes Standard and Express accounts, you can update all information until you create
|
4829
|
-
# an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
|
4856
|
+
# an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
|
4830
4857
|
# after which some properties can no longer be updated.
|
4831
4858
|
#
|
4832
4859
|
# To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
4833
|
-
# [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
4860
|
+
# [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
4834
4861
|
def self.update(account, params = {}, opts = {})
|
4835
4862
|
request_stripe_object(
|
4836
4863
|
method: :post,
|
@@ -63,6 +63,23 @@ module Stripe
|
|
63
63
|
attr_reader :features
|
64
64
|
end
|
65
65
|
|
66
|
+
class DisputesList < Stripe::StripeObject
|
67
|
+
class Features < Stripe::StripeObject
|
68
|
+
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
69
|
+
attr_reader :capture_payments
|
70
|
+
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
71
|
+
attr_reader :destination_on_behalf_of_charge_management
|
72
|
+
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
73
|
+
attr_reader :dispute_management
|
74
|
+
# Whether to allow sending refunds. This is `true` by default.
|
75
|
+
attr_reader :refund_management
|
76
|
+
end
|
77
|
+
# Whether the embedded component is enabled.
|
78
|
+
attr_reader :enabled
|
79
|
+
# Attribute for field features
|
80
|
+
attr_reader :features
|
81
|
+
end
|
82
|
+
|
66
83
|
class Documents < Stripe::StripeObject
|
67
84
|
class Features < Stripe::StripeObject; end
|
68
85
|
# Whether the embedded component is enabled.
|
@@ -165,6 +182,21 @@ module Stripe
|
|
165
182
|
attr_reader :features
|
166
183
|
end
|
167
184
|
|
185
|
+
class PaymentDisputes < Stripe::StripeObject
|
186
|
+
class Features < Stripe::StripeObject
|
187
|
+
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
188
|
+
attr_reader :destination_on_behalf_of_charge_management
|
189
|
+
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
190
|
+
attr_reader :dispute_management
|
191
|
+
# Whether to allow sending refunds. This is `true` by default.
|
192
|
+
attr_reader :refund_management
|
193
|
+
end
|
194
|
+
# Whether the embedded component is enabled.
|
195
|
+
attr_reader :enabled
|
196
|
+
# Attribute for field features
|
197
|
+
attr_reader :features
|
198
|
+
end
|
199
|
+
|
168
200
|
class Payments < Stripe::StripeObject
|
169
201
|
class Features < Stripe::StripeObject
|
170
202
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
@@ -230,6 +262,8 @@ module Stripe
|
|
230
262
|
attr_reader :account_onboarding
|
231
263
|
# Attribute for field balances
|
232
264
|
attr_reader :balances
|
265
|
+
# Attribute for field disputes_list
|
266
|
+
attr_reader :disputes_list
|
233
267
|
# Attribute for field documents
|
234
268
|
attr_reader :documents
|
235
269
|
# Attribute for field financial_account
|
@@ -244,6 +278,8 @@ module Stripe
|
|
244
278
|
attr_reader :notification_banner
|
245
279
|
# Attribute for field payment_details
|
246
280
|
attr_reader :payment_details
|
281
|
+
# Attribute for field payment_disputes
|
282
|
+
attr_reader :payment_disputes
|
247
283
|
# Attribute for field payments
|
248
284
|
attr_reader :payments
|
249
285
|
# Attribute for field payouts
|
@@ -348,8 +384,28 @@ module Stripe
|
|
348
384
|
end
|
349
385
|
end
|
350
386
|
|
351
|
-
class
|
387
|
+
class DisputesList < Stripe::RequestParams
|
352
388
|
class Features < Stripe::RequestParams
|
389
|
+
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
390
|
+
attr_accessor :capture_payments
|
391
|
+
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
392
|
+
attr_accessor :destination_on_behalf_of_charge_management
|
393
|
+
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
394
|
+
attr_accessor :dispute_management
|
395
|
+
# Whether to allow sending refunds. This is `true` by default.
|
396
|
+
attr_accessor :refund_management
|
397
|
+
|
398
|
+
def initialize(
|
399
|
+
capture_payments: nil,
|
400
|
+
destination_on_behalf_of_charge_management: nil,
|
401
|
+
dispute_management: nil,
|
402
|
+
refund_management: nil
|
403
|
+
)
|
404
|
+
@capture_payments = capture_payments
|
405
|
+
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
|
406
|
+
@dispute_management = dispute_management
|
407
|
+
@refund_management = refund_management
|
408
|
+
end
|
353
409
|
end
|
354
410
|
# Whether the embedded component is enabled.
|
355
411
|
attr_accessor :enabled
|
@@ -362,6 +418,19 @@ module Stripe
|
|
362
418
|
end
|
363
419
|
end
|
364
420
|
|
421
|
+
class Documents < Stripe::RequestParams
|
422
|
+
class Features < Stripe::RequestParams; end
|
423
|
+
# Whether the embedded component is enabled.
|
424
|
+
attr_accessor :enabled
|
425
|
+
# The list of features enabled in the embedded component.
|
426
|
+
attr_accessor :features
|
427
|
+
|
428
|
+
def initialize(enabled: nil, features: nil)
|
429
|
+
@enabled = enabled
|
430
|
+
@features = features
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
365
434
|
class FinancialAccount < Stripe::RequestParams
|
366
435
|
class Features < Stripe::RequestParams
|
367
436
|
# Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. 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.
|
@@ -548,6 +617,36 @@ module Stripe
|
|
548
617
|
end
|
549
618
|
end
|
550
619
|
|
620
|
+
class PaymentDisputes < Stripe::RequestParams
|
621
|
+
class Features < Stripe::RequestParams
|
622
|
+
# Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
|
623
|
+
attr_accessor :destination_on_behalf_of_charge_management
|
624
|
+
# Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
|
625
|
+
attr_accessor :dispute_management
|
626
|
+
# Whether to allow sending refunds. This is `true` by default.
|
627
|
+
attr_accessor :refund_management
|
628
|
+
|
629
|
+
def initialize(
|
630
|
+
destination_on_behalf_of_charge_management: nil,
|
631
|
+
dispute_management: nil,
|
632
|
+
refund_management: nil
|
633
|
+
)
|
634
|
+
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
|
635
|
+
@dispute_management = dispute_management
|
636
|
+
@refund_management = refund_management
|
637
|
+
end
|
638
|
+
end
|
639
|
+
# Whether the embedded component is enabled.
|
640
|
+
attr_accessor :enabled
|
641
|
+
# The list of features enabled in the embedded component.
|
642
|
+
attr_accessor :features
|
643
|
+
|
644
|
+
def initialize(enabled: nil, features: nil)
|
645
|
+
@enabled = enabled
|
646
|
+
@features = features
|
647
|
+
end
|
648
|
+
end
|
649
|
+
|
551
650
|
class Payments < Stripe::RequestParams
|
552
651
|
class Features < Stripe::RequestParams
|
553
652
|
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
@@ -621,8 +720,7 @@ module Stripe
|
|
621
720
|
end
|
622
721
|
|
623
722
|
class PayoutsList < Stripe::RequestParams
|
624
|
-
class Features < Stripe::RequestParams
|
625
|
-
end
|
723
|
+
class Features < Stripe::RequestParams; end
|
626
724
|
# Whether the embedded component is enabled.
|
627
725
|
attr_accessor :enabled
|
628
726
|
# The list of features enabled in the embedded component.
|
@@ -635,8 +733,7 @@ module Stripe
|
|
635
733
|
end
|
636
734
|
|
637
735
|
class TaxRegistrations < Stripe::RequestParams
|
638
|
-
class Features < Stripe::RequestParams
|
639
|
-
end
|
736
|
+
class Features < Stripe::RequestParams; end
|
640
737
|
# Whether the embedded component is enabled.
|
641
738
|
attr_accessor :enabled
|
642
739
|
# The list of features enabled in the embedded component.
|
@@ -649,8 +746,7 @@ module Stripe
|
|
649
746
|
end
|
650
747
|
|
651
748
|
class TaxSettings < Stripe::RequestParams
|
652
|
-
class Features < Stripe::RequestParams
|
653
|
-
end
|
749
|
+
class Features < Stripe::RequestParams; end
|
654
750
|
# Whether the embedded component is enabled.
|
655
751
|
attr_accessor :enabled
|
656
752
|
# The list of features enabled in the embedded component.
|
@@ -667,6 +763,8 @@ module Stripe
|
|
667
763
|
attr_accessor :account_onboarding
|
668
764
|
# Configuration for the balances embedded component.
|
669
765
|
attr_accessor :balances
|
766
|
+
# Configuration for the disputes list embedded component.
|
767
|
+
attr_accessor :disputes_list
|
670
768
|
# Configuration for the documents embedded component.
|
671
769
|
attr_accessor :documents
|
672
770
|
# Configuration for the financial account embedded component.
|
@@ -681,6 +779,8 @@ module Stripe
|
|
681
779
|
attr_accessor :notification_banner
|
682
780
|
# Configuration for the payment details embedded component.
|
683
781
|
attr_accessor :payment_details
|
782
|
+
# Configuration for the payment disputes embedded component.
|
783
|
+
attr_accessor :payment_disputes
|
684
784
|
# Configuration for the payments embedded component.
|
685
785
|
attr_accessor :payments
|
686
786
|
# Configuration for the payouts embedded component.
|
@@ -696,6 +796,7 @@ module Stripe
|
|
696
796
|
account_management: nil,
|
697
797
|
account_onboarding: nil,
|
698
798
|
balances: nil,
|
799
|
+
disputes_list: nil,
|
699
800
|
documents: nil,
|
700
801
|
financial_account: nil,
|
701
802
|
financial_account_transactions: nil,
|
@@ -703,6 +804,7 @@ module Stripe
|
|
703
804
|
issuing_cards_list: nil,
|
704
805
|
notification_banner: nil,
|
705
806
|
payment_details: nil,
|
807
|
+
payment_disputes: nil,
|
706
808
|
payments: nil,
|
707
809
|
payouts: nil,
|
708
810
|
payouts_list: nil,
|
@@ -712,6 +814,7 @@ module Stripe
|
|
712
814
|
@account_management = account_management
|
713
815
|
@account_onboarding = account_onboarding
|
714
816
|
@balances = balances
|
817
|
+
@disputes_list = disputes_list
|
715
818
|
@documents = documents
|
716
819
|
@financial_account = financial_account
|
717
820
|
@financial_account_transactions = financial_account_transactions
|
@@ -719,6 +822,7 @@ module Stripe
|
|
719
822
|
@issuing_cards_list = issuing_cards_list
|
720
823
|
@notification_banner = notification_banner
|
721
824
|
@payment_details = payment_details
|
825
|
+
@payment_disputes = payment_disputes
|
722
826
|
@payments = payments
|
723
827
|
@payouts = payouts
|
724
828
|
@payouts_list = payouts_list
|
@@ -126,6 +126,46 @@ module Stripe
|
|
126
126
|
# Attribute for field source_types
|
127
127
|
attr_reader :source_types
|
128
128
|
end
|
129
|
+
|
130
|
+
class RefundAndDisputePrefunding < Stripe::StripeObject
|
131
|
+
class Available < Stripe::StripeObject
|
132
|
+
class SourceTypes < Stripe::StripeObject
|
133
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
134
|
+
attr_reader :bank_account
|
135
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
136
|
+
attr_reader :card
|
137
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
138
|
+
attr_reader :fpx
|
139
|
+
end
|
140
|
+
# Balance amount.
|
141
|
+
attr_reader :amount
|
142
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
143
|
+
attr_reader :currency
|
144
|
+
# Attribute for field source_types
|
145
|
+
attr_reader :source_types
|
146
|
+
end
|
147
|
+
|
148
|
+
class Pending < Stripe::StripeObject
|
149
|
+
class SourceTypes < Stripe::StripeObject
|
150
|
+
# Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
151
|
+
attr_reader :bank_account
|
152
|
+
# Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
153
|
+
attr_reader :card
|
154
|
+
# Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
155
|
+
attr_reader :fpx
|
156
|
+
end
|
157
|
+
# Balance amount.
|
158
|
+
attr_reader :amount
|
159
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
160
|
+
attr_reader :currency
|
161
|
+
# Attribute for field source_types
|
162
|
+
attr_reader :source_types
|
163
|
+
end
|
164
|
+
# Funds that are available for use.
|
165
|
+
attr_reader :available
|
166
|
+
# Funds that are pending
|
167
|
+
attr_reader :pending
|
168
|
+
end
|
129
169
|
# Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
130
170
|
attr_reader :available
|
131
171
|
# Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
@@ -140,5 +180,7 @@ module Stripe
|
|
140
180
|
attr_reader :object
|
141
181
|
# Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
|
142
182
|
attr_reader :pending
|
183
|
+
# Attribute for field refund_and_dispute_prefunding
|
184
|
+
attr_reader :refund_and_dispute_prefunding
|
143
185
|
end
|
144
186
|
end
|