stripe 17.1.0.pre.alpha.2 → 17.1.0.pre.alpha.4
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/events/v2_money_management_transaction_created_event.rb +18 -1
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/billing/meter_create_params.rb +5 -1
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +8 -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 +244 -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 +209 -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/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -2
- data/lib/stripe/params/v2/core/account_list_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +24 -1
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +1 -0
- data/lib/stripe/params.rb +15 -0
- data/lib/stripe/resources/billing/meter.rb +2 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +2 -0
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +323 -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/v2/billing/cadence.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +49 -0
- data/lib/stripe/resources/v2/core/account.rb +57 -2
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +35 -1
- data/lib/stripe/resources.rb +3 -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/v2/billing/pricing_plan_subscription_service.rb +8 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +11 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +33 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +11 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +1 -1
- data/lib/stripe/services.rb +4 -0
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1897 -32
- metadata +24 -2
|
@@ -12,6 +12,38 @@ module Stripe
|
|
|
12
12
|
"v2.core.vault.us_bank_account"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class Verification < ::Stripe::StripeObject
|
|
16
|
+
class MicrodepositVerificationDetails < ::Stripe::StripeObject
|
|
17
|
+
# Time when microdeposits will expire and have to be re-sent.
|
|
18
|
+
attr_reader :expires
|
|
19
|
+
# Microdeposit type can be amounts or descriptor_type.
|
|
20
|
+
attr_reader :microdeposit_type
|
|
21
|
+
# Time when microdeposits were sent.
|
|
22
|
+
attr_reader :sent
|
|
23
|
+
|
|
24
|
+
def self.inner_class_types
|
|
25
|
+
@inner_class_types = {}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.field_remappings
|
|
29
|
+
@field_remappings = {}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# The microdeposit verification details if the status is awaiting verification.
|
|
33
|
+
attr_reader :microdeposit_verification_details
|
|
34
|
+
# The bank account verification status.
|
|
35
|
+
attr_reader :status
|
|
36
|
+
|
|
37
|
+
def self.inner_class_types
|
|
38
|
+
@inner_class_types = {
|
|
39
|
+
microdeposit_verification_details: MicrodepositVerificationDetails,
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
15
47
|
# Whether this USBankAccount object was archived.
|
|
16
48
|
attr_reader :archived
|
|
17
49
|
# Closed Enum. The type of bank account (checking or savings).
|
|
@@ -30,11 +62,13 @@ module Stripe
|
|
|
30
62
|
attr_reader :object
|
|
31
63
|
# The ACH routing number of the bank account.
|
|
32
64
|
attr_reader :routing_number
|
|
65
|
+
# The bank account verification details.
|
|
66
|
+
attr_reader :verification
|
|
33
67
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
34
68
|
attr_reader :livemode
|
|
35
69
|
|
|
36
70
|
def self.inner_class_types
|
|
37
|
-
@inner_class_types = {}
|
|
71
|
+
@inner_class_types = { verification: Verification }
|
|
38
72
|
end
|
|
39
73
|
|
|
40
74
|
def self.field_remappings
|
data/lib/stripe/resources.rb
CHANGED
|
@@ -48,6 +48,7 @@ require "stripe/resources/customer"
|
|
|
48
48
|
require "stripe/resources/customer_balance_transaction"
|
|
49
49
|
require "stripe/resources/customer_cash_balance_transaction"
|
|
50
50
|
require "stripe/resources/customer_session"
|
|
51
|
+
require "stripe/resources/delegated_checkout/requested_session"
|
|
51
52
|
require "stripe/resources/discount"
|
|
52
53
|
require "stripe/resources/dispute"
|
|
53
54
|
require "stripe/resources/entitlements/active_entitlement"
|
|
@@ -68,6 +69,7 @@ require "stripe/resources/financial_connections/transaction"
|
|
|
68
69
|
require "stripe/resources/forwarding/request"
|
|
69
70
|
require "stripe/resources/funding_instructions"
|
|
70
71
|
require "stripe/resources/fx_quote"
|
|
72
|
+
require "stripe/resources/identity/blocklist_entry"
|
|
71
73
|
require "stripe/resources/identity/verification_report"
|
|
72
74
|
require "stripe/resources/identity/verification_session"
|
|
73
75
|
require "stripe/resources/invoice"
|
|
@@ -185,6 +187,7 @@ require "stripe/resources/v2/billing/metered_item"
|
|
|
185
187
|
require "stripe/resources/v2/billing/pricing_plan"
|
|
186
188
|
require "stripe/resources/v2/billing/pricing_plan_component"
|
|
187
189
|
require "stripe/resources/v2/billing/pricing_plan_subscription"
|
|
190
|
+
require "stripe/resources/v2/billing/pricing_plan_subscription_components"
|
|
188
191
|
require "stripe/resources/v2/billing/pricing_plan_version"
|
|
189
192
|
require "stripe/resources/v2/billing/profile"
|
|
190
193
|
require "stripe/resources/v2/billing/rate_card"
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module DelegatedCheckout
|
|
6
|
+
class RequestedSessionService < StripeService
|
|
7
|
+
# Confirms a requested session
|
|
8
|
+
def confirm(requested_session, params = {}, opts = {})
|
|
9
|
+
request(
|
|
10
|
+
method: :post,
|
|
11
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
|
|
12
|
+
params: params,
|
|
13
|
+
opts: opts,
|
|
14
|
+
base_address: :api
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Creates a requested session
|
|
19
|
+
def create(params = {}, opts = {})
|
|
20
|
+
request(
|
|
21
|
+
method: :post,
|
|
22
|
+
path: "/v1/delegated_checkout/requested_sessions",
|
|
23
|
+
params: params,
|
|
24
|
+
opts: opts,
|
|
25
|
+
base_address: :api
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Expires a requested session
|
|
30
|
+
def expire(requested_session, params = {}, opts = {})
|
|
31
|
+
request(
|
|
32
|
+
method: :post,
|
|
33
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
|
|
34
|
+
params: params,
|
|
35
|
+
opts: opts,
|
|
36
|
+
base_address: :api
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Retrieves a requested session
|
|
41
|
+
def retrieve(requested_session, params = {}, opts = {})
|
|
42
|
+
request(
|
|
43
|
+
method: :get,
|
|
44
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
|
|
45
|
+
params: params,
|
|
46
|
+
opts: opts,
|
|
47
|
+
base_address: :api
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Updates a requested session
|
|
52
|
+
def update(requested_session, params = {}, opts = {})
|
|
53
|
+
request(
|
|
54
|
+
method: :post,
|
|
55
|
+
path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
|
|
56
|
+
params: params,
|
|
57
|
+
opts: opts,
|
|
58
|
+
base_address: :api
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
class DelegatedCheckoutService < StripeService
|
|
6
|
+
attr_reader :requested_sessions
|
|
7
|
+
|
|
8
|
+
def initialize(requestor)
|
|
9
|
+
super
|
|
10
|
+
@requested_sessions = Stripe::DelegatedCheckout::RequestedSessionService.new(@requestor)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -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)
|
|
@@ -5,6 +5,14 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module Billing
|
|
7
7
|
class PricingPlanSubscriptionService < StripeService
|
|
8
|
+
attr_reader :components
|
|
9
|
+
|
|
10
|
+
def initialize(requestor)
|
|
11
|
+
super
|
|
12
|
+
@components = Stripe::V2::Billing::PricingPlanSubscriptions::ComponentService
|
|
13
|
+
.new(@requestor)
|
|
14
|
+
end
|
|
15
|
+
|
|
8
16
|
# List all Pricing Plan Subscription objects.
|
|
9
17
|
def list(params = {}, opts = {})
|
|
10
18
|
request(
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Billing
|
|
7
|
+
module PricingPlanSubscriptions
|
|
8
|
+
class ComponentService < StripeService
|
|
9
|
+
# Retrieve a Pricing Plan Subscription's components.
|
|
10
|
+
def retrieve(id, params = {}, opts = {})
|
|
11
|
+
request(
|
|
12
|
+
method: :get,
|
|
13
|
+
path: format("/v2/billing/pricing_plan_subscriptions/%<id>s/components", { id: CGI.escape(id) }),
|
|
14
|
+
params: params,
|
|
15
|
+
opts: opts,
|
|
16
|
+
base_address: :api
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
@persons = Stripe::V2::Core::Accounts::PersonService.new(@requestor)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# Removes access to the Account and its associated resources.
|
|
15
|
+
# Removes access to the Account and its associated resources. Closed Accounts can no longer be operated on, but limited information can still be retrieved through the API in order to be able to track their history.
|
|
16
16
|
def close(id, params = {}, opts = {})
|
|
17
17
|
request(
|
|
18
18
|
method: :post,
|
|
@@ -57,6 +57,17 @@ module Stripe
|
|
|
57
57
|
)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# List objects that can be used as destinations for outbound money movement via OutboundPayment.
|
|
61
|
+
def list(params = {}, opts = {})
|
|
62
|
+
request(
|
|
63
|
+
method: :get,
|
|
64
|
+
path: "/v2/core/vault/gb_bank_accounts",
|
|
65
|
+
params: params,
|
|
66
|
+
opts: opts,
|
|
67
|
+
base_address: :api
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
60
71
|
# Retrieve a GB bank account.
|
|
61
72
|
def retrieve(id, params = {}, opts = {})
|
|
62
73
|
request(
|
|
@@ -21,6 +21,17 @@ module Stripe
|
|
|
21
21
|
)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
# Confirm microdeposits amounts or descriptor code that you have received from the Send Microdeposits request. Once you correctly confirm this, this US Bank Account will be verified and eligible to transfer funds with.
|
|
25
|
+
def confirm_microdeposits(id, params = {}, opts = {})
|
|
26
|
+
request(
|
|
27
|
+
method: :post,
|
|
28
|
+
path: format("/v2/core/vault/us_bank_accounts/%<id>s/confirm_microdeposits", { id: CGI.escape(id) }),
|
|
29
|
+
params: params,
|
|
30
|
+
opts: opts,
|
|
31
|
+
base_address: :api
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
24
35
|
# Create a USBankAccount object.
|
|
25
36
|
#
|
|
26
37
|
# ** raises BlockedByStripeError
|
|
@@ -36,6 +47,17 @@ module Stripe
|
|
|
36
47
|
)
|
|
37
48
|
end
|
|
38
49
|
|
|
50
|
+
# List USBankAccount objects. Optionally filter by verification status.
|
|
51
|
+
def list(params = {}, opts = {})
|
|
52
|
+
request(
|
|
53
|
+
method: :get,
|
|
54
|
+
path: "/v2/core/vault/us_bank_accounts",
|
|
55
|
+
params: params,
|
|
56
|
+
opts: opts,
|
|
57
|
+
base_address: :api
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
39
61
|
# Retrieve a USBankAccount object.
|
|
40
62
|
def retrieve(id, params = {}, opts = {})
|
|
41
63
|
request(
|
|
@@ -47,6 +69,17 @@ module Stripe
|
|
|
47
69
|
)
|
|
48
70
|
end
|
|
49
71
|
|
|
72
|
+
# Send microdeposits in order to verify your US Bank Account so it is eligible to transfer funds. This will start the verification process and you must Confirm Microdeposits to successfully verify your US Bank Account.
|
|
73
|
+
def send_microdeposits(id, params = {}, opts = {})
|
|
74
|
+
request(
|
|
75
|
+
method: :post,
|
|
76
|
+
path: format("/v2/core/vault/us_bank_accounts/%<id>s/send_microdeposits", { id: CGI.escape(id) }),
|
|
77
|
+
params: params,
|
|
78
|
+
opts: opts,
|
|
79
|
+
base_address: :api
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
50
83
|
# Update a USBankAccount object. This is limited to supplying a previously empty routing_number field.
|
|
51
84
|
#
|
|
52
85
|
# ** raises BlockedByStripeError
|
|
@@ -53,6 +53,17 @@ module Stripe
|
|
|
53
53
|
base_address: :api
|
|
54
54
|
)
|
|
55
55
|
end
|
|
56
|
+
|
|
57
|
+
# Updates an existing FinancialAccount.
|
|
58
|
+
def update(id, params = {}, opts = {})
|
|
59
|
+
request(
|
|
60
|
+
method: :post,
|
|
61
|
+
path: format("/v2/money_management/financial_accounts/%<id>s", { id: CGI.escape(id) }),
|
|
62
|
+
params: params,
|
|
63
|
+
opts: opts,
|
|
64
|
+
base_address: :api
|
|
65
|
+
)
|
|
66
|
+
end
|
|
56
67
|
end
|
|
57
68
|
end
|
|
58
69
|
end
|
|
@@ -22,9 +22,9 @@ module Stripe
|
|
|
22
22
|
# Creates an OutboundPayment.
|
|
23
23
|
#
|
|
24
24
|
# ** raises InsufficientFundsError
|
|
25
|
+
# ** raises FeatureNotEnabledError
|
|
25
26
|
# ** raises QuotaExceededError
|
|
26
27
|
# ** raises RecipientNotNotifiableError
|
|
27
|
-
# ** raises FeatureNotEnabledError
|
|
28
28
|
def create(params = {}, opts = {})
|
|
29
29
|
request(
|
|
30
30
|
method: :post,
|
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"
|
|
@@ -218,6 +221,7 @@ require "stripe/services/v2/billing/meter_event_stream_service"
|
|
|
218
221
|
require "stripe/services/v2/billing/metered_item_service"
|
|
219
222
|
require "stripe/services/v2/billing/pricing_plan_service"
|
|
220
223
|
require "stripe/services/v2/billing/pricing_plan_subscription_service"
|
|
224
|
+
require "stripe/services/v2/billing/pricing_plan_subscriptions/component_service"
|
|
221
225
|
require "stripe/services/v2/billing/pricing_plans/component_service"
|
|
222
226
|
require "stripe/services/v2/billing/pricing_plans/version_service"
|
|
223
227
|
require "stripe/services/v2/billing/profile_service"
|
data/lib/stripe/version.rb
CHANGED