stripe 17.1.0.pre.alpha.2 → 17.1.0.pre.alpha.3
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/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +18 -0
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
- data/lib/stripe/params.rb +9 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +107 -0
- data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
- data/lib/stripe/resources/identity/verification_report.rb +4 -0
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
- data/lib/stripe/services/delegated_checkout_service.rb +13 -0
- data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
- data/lib/stripe/services/identity_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services.rb +3 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +495 -1
- metadata +15 -1
@@ -0,0 +1,71 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Identity
|
6
|
+
class BlocklistEntryService < StripeService
|
7
|
+
# Creates a BlocklistEntry object from a verification report.
|
8
|
+
#
|
9
|
+
# A blocklist entry prevents future identity verifications that match the same identity information.
|
10
|
+
# You can create blocklist entries from verification reports that contain document extracted data
|
11
|
+
# or a selfie.
|
12
|
+
#
|
13
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
|
14
|
+
def create(params = {}, opts = {})
|
15
|
+
request(
|
16
|
+
method: :post,
|
17
|
+
path: "/v1/identity/blocklist_entries",
|
18
|
+
params: params,
|
19
|
+
opts: opts,
|
20
|
+
base_address: :api
|
21
|
+
)
|
22
|
+
end
|
23
|
+
|
24
|
+
# Disables a BlocklistEntry object.
|
25
|
+
#
|
26
|
+
# After a BlocklistEntry is disabled, it will no longer block future verifications that match
|
27
|
+
# the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
|
28
|
+
# must be created using the same verification report.
|
29
|
+
#
|
30
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
|
31
|
+
def disable(id, params = {}, opts = {})
|
32
|
+
request(
|
33
|
+
method: :post,
|
34
|
+
path: format("/v1/identity/blocklist_entries/%<id>s/disable", { id: CGI.escape(id) }),
|
35
|
+
params: params,
|
36
|
+
opts: opts,
|
37
|
+
base_address: :api
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns a list of BlocklistEntry objects associated with your account.
|
42
|
+
#
|
43
|
+
# The blocklist entries are returned sorted by creation date, with the most recently created
|
44
|
+
# entries appearing first.
|
45
|
+
#
|
46
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
|
47
|
+
def list(params = {}, opts = {})
|
48
|
+
request(
|
49
|
+
method: :get,
|
50
|
+
path: "/v1/identity/blocklist_entries",
|
51
|
+
params: params,
|
52
|
+
opts: opts,
|
53
|
+
base_address: :api
|
54
|
+
)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Retrieves a BlocklistEntry object by its identifier.
|
58
|
+
#
|
59
|
+
# Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
|
60
|
+
def retrieve(id, params = {}, opts = {})
|
61
|
+
request(
|
62
|
+
method: :get,
|
63
|
+
path: format("/v1/identity/blocklist_entries/%<id>s", { id: CGI.escape(id) }),
|
64
|
+
params: params,
|
65
|
+
opts: opts,
|
66
|
+
base_address: :api
|
67
|
+
)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class IdentityService < StripeService
|
6
|
-
attr_reader :verification_reports, :verification_sessions
|
6
|
+
attr_reader :blocklist_entries, :verification_reports, :verification_sessions
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
9
|
super
|
10
|
+
@blocklist_entries = Stripe::Identity::BlocklistEntryService.new(@requestor)
|
10
11
|
@verification_reports = Stripe::Identity::VerificationReportService.new(@requestor)
|
11
12
|
@verification_sessions = Stripe::Identity::VerificationSessionService.new(@requestor)
|
12
13
|
end
|
@@ -4,7 +4,7 @@ module Stripe
|
|
4
4
|
class V1Services < StripeService
|
5
5
|
# v1 accessors: The beginning of the section generated from our OpenAPI spec
|
6
6
|
attr_reader :accounts
|
7
|
-
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :external_accounts, :files, :file_links, :financial_connections, :forwarding, :fx_quotes, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :margins, :orders, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :privacy, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :tokens, :topups, :transfers, :treasury, :webhook_endpoints
|
7
|
+
attr_reader :account_links, :account_notices, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :capital, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :delegated_checkout, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :external_accounts, :files, :file_links, :financial_connections, :forwarding, :fx_quotes, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :margins, :orders, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :privacy, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :tokens, :topups, :transfers, :treasury, :webhook_endpoints
|
8
8
|
# v1 accessors: The end of the section generated from our OpenAPI spec
|
9
9
|
|
10
10
|
# OAuthService is manually maintained, as it has special behaviors
|
@@ -35,6 +35,7 @@ module Stripe
|
|
35
35
|
@credit_notes = Stripe::CreditNoteService.new(@requestor)
|
36
36
|
@customers = Stripe::CustomerService.new(@requestor)
|
37
37
|
@customer_sessions = Stripe::CustomerSessionService.new(@requestor)
|
38
|
+
@delegated_checkout = Stripe::DelegatedCheckoutService.new(@requestor)
|
38
39
|
@disputes = Stripe::DisputeService.new(@requestor)
|
39
40
|
@entitlements = Stripe::EntitlementsService.new(@requestor)
|
40
41
|
@ephemeral_keys = Stripe::EphemeralKeyService.new(@requestor)
|
data/lib/stripe/services.rb
CHANGED
@@ -58,6 +58,8 @@ require "stripe/services/customer_payment_source_service"
|
|
58
58
|
require "stripe/services/customer_service"
|
59
59
|
require "stripe/services/customer_session_service"
|
60
60
|
require "stripe/services/customer_tax_id_service"
|
61
|
+
require "stripe/services/delegated_checkout/requested_session_service"
|
62
|
+
require "stripe/services/delegated_checkout_service"
|
61
63
|
require "stripe/services/dispute_service"
|
62
64
|
require "stripe/services/entitlements/active_entitlement_service"
|
63
65
|
require "stripe/services/entitlements/feature_service"
|
@@ -78,6 +80,7 @@ require "stripe/services/financial_connections_service"
|
|
78
80
|
require "stripe/services/forwarding/request_service"
|
79
81
|
require "stripe/services/forwarding_service"
|
80
82
|
require "stripe/services/fx_quote_service"
|
83
|
+
require "stripe/services/identity/blocklist_entry_service"
|
81
84
|
require "stripe/services/identity/verification_report_service"
|
82
85
|
require "stripe/services/identity/verification_session_service"
|
83
86
|
require "stripe/services/identity_service"
|
data/lib/stripe/version.rb
CHANGED