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
@@ -90,6 +90,8 @@ module Stripe
|
|
90
90
|
attr_reader :amount
|
91
91
|
# The date that the transaction's net funds become available in the Stripe balance.
|
92
92
|
attr_reader :available_on
|
93
|
+
# The balance that this transaction impacts.
|
94
|
+
attr_reader :balance_type
|
93
95
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
94
96
|
attr_reader :created
|
95
97
|
# 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).
|
@@ -4,11 +4,11 @@
|
|
4
4
|
module Stripe
|
5
5
|
# These bank accounts are payment methods on `Customer` objects.
|
6
6
|
#
|
7
|
-
# On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
|
7
|
+
# On the other hand [External Accounts](https://docs.stripe.com/api#external_accounts) are transfer
|
8
8
|
# destinations on `Account` objects for connected accounts.
|
9
9
|
# They can be bank accounts or debit cards as well, and are documented in the links above.
|
10
10
|
#
|
11
|
-
# Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
|
11
|
+
# Related guide: [Bank debits and transfers](https://docs.stripe.com/payments/bank-debits-transfers)
|
12
12
|
class BankAccount < APIResource
|
13
13
|
include Stripe::APIOperations::Delete
|
14
14
|
extend Stripe::APIOperations::List
|
@@ -16,7 +16,7 @@ module Stripe
|
|
16
16
|
# Create sessions on-demand when customers intend to manage their subscriptions
|
17
17
|
# and billing details.
|
18
18
|
#
|
19
|
-
# Related guide: [Customer management](https://stripe.com/customer-management)
|
19
|
+
# Related guide: [Customer management](https://docs.stripe.com/customer-management)
|
20
20
|
class Session < APIResource
|
21
21
|
extend Stripe::APIOperations::Create
|
22
22
|
|
@@ -65,7 +65,7 @@ module Stripe
|
|
65
65
|
end
|
66
66
|
# Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
67
67
|
attr_reader :alternatives
|
68
|
-
#
|
68
|
+
# The date by which all required account information must be both submitted and verified. This includes fields listed in `currently_due` as well as those in `pending_verification`. If any required information is missing or unverified by this date, the account may be disabled. Note that `current_deadline` may change if additional `currently_due` requirements are requested.
|
69
69
|
attr_reader :current_deadline
|
70
70
|
# Fields that need to be collected to keep the capability enabled. If not collected by `current_deadline`, these fields appear in `past_due` as well, and the capability is disabled.
|
71
71
|
attr_reader :currently_due
|
@@ -157,6 +157,10 @@ module Stripe
|
|
157
157
|
end
|
158
158
|
|
159
159
|
class Affirm < Stripe::StripeObject
|
160
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
161
|
+
attr_reader :location
|
162
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
163
|
+
attr_reader :reader
|
160
164
|
# The Affirm transaction ID associated with this payment.
|
161
165
|
attr_reader :transaction_id
|
162
166
|
end
|
@@ -978,6 +982,10 @@ module Stripe
|
|
978
982
|
class WechatPay < Stripe::StripeObject
|
979
983
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
980
984
|
attr_reader :fingerprint
|
985
|
+
# ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
986
|
+
attr_reader :location
|
987
|
+
# ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
988
|
+
attr_reader :reader
|
981
989
|
# Transaction ID of this particular WeChat Pay transaction.
|
982
990
|
attr_reader :transaction_id
|
983
991
|
end
|
@@ -1636,9 +1644,9 @@ module Stripe
|
|
1636
1644
|
|
1637
1645
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
1638
1646
|
#
|
1639
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
1647
|
+
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
1640
1648
|
#
|
1641
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
1649
|
+
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
1642
1650
|
def capture(params = {}, opts = {})
|
1643
1651
|
request_stripe_object(
|
1644
1652
|
method: :post,
|
@@ -1650,9 +1658,9 @@ module Stripe
|
|
1650
1658
|
|
1651
1659
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
1652
1660
|
#
|
1653
|
-
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
1661
|
+
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
1654
1662
|
#
|
1655
|
-
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://stripe.com/docs/api/payment_intents/capture).
|
1663
|
+
# Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
1656
1664
|
def self.capture(charge, params = {}, opts = {})
|
1657
1665
|
request_stripe_object(
|
1658
1666
|
method: :post,
|
@@ -1662,7 +1670,7 @@ module Stripe
|
|
1662
1670
|
)
|
1663
1671
|
end
|
1664
1672
|
|
1665
|
-
# This method is no longer recommended—use the [Payment Intents API](https://stripe.com/docs/api/payment_intents)
|
1673
|
+
# This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
|
1666
1674
|
# to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
|
1667
1675
|
# object used to request payment.
|
1668
1676
|
def self.create(params = {}, opts = {})
|
@@ -677,6 +677,14 @@ module Stripe
|
|
677
677
|
class NaverPay < Stripe::StripeObject
|
678
678
|
# Controls when the funds will be captured from the customer's account.
|
679
679
|
attr_reader :capture_method
|
680
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
681
|
+
#
|
682
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
683
|
+
#
|
684
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
685
|
+
#
|
686
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
687
|
+
attr_reader :setup_future_usage
|
680
688
|
end
|
681
689
|
|
682
690
|
class Oxxo < Stripe::StripeObject
|
@@ -2320,8 +2328,7 @@ module Stripe
|
|
2320
2328
|
end
|
2321
2329
|
end
|
2322
2330
|
|
2323
|
-
class PayByBank < Stripe::RequestParams
|
2324
|
-
end
|
2331
|
+
class PayByBank < Stripe::RequestParams; end
|
2325
2332
|
|
2326
2333
|
class Payco < Stripe::RequestParams
|
2327
2334
|
# Controls when the funds will be captured from the customer's account.
|
@@ -2717,11 +2724,18 @@ module Stripe
|
|
2717
2724
|
class SavedPaymentMethodOptions < Stripe::RequestParams
|
2718
2725
|
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
2719
2726
|
attr_accessor :allow_redisplay_filters
|
2727
|
+
# Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
|
2728
|
+
attr_accessor :payment_method_remove
|
2720
2729
|
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
2721
2730
|
attr_accessor :payment_method_save
|
2722
2731
|
|
2723
|
-
def initialize(
|
2732
|
+
def initialize(
|
2733
|
+
allow_redisplay_filters: nil,
|
2734
|
+
payment_method_remove: nil,
|
2735
|
+
payment_method_save: nil
|
2736
|
+
)
|
2724
2737
|
@allow_redisplay_filters = allow_redisplay_filters
|
2738
|
+
@payment_method_remove = payment_method_remove
|
2725
2739
|
@payment_method_save = payment_method_save
|
2726
2740
|
end
|
2727
2741
|
end
|
@@ -3569,7 +3583,7 @@ module Stripe
|
|
3569
3583
|
# relevant text on the page, such as the submit button. `submit_type` can only be
|
3570
3584
|
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
3571
3585
|
attr_reader :submit_type
|
3572
|
-
# The ID of the
|
3586
|
+
# The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
3573
3587
|
attr_reader :subscription
|
3574
3588
|
# The URL the customer will be directed to after the payment or
|
3575
3589
|
# subscription creation is successful.
|
@@ -3651,6 +3665,8 @@ module Stripe
|
|
3651
3665
|
end
|
3652
3666
|
|
3653
3667
|
# Updates a Checkout Session object.
|
3668
|
+
#
|
3669
|
+
# Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
|
3654
3670
|
def self.update(session, params = {}, opts = {})
|
3655
3671
|
request_stripe_object(
|
3656
3672
|
method: :post,
|
@@ -825,20 +825,11 @@ module Stripe
|
|
825
825
|
end
|
826
826
|
end
|
827
827
|
|
828
|
-
class Affirm < Stripe::RequestParams
|
829
|
-
end
|
830
|
-
|
831
|
-
class
|
832
|
-
end
|
833
|
-
|
834
|
-
class Alipay < Stripe::RequestParams
|
835
|
-
end
|
836
|
-
|
837
|
-
class Alma < Stripe::RequestParams
|
838
|
-
end
|
839
|
-
|
840
|
-
class AmazonPay < Stripe::RequestParams
|
841
|
-
end
|
828
|
+
class Affirm < Stripe::RequestParams; end
|
829
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
830
|
+
class Alipay < Stripe::RequestParams; end
|
831
|
+
class Alma < Stripe::RequestParams; end
|
832
|
+
class AmazonPay < Stripe::RequestParams; end
|
842
833
|
|
843
834
|
class AuBecsDebit < Stripe::RequestParams
|
844
835
|
# The account number for the bank account.
|
@@ -864,11 +855,8 @@ module Stripe
|
|
864
855
|
end
|
865
856
|
end
|
866
857
|
|
867
|
-
class Bancontact < Stripe::RequestParams
|
868
|
-
end
|
869
|
-
|
870
|
-
class Billie < Stripe::RequestParams
|
871
|
-
end
|
858
|
+
class Bancontact < Stripe::RequestParams; end
|
859
|
+
class Billie < Stripe::RequestParams; end
|
872
860
|
|
873
861
|
class BillingDetails < Stripe::RequestParams
|
874
862
|
class Address < Stripe::RequestParams
|
@@ -921,8 +909,7 @@ module Stripe
|
|
921
909
|
end
|
922
910
|
end
|
923
911
|
|
924
|
-
class Blik < Stripe::RequestParams
|
925
|
-
end
|
912
|
+
class Blik < Stripe::RequestParams; end
|
926
913
|
|
927
914
|
class Boleto < Stripe::RequestParams
|
928
915
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -933,11 +920,8 @@ module Stripe
|
|
933
920
|
end
|
934
921
|
end
|
935
922
|
|
936
|
-
class Cashapp < Stripe::RequestParams
|
937
|
-
end
|
938
|
-
|
939
|
-
class CustomerBalance < Stripe::RequestParams
|
940
|
-
end
|
923
|
+
class Cashapp < Stripe::RequestParams; end
|
924
|
+
class CustomerBalance < Stripe::RequestParams; end
|
941
925
|
|
942
926
|
class Eps < Stripe::RequestParams
|
943
927
|
# The customer's bank.
|
@@ -960,11 +944,8 @@ module Stripe
|
|
960
944
|
end
|
961
945
|
end
|
962
946
|
|
963
|
-
class Giropay < Stripe::RequestParams
|
964
|
-
end
|
965
|
-
|
966
|
-
class Grabpay < Stripe::RequestParams
|
967
|
-
end
|
947
|
+
class Giropay < Stripe::RequestParams; end
|
948
|
+
class Grabpay < Stripe::RequestParams; end
|
968
949
|
|
969
950
|
class Ideal < Stripe::RequestParams
|
970
951
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -975,11 +956,8 @@ module Stripe
|
|
975
956
|
end
|
976
957
|
end
|
977
958
|
|
978
|
-
class InteracPresent < Stripe::RequestParams
|
979
|
-
end
|
980
|
-
|
981
|
-
class KakaoPay < Stripe::RequestParams
|
982
|
-
end
|
959
|
+
class InteracPresent < Stripe::RequestParams; end
|
960
|
+
class KakaoPay < Stripe::RequestParams; end
|
983
961
|
|
984
962
|
class Klarna < Stripe::RequestParams
|
985
963
|
class Dob < Stripe::RequestParams
|
@@ -1004,20 +982,11 @@ module Stripe
|
|
1004
982
|
end
|
1005
983
|
end
|
1006
984
|
|
1007
|
-
class Konbini < Stripe::RequestParams
|
1008
|
-
end
|
1009
|
-
|
1010
|
-
class
|
1011
|
-
end
|
1012
|
-
|
1013
|
-
class Link < Stripe::RequestParams
|
1014
|
-
end
|
1015
|
-
|
1016
|
-
class Mobilepay < Stripe::RequestParams
|
1017
|
-
end
|
1018
|
-
|
1019
|
-
class Multibanco < Stripe::RequestParams
|
1020
|
-
end
|
985
|
+
class Konbini < Stripe::RequestParams; end
|
986
|
+
class KrCard < Stripe::RequestParams; end
|
987
|
+
class Link < Stripe::RequestParams; end
|
988
|
+
class Mobilepay < Stripe::RequestParams; end
|
989
|
+
class Multibanco < Stripe::RequestParams; end
|
1021
990
|
|
1022
991
|
class NaverPay < Stripe::RequestParams
|
1023
992
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -1059,8 +1028,7 @@ module Stripe
|
|
1059
1028
|
end
|
1060
1029
|
end
|
1061
1030
|
|
1062
|
-
class Oxxo < Stripe::RequestParams
|
1063
|
-
end
|
1031
|
+
class Oxxo < Stripe::RequestParams; end
|
1064
1032
|
|
1065
1033
|
class P24 < Stripe::RequestParams
|
1066
1034
|
# The customer's bank.
|
@@ -1071,23 +1039,12 @@ module Stripe
|
|
1071
1039
|
end
|
1072
1040
|
end
|
1073
1041
|
|
1074
|
-
class PayByBank < Stripe::RequestParams
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
class
|
1078
|
-
end
|
1079
|
-
|
1080
|
-
class Paynow < Stripe::RequestParams
|
1081
|
-
end
|
1082
|
-
|
1083
|
-
class Paypal < Stripe::RequestParams
|
1084
|
-
end
|
1085
|
-
|
1086
|
-
class Pix < Stripe::RequestParams
|
1087
|
-
end
|
1088
|
-
|
1089
|
-
class Promptpay < Stripe::RequestParams
|
1090
|
-
end
|
1042
|
+
class PayByBank < Stripe::RequestParams; end
|
1043
|
+
class Payco < Stripe::RequestParams; end
|
1044
|
+
class Paynow < Stripe::RequestParams; end
|
1045
|
+
class Paypal < Stripe::RequestParams; end
|
1046
|
+
class Pix < Stripe::RequestParams; end
|
1047
|
+
class Promptpay < Stripe::RequestParams; end
|
1091
1048
|
|
1092
1049
|
class RadarOptions < Stripe::RequestParams
|
1093
1050
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -1098,14 +1055,9 @@ module Stripe
|
|
1098
1055
|
end
|
1099
1056
|
end
|
1100
1057
|
|
1101
|
-
class RevolutPay < Stripe::RequestParams
|
1102
|
-
end
|
1103
|
-
|
1104
|
-
class SamsungPay < Stripe::RequestParams
|
1105
|
-
end
|
1106
|
-
|
1107
|
-
class Satispay < Stripe::RequestParams
|
1108
|
-
end
|
1058
|
+
class RevolutPay < Stripe::RequestParams; end
|
1059
|
+
class SamsungPay < Stripe::RequestParams; end
|
1060
|
+
class Satispay < Stripe::RequestParams; end
|
1109
1061
|
|
1110
1062
|
class SepaDebit < Stripe::RequestParams
|
1111
1063
|
# IBAN of the bank account.
|
@@ -1125,11 +1077,8 @@ module Stripe
|
|
1125
1077
|
end
|
1126
1078
|
end
|
1127
1079
|
|
1128
|
-
class Swish < Stripe::RequestParams
|
1129
|
-
end
|
1130
|
-
|
1131
|
-
class Twint < Stripe::RequestParams
|
1132
|
-
end
|
1080
|
+
class Swish < Stripe::RequestParams; end
|
1081
|
+
class Twint < Stripe::RequestParams; end
|
1133
1082
|
|
1134
1083
|
class UsBankAccount < Stripe::RequestParams
|
1135
1084
|
# Account holder type: individual or company.
|
@@ -1158,11 +1107,8 @@ module Stripe
|
|
1158
1107
|
end
|
1159
1108
|
end
|
1160
1109
|
|
1161
|
-
class WechatPay < Stripe::RequestParams
|
1162
|
-
end
|
1163
|
-
|
1164
|
-
class Zip < Stripe::RequestParams
|
1165
|
-
end
|
1110
|
+
class WechatPay < Stripe::RequestParams; end
|
1111
|
+
class Zip < Stripe::RequestParams; end
|
1166
1112
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1167
1113
|
attr_accessor :acss_debit
|
1168
1114
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
# Country Specs API makes these rules available to your integration.
|
8
8
|
#
|
9
9
|
# You can also view the information from this API call as [an online
|
10
|
-
# guide](https://stripe.com/docs/connect/required-verification-information).
|
10
|
+
# guide](https://docs.stripe.com/docs/connect/required-verification-information).
|
11
11
|
class CountrySpec < APIResource
|
12
12
|
extend Stripe::APIOperations::List
|
13
13
|
|
@@ -629,6 +629,10 @@ module Stripe
|
|
629
629
|
attr_reader :out_of_band_amount
|
630
630
|
# The link to download the PDF of the credit note.
|
631
631
|
attr_reader :pdf
|
632
|
+
# The amount of the credit note that was refunded to the customer, credited to the customer's balance, credited outside of Stripe, or any combination thereof.
|
633
|
+
attr_reader :post_payment_amount
|
634
|
+
# The amount of the credit note by which the invoice's `amount_remaining` and `amount_due` were reduced.
|
635
|
+
attr_reader :pre_payment_amount
|
632
636
|
# The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
633
637
|
attr_reader :pretax_credit_amounts
|
634
638
|
# Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`
|
@@ -654,20 +658,19 @@ module Stripe
|
|
654
658
|
# The time that the credit note was voided.
|
655
659
|
attr_reader :voided_at
|
656
660
|
|
657
|
-
# Issue a credit note to adjust the amount of a finalized invoice.
|
658
|
-
#
|
659
|
-
# in any combination of the following:
|
661
|
+
# Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
|
662
|
+
# This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
|
660
663
|
#
|
661
664
|
#
|
662
|
-
#
|
665
|
+
# Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
|
663
666
|
# Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
|
664
667
|
# Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
|
665
668
|
#
|
666
669
|
#
|
667
|
-
#
|
670
|
+
# The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
|
668
671
|
#
|
669
|
-
# You may issue multiple credit notes for an invoice. Each credit note
|
670
|
-
# or
|
672
|
+
# You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
|
673
|
+
# post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
|
671
674
|
def self.create(params = {}, opts = {})
|
672
675
|
request_stripe_object(method: :post, path: "/v1/credit_notes", params: params, opts: opts)
|
673
676
|
end
|
@@ -707,7 +710,7 @@ module Stripe
|
|
707
710
|
)
|
708
711
|
end
|
709
712
|
|
710
|
-
# Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
713
|
+
# Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
|
711
714
|
def void_credit_note(params = {}, opts = {})
|
712
715
|
request_stripe_object(
|
713
716
|
method: :post,
|
@@ -717,7 +720,7 @@ module Stripe
|
|
717
720
|
)
|
718
721
|
end
|
719
722
|
|
720
|
-
# Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
723
|
+
# Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
|
721
724
|
def self.void_credit_note(id, params = {}, opts = {})
|
722
725
|
request_stripe_object(
|
723
726
|
method: :post,
|
@@ -105,8 +105,7 @@ module Stripe
|
|
105
105
|
attr_reader :location
|
106
106
|
end
|
107
107
|
|
108
|
-
class DeleteParams < Stripe::RequestParams
|
109
|
-
end
|
108
|
+
class DeleteParams < Stripe::RequestParams; end
|
110
109
|
|
111
110
|
class UpdateParams < Stripe::RequestParams
|
112
111
|
class Address < Stripe::RequestParams
|
@@ -346,8 +345,7 @@ module Stripe
|
|
346
345
|
end
|
347
346
|
end
|
348
347
|
|
349
|
-
class DeleteDiscountParams < Stripe::RequestParams
|
350
|
-
end
|
348
|
+
class DeleteDiscountParams < Stripe::RequestParams; end
|
351
349
|
|
352
350
|
class ListParams < Stripe::RequestParams
|
353
351
|
class Created < Stripe::RequestParams
|
@@ -5,9 +5,9 @@ module Stripe
|
|
5
5
|
# A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
|
6
6
|
# control over a Customer.
|
7
7
|
#
|
8
|
-
# Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
9
|
-
# [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
|
10
|
-
# [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
8
|
+
# Related guides: [Customer Session with the Payment Element](https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
9
|
+
# [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session),
|
10
|
+
# [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
11
11
|
class CustomerSession < APIResource
|
12
12
|
extend Stripe::APIOperations::Create
|
13
13
|
|
@@ -621,7 +621,7 @@ module Stripe
|
|
621
621
|
attr_reader :payment_intent
|
622
622
|
# Attribute for field payment_method_details
|
623
623
|
attr_reader :payment_method_details
|
624
|
-
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
|
624
|
+
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
|
625
625
|
attr_reader :reason
|
626
626
|
# Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, or `lost`.
|
627
627
|
attr_reader :status
|
@@ -657,7 +657,7 @@ module Stripe
|
|
657
657
|
|
658
658
|
# When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
|
659
659
|
#
|
660
|
-
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
|
660
|
+
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
|
661
661
|
def self.update(dispute, params = {}, opts = {})
|
662
662
|
request_stripe_object(
|
663
663
|
method: :post,
|
@@ -113,7 +113,7 @@ module Stripe
|
|
113
113
|
attr_reader :account
|
114
114
|
# The Stripe API version used to render `data`. This property is populated only for events on or after October 31, 2014.
|
115
115
|
attr_reader :api_version
|
116
|
-
#
|
116
|
+
# Authentication context needed to fetch the event or related object.
|
117
117
|
attr_reader :context
|
118
118
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
119
119
|
attr_reader :created
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
# files with the [create file](https://stripe.com/docs/api#create_file) request
|
7
7
|
# (for example, when uploading dispute evidence). Stripe also
|
8
8
|
# creates files independently (for example, the results of a [Sigma scheduled
|
9
|
-
# query](https://stripe.com/
|
9
|
+
# query](https://docs.stripe.com/api#scheduled_queries)).
|
10
10
|
#
|
11
11
|
# Related guide: [File upload guide](https://stripe.com/docs/file-upload)
|
12
12
|
class File < APIResource
|
@@ -91,10 +91,16 @@ module Stripe
|
|
91
91
|
attr_reader :last_name
|
92
92
|
# Document ID number.
|
93
93
|
attr_reader :number
|
94
|
+
# Sex of the person in the document.
|
95
|
+
attr_reader :sex
|
94
96
|
# Status of this `document` check.
|
95
97
|
attr_reader :status
|
96
98
|
# Type of the document.
|
97
99
|
attr_reader :type
|
100
|
+
# Place of birth as it appears in the document.
|
101
|
+
attr_reader :unparsed_place_of_birth
|
102
|
+
# Sex as it appears in the document.
|
103
|
+
attr_reader :unparsed_sex
|
98
104
|
end
|
99
105
|
|
100
106
|
class Email < Stripe::StripeObject
|
@@ -5,11 +5,11 @@ module Stripe
|
|
5
5
|
module Identity
|
6
6
|
# A VerificationSession guides you through the process of collecting and verifying the identities
|
7
7
|
# of your users. It contains details about the type of verification, such as what [verification
|
8
|
-
# check](https://stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
|
8
|
+
# check](https://docs.stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
|
9
9
|
# each verification in your system.
|
10
10
|
#
|
11
11
|
# A VerificationSession transitions through [multiple
|
12
|
-
# statuses](https://stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
|
12
|
+
# statuses](https://docs.stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
|
13
13
|
# the verification flow. The VerificationSession contains the user's verified data after
|
14
14
|
# verification checks are complete.
|
15
15
|
#
|
@@ -116,6 +116,12 @@ module Stripe
|
|
116
116
|
attr_reader :last_name
|
117
117
|
# The user's verified phone number
|
118
118
|
attr_reader :phone
|
119
|
+
# The user's verified sex.
|
120
|
+
attr_reader :sex
|
121
|
+
# The user's verified place of birth as it appears in the document.
|
122
|
+
attr_reader :unparsed_place_of_birth
|
123
|
+
# The user's verified sex as it appears in the document.
|
124
|
+
attr_reader :unparsed_sex
|
119
125
|
end
|
120
126
|
|
121
127
|
class ListParams < Stripe::RequestParams
|
@@ -376,9 +382,9 @@ module Stripe
|
|
376
382
|
# The user’s verified data.
|
377
383
|
attr_reader :verified_outputs
|
378
384
|
|
379
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
385
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
380
386
|
#
|
381
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
387
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
382
388
|
def cancel(params = {}, opts = {})
|
383
389
|
request_stripe_object(
|
384
390
|
method: :post,
|
@@ -388,9 +394,9 @@ module Stripe
|
|
388
394
|
)
|
389
395
|
end
|
390
396
|
|
391
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
397
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
392
398
|
#
|
393
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
399
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
394
400
|
def self.cancel(session, params = {}, opts = {})
|
395
401
|
request_stripe_object(
|
396
402
|
method: :post,
|
@@ -406,7 +412,7 @@ module Stripe
|
|
406
412
|
#
|
407
413
|
# If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
|
408
414
|
#
|
409
|
-
# Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
|
415
|
+
# Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
|
410
416
|
def self.create(params = {}, opts = {})
|
411
417
|
request_stripe_object(
|
412
418
|
method: :post,
|
@@ -431,7 +437,7 @@ module Stripe
|
|
431
437
|
# request logs, etc.
|
432
438
|
#
|
433
439
|
# A VerificationSession object can be redacted when it is in requires_input or verified
|
434
|
-
# [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
440
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
435
441
|
# state will automatically cancel it.
|
436
442
|
#
|
437
443
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -444,7 +450,7 @@ module Stripe
|
|
444
450
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
445
451
|
# used for any purpose.
|
446
452
|
#
|
447
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
453
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
448
454
|
def redact(params = {}, opts = {})
|
449
455
|
request_stripe_object(
|
450
456
|
method: :post,
|
@@ -459,7 +465,7 @@ module Stripe
|
|
459
465
|
# request logs, etc.
|
460
466
|
#
|
461
467
|
# A VerificationSession object can be redacted when it is in requires_input or verified
|
462
|
-
# [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
468
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
463
469
|
# state will automatically cancel it.
|
464
470
|
#
|
465
471
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -472,7 +478,7 @@ module Stripe
|
|
472
478
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
473
479
|
# used for any purpose.
|
474
480
|
#
|
475
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
481
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
476
482
|
def self.redact(session, params = {}, opts = {})
|
477
483
|
request_stripe_object(
|
478
484
|
method: :post,
|