stripe 15.0.0 → 15.3.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/API_VERSION +1 -0
- data/CHANGELOG.md +129 -44
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +28 -55
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/event_types.rb +1 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/resources/account.rb +198 -28
- data/lib/stripe/resources/account_session.rb +176 -72
- 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 +3 -3
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +43 -20
- data/lib/stripe/resources/checkout/session.rb +120 -19
- data/lib/stripe/resources/confirmation_token.rb +119 -100
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -3
- data/lib/stripe/resources/credit_note.rb +21 -18
- data/lib/stripe/resources/customer.rb +4 -6
- data/lib/stripe/resources/customer_session.rb +5 -5
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +3 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +51 -11
- data/lib/stripe/resources/invoice.rb +146 -32
- data/lib/stripe/resources/invoice_item.rb +3 -7
- 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/login_link.rb +2 -1
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +602 -325
- data/lib/stripe/resources/payment_method.rb +76 -117
- data/lib/stripe/resources/payment_method_configuration.rb +356 -2
- data/lib/stripe/resources/payment_method_domain.rb +15 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +27 -3
- 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/quote.rb +28 -3
- 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 +8 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +414 -293
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +149 -27
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +141 -4
- data/lib/stripe/resources/tax/calculation.rb +6 -2
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +261 -1
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -4
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +2 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +426 -6
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +63 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/services/account_external_account_service.rb +3 -4
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +85 -2
- data/lib/stripe/services/account_service.rb +169 -20
- data/lib/stripe/services/account_session_service.rb +115 -47
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +94 -15
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +14 -15
- 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_method_service.rb +1 -1
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +5 -7
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/customer_tax_id_service.rb +2 -3
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +21 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +122 -28
- 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/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +563 -313
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +59 -105
- 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 +3 -4
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +21 -4
- 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/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +403 -291
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +106 -3
- data/lib/stripe/services/subscription_service.rb +121 -26
- data/lib/stripe/services/tax/calculation_service.rb +6 -2
- data/lib/stripe/services/tax/registration_service.rb +170 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +2 -3
- data/lib/stripe/services/tax_service.rb +1 -1
- 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 +196 -2
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +62 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/billing_service.rb +3 -3
- data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe/resources/account.rbi +190 -35
- data/rbi/stripe/resources/account_session.rbi +196 -77
- 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 +3 -3
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +52 -20
- data/rbi/stripe/resources/checkout/session.rbi +133 -24
- data/rbi/stripe/resources/confirmation_token.rbi +140 -115
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +2 -4
- data/rbi/stripe/resources/credit_note.rbi +23 -18
- data/rbi/stripe/resources/customer.rbi +4 -8
- data/rbi/stripe/resources/customer_session.rbi +5 -5
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +4 -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 +59 -12
- data/rbi/stripe/resources/invoice.rbi +149 -40
- data/rbi/stripe/resources/invoice_item.rbi +3 -8
- data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
- 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/login_link.rbi +2 -1
- data/rbi/stripe/resources/mandate.rbi +4 -0
- data/rbi/stripe/resources/payment_intent.rbi +637 -381
- data/rbi/stripe/resources/payment_method.rbi +81 -133
- data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +33 -3
- 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/quote.rbi +25 -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 +8 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_attempt.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +464 -346
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +150 -34
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
- data/rbi/stripe/resources/tax/calculation.rbi +7 -3
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
- data/rbi/stripe/resources/tax/registration.rbi +249 -2
- data/rbi/stripe/resources/tax/transaction.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +3 -5
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
- data/rbi/stripe/resources/terminal/location.rbi +4 -6
- data/rbi/stripe/resources/terminal/reader.rbi +415 -8
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +70 -4
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
- data/rbi/stripe/resources/v2/event.rbi +3 -3
- data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +3 -5
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +93 -5
- data/rbi/stripe/services/account_service.rbi +166 -28
- data/rbi/stripe/services/account_session_service.rbi +126 -52
- 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/billing_portal/session_service.rbi +1 -1
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +104 -19
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
- data/rbi/stripe/services/credit_note_service.rbi +13 -14
- 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_method_service.rbi +1 -1
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +4 -8
- data/rbi/stripe/services/customer_session_service.rbi +1 -1
- data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
- 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 +22 -6
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +126 -35
- 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 +599 -369
- data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +62 -121
- 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/quote_service.rbi +16 -3
- 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 +457 -344
- 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 +119 -10
- data/rbi/stripe/services/subscription_service.rbi +121 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
- data/rbi/stripe/services/tax/registration_service.rbi +171 -2
- data/rbi/stripe/services/tax_id_service.rbi +2 -4
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +4 -6
- data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
- 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 +71 -3
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/billing_service.rbi +1 -1
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +5 -2
@@ -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
|
|
@@ -30,7 +30,7 @@ module Stripe
|
|
30
30
|
attr_reader :payment_method_allow_redisplay_filters
|
31
31
|
# Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
32
32
|
attr_reader :payment_method_redisplay
|
33
|
-
# Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
|
33
|
+
# Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`.
|
34
34
|
attr_reader :payment_method_redisplay_limit
|
35
35
|
# Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
36
36
|
#
|
@@ -82,7 +82,7 @@ module Stripe
|
|
82
82
|
attr_accessor :payment_method_allow_redisplay_filters
|
83
83
|
# Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
|
84
84
|
attr_accessor :payment_method_redisplay
|
85
|
-
# Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
|
85
|
+
# Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`.
|
86
86
|
attr_accessor :payment_method_redisplay_limit
|
87
87
|
# Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
|
88
88
|
#
|
@@ -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,
|
@@ -111,8 +111,10 @@ module Stripe
|
|
111
111
|
end
|
112
112
|
# The connected account that originates the event.
|
113
113
|
attr_reader :account
|
114
|
-
# The Stripe API version used to render `data
|
114
|
+
# The Stripe API version used to render `data` when the event was created. The contents of `data` never change, so this value remains static regardless of the API version currently in use. This property is populated only for events created on or after October 31, 2014.
|
115
115
|
attr_reader :api_version
|
116
|
+
# Authentication context needed to fetch the event or related object.
|
117
|
+
attr_reader :context
|
116
118
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
117
119
|
attr_reader :created
|
118
120
|
# Attribute for field data
|
@@ -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
|
@@ -326,7 +326,7 @@ module Stripe
|
|
326
326
|
raise NotImplementedError,
|
327
327
|
"FundingInstructions cannot be accessed without a customer ID."
|
328
328
|
end
|
329
|
-
"#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" "/#{CGI.escape(id)}"
|
329
|
+
"#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" + "/#{CGI.escape(id)}"
|
330
330
|
end
|
331
331
|
end
|
332
332
|
end
|
@@ -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
|
#
|
@@ -50,6 +50,13 @@ module Stripe
|
|
50
50
|
|
51
51
|
class IdNumber < Stripe::StripeObject; end
|
52
52
|
|
53
|
+
class Matching < Stripe::StripeObject
|
54
|
+
# Strictness of the DOB matching policy to apply.
|
55
|
+
attr_reader :dob
|
56
|
+
# Strictness of the name matching policy to apply.
|
57
|
+
attr_reader :name
|
58
|
+
end
|
59
|
+
|
53
60
|
class Phone < Stripe::StripeObject
|
54
61
|
# Request one time password verification of `provided_details.phone`.
|
55
62
|
attr_reader :require_verification
|
@@ -60,6 +67,8 @@ module Stripe
|
|
60
67
|
attr_reader :email
|
61
68
|
# Attribute for field id_number
|
62
69
|
attr_reader :id_number
|
70
|
+
# Attribute for field matching
|
71
|
+
attr_reader :matching
|
63
72
|
# Attribute for field phone
|
64
73
|
attr_reader :phone
|
65
74
|
end
|
@@ -76,6 +85,13 @@ module Stripe
|
|
76
85
|
attr_reader :status
|
77
86
|
end
|
78
87
|
|
88
|
+
class RelatedPerson < Stripe::StripeObject
|
89
|
+
# Token referencing the associated Account of the related Person resource.
|
90
|
+
attr_reader :account
|
91
|
+
# Token referencing the related Person resource.
|
92
|
+
attr_reader :person
|
93
|
+
end
|
94
|
+
|
79
95
|
class VerifiedOutputs < Stripe::StripeObject
|
80
96
|
class Address < Stripe::StripeObject
|
81
97
|
# City, district, suburb, town, or village.
|
@@ -116,6 +132,12 @@ module Stripe
|
|
116
132
|
attr_reader :last_name
|
117
133
|
# The user's verified phone number
|
118
134
|
attr_reader :phone
|
135
|
+
# The user's verified sex.
|
136
|
+
attr_reader :sex
|
137
|
+
# The user's verified place of birth as it appears in the document.
|
138
|
+
attr_reader :unparsed_place_of_birth
|
139
|
+
# The user's verified sex as it appears in the document.
|
140
|
+
attr_reader :unparsed_sex
|
119
141
|
end
|
120
142
|
|
121
143
|
class ListParams < Stripe::RequestParams
|
@@ -217,6 +239,18 @@ module Stripe
|
|
217
239
|
@phone = phone
|
218
240
|
end
|
219
241
|
end
|
242
|
+
|
243
|
+
class RelatedPerson < Stripe::RequestParams
|
244
|
+
# A token representing a connected account. If provided, the person parameter is also required and must be associated with the account.
|
245
|
+
attr_accessor :account
|
246
|
+
# A token referencing a Person resource that this verification is being used to verify.
|
247
|
+
attr_accessor :person
|
248
|
+
|
249
|
+
def initialize(account: nil, person: nil)
|
250
|
+
@account = account
|
251
|
+
@person = person
|
252
|
+
end
|
253
|
+
end
|
220
254
|
# A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
221
255
|
attr_accessor :client_reference_id
|
222
256
|
# Specifies which fields in the response should be expanded.
|
@@ -229,6 +263,8 @@ module Stripe
|
|
229
263
|
attr_accessor :provided_details
|
230
264
|
# Customer ID
|
231
265
|
attr_accessor :related_customer
|
266
|
+
# Tokens referencing a Person resource and it's associated account.
|
267
|
+
attr_accessor :related_person
|
232
268
|
# The URL that the user will be redirected to upon completing the verification flow.
|
233
269
|
attr_accessor :return_url
|
234
270
|
# The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.
|
@@ -243,6 +279,7 @@ module Stripe
|
|
243
279
|
options: nil,
|
244
280
|
provided_details: nil,
|
245
281
|
related_customer: nil,
|
282
|
+
related_person: nil,
|
246
283
|
return_url: nil,
|
247
284
|
type: nil,
|
248
285
|
verification_flow: nil
|
@@ -253,6 +290,7 @@ module Stripe
|
|
253
290
|
@options = options
|
254
291
|
@provided_details = provided_details
|
255
292
|
@related_customer = related_customer
|
293
|
+
@related_person = related_person
|
256
294
|
@return_url = return_url
|
257
295
|
@type = type
|
258
296
|
@verification_flow = verification_flow
|
@@ -365,6 +403,8 @@ module Stripe
|
|
365
403
|
attr_reader :redaction
|
366
404
|
# Customer ID
|
367
405
|
attr_reader :related_customer
|
406
|
+
# Attribute for field related_person
|
407
|
+
attr_reader :related_person
|
368
408
|
# Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
369
409
|
attr_reader :status
|
370
410
|
# The type of [verification check](https://stripe.com/docs/identity/verification-checks) to be performed.
|
@@ -376,9 +416,9 @@ module Stripe
|
|
376
416
|
# The user’s verified data.
|
377
417
|
attr_reader :verified_outputs
|
378
418
|
|
379
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
419
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
380
420
|
#
|
381
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
421
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
382
422
|
def cancel(params = {}, opts = {})
|
383
423
|
request_stripe_object(
|
384
424
|
method: :post,
|
@@ -388,9 +428,9 @@ module Stripe
|
|
388
428
|
)
|
389
429
|
end
|
390
430
|
|
391
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
431
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
392
432
|
#
|
393
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
433
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
394
434
|
def self.cancel(session, params = {}, opts = {})
|
395
435
|
request_stripe_object(
|
396
436
|
method: :post,
|
@@ -406,7 +446,7 @@ module Stripe
|
|
406
446
|
#
|
407
447
|
# 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
448
|
#
|
409
|
-
# Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
|
449
|
+
# Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
|
410
450
|
def self.create(params = {}, opts = {})
|
411
451
|
request_stripe_object(
|
412
452
|
method: :post,
|
@@ -431,7 +471,7 @@ module Stripe
|
|
431
471
|
# request logs, etc.
|
432
472
|
#
|
433
473
|
# 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
|
474
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
435
475
|
# state will automatically cancel it.
|
436
476
|
#
|
437
477
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -444,7 +484,7 @@ module Stripe
|
|
444
484
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
445
485
|
# used for any purpose.
|
446
486
|
#
|
447
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
487
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
448
488
|
def redact(params = {}, opts = {})
|
449
489
|
request_stripe_object(
|
450
490
|
method: :post,
|
@@ -459,7 +499,7 @@ module Stripe
|
|
459
499
|
# request logs, etc.
|
460
500
|
#
|
461
501
|
# 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
|
502
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
463
503
|
# state will automatically cancel it.
|
464
504
|
#
|
465
505
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -472,7 +512,7 @@ module Stripe
|
|
472
512
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
473
513
|
# used for any purpose.
|
474
514
|
#
|
475
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
515
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
476
516
|
def self.redact(session, params = {}, opts = {})
|
477
517
|
request_stripe_object(
|
478
518
|
method: :post,
|