stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2
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/event_types.rb +8 -0
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +42 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
- data/lib/stripe/params/setup_intent_create_params.rb +37 -0
- data/lib/stripe/params/setup_intent_update_params.rb +21 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/charge.rb +354 -2
- data/lib/stripe/resources/checkout/session.rb +30 -0
- data/lib/stripe/resources/confirmation_token.rb +84 -0
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/payment_attempt_record.rb +133 -0
- data/lib/stripe/resources/payment_intent.rb +100 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +84 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +133 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services.rb +9 -0
- data/lib/stripe/stripe_event_notification_handler.rb +8 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -1
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe.rbi +4320 -69
- metadata +20 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23d399f2f6bcef6dc7a24850449dd98633f1b487bf45ef8a41efd3333fff751f
|
|
4
|
+
data.tar.gz: 5737310496d29af374ee1c2c1fc358d61c0f1f3eb39d92dacd56cd951aabefb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8758a3977c284117337d43931445a4f81cd87bf8f07f00ded958534b0ee05f67f93a13d0262c123adca161298c8c20922093b4efb8b6943710e7b028bc1ab713
|
|
7
|
+
data.tar.gz: 34633662ef7bbccd5b309b842b1c5a1682131addfda91735765e926d959af508cd52d2b96e0507947b8a54b769495d5e3b61de5cafac9fdbcff5f8f5dc5d16db
|
data/lib/stripe/event_types.rb
CHANGED
|
@@ -618,6 +618,10 @@ module Stripe
|
|
|
618
618
|
Events::V2DataReportingQueryRunUpdatedEvent.lookup_type =>
|
|
619
619
|
Events::V2DataReportingQueryRunUpdatedEvent,
|
|
620
620
|
Events::V2ExtendExtensionRunFailedEvent.lookup_type => Events::V2ExtendExtensionRunFailedEvent,
|
|
621
|
+
Events::V2ExtendObjectDefinitionCreatedEvent.lookup_type =>
|
|
622
|
+
Events::V2ExtendObjectDefinitionCreatedEvent,
|
|
623
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEvent.lookup_type =>
|
|
624
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEvent,
|
|
621
625
|
Events::V2ExtendWorkflowRunFailedEvent.lookup_type => Events::V2ExtendWorkflowRunFailedEvent,
|
|
622
626
|
Events::V2ExtendWorkflowRunStartedEvent.lookup_type => Events::V2ExtendWorkflowRunStartedEvent,
|
|
623
627
|
Events::V2ExtendWorkflowRunSucceededEvent.lookup_type => Events::V2ExtendWorkflowRunSucceededEvent,
|
|
@@ -1653,6 +1657,10 @@ module Stripe
|
|
|
1653
1657
|
Events::V2DataReportingQueryRunUpdatedEventNotification,
|
|
1654
1658
|
Events::V2ExtendExtensionRunFailedEventNotification.lookup_type =>
|
|
1655
1659
|
Events::V2ExtendExtensionRunFailedEventNotification,
|
|
1660
|
+
Events::V2ExtendObjectDefinitionCreatedEventNotification.lookup_type =>
|
|
1661
|
+
Events::V2ExtendObjectDefinitionCreatedEventNotification,
|
|
1662
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEventNotification.lookup_type =>
|
|
1663
|
+
Events::V2ExtendObjectDefinitionVersionCreatedEventNotification,
|
|
1656
1664
|
Events::V2ExtendWorkflowRunFailedEventNotification.lookup_type =>
|
|
1657
1665
|
Events::V2ExtendWorkflowRunFailedEventNotification,
|
|
1658
1666
|
Events::V2ExtendWorkflowRunStartedEventNotification.lookup_type =>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an object definition is created.
|
|
7
|
+
class V2ExtendObjectDefinitionCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.extend.object_definition.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2ExtendObjectDefinitionCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The singular API name of the object definition.
|
|
14
|
+
attr_reader :api_name_singular
|
|
15
|
+
|
|
16
|
+
def self.inner_class_types
|
|
17
|
+
@inner_class_types = {}
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.field_remappings
|
|
21
|
+
@field_remappings = {}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.inner_class_types
|
|
26
|
+
@inner_class_types = { data: V2ExtendObjectDefinitionCreatedEventData }
|
|
27
|
+
end
|
|
28
|
+
attr_reader :data, :related_object
|
|
29
|
+
|
|
30
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
31
|
+
def fetch_related_object
|
|
32
|
+
_request(
|
|
33
|
+
method: :get,
|
|
34
|
+
path: related_object.url,
|
|
35
|
+
base_address: :api,
|
|
36
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Occurs when an object definition is created.
|
|
42
|
+
class V2ExtendObjectDefinitionCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
43
|
+
def self.lookup_type
|
|
44
|
+
"v2.extend.object_definition.created"
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
attr_reader :related_object
|
|
48
|
+
|
|
49
|
+
# Retrieves the ObjectDefinition related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
50
|
+
def fetch_related_object
|
|
51
|
+
resp = @client.raw_request(
|
|
52
|
+
:get,
|
|
53
|
+
related_object.url,
|
|
54
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
55
|
+
usage: ["fetch_related_object"]
|
|
56
|
+
)
|
|
57
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an object definition version is created.
|
|
7
|
+
class V2ExtendObjectDefinitionVersionCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.extend.object_definition_version.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2ExtendObjectDefinitionVersionCreatedEventData < ::Stripe::StripeObject
|
|
13
|
+
# The singular API name of the object definition.
|
|
14
|
+
attr_reader :api_name_singular
|
|
15
|
+
# The ID of the parent object definition.
|
|
16
|
+
attr_reader :object_definition
|
|
17
|
+
# The semantic version of the created object definition version, in `major.minor.patch` format.
|
|
18
|
+
attr_reader :version
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.inner_class_types
|
|
30
|
+
@inner_class_types = { data: V2ExtendObjectDefinitionVersionCreatedEventData }
|
|
31
|
+
end
|
|
32
|
+
attr_reader :data, :related_object
|
|
33
|
+
|
|
34
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
35
|
+
def fetch_related_object
|
|
36
|
+
_request(
|
|
37
|
+
method: :get,
|
|
38
|
+
path: related_object.url,
|
|
39
|
+
base_address: :api,
|
|
40
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Occurs when an object definition version is created.
|
|
46
|
+
class V2ExtendObjectDefinitionVersionCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
47
|
+
def self.lookup_type
|
|
48
|
+
"v2.extend.object_definition_version.created"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
attr_reader :related_object
|
|
52
|
+
|
|
53
|
+
# Retrieves the ObjectDefinitionVersion related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
54
|
+
def fetch_related_object
|
|
55
|
+
resp = @client.raw_request(
|
|
56
|
+
:get,
|
|
57
|
+
related_object.url,
|
|
58
|
+
opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
|
|
59
|
+
usage: ["fetch_related_object"]
|
|
60
|
+
)
|
|
61
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -188,7 +188,9 @@ module Stripe
|
|
|
188
188
|
Tax::Association.object_name => Tax::Association,
|
|
189
189
|
Tax::Calculation.object_name => Tax::Calculation,
|
|
190
190
|
Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
|
|
191
|
+
Tax::Certificate.object_name => Tax::Certificate,
|
|
191
192
|
Tax::Form.object_name => Tax::Form,
|
|
193
|
+
Tax::FormCorrection.object_name => Tax::FormCorrection,
|
|
192
194
|
Tax::Location.object_name => Tax::Location,
|
|
193
195
|
Tax::Registration.object_name => Tax::Registration,
|
|
194
196
|
Tax::Settings.object_name => Tax::Settings,
|
|
@@ -296,6 +298,8 @@ module Stripe
|
|
|
296
298
|
V2::Data::Reporting::QueryRun.object_name => V2::Data::Reporting::QueryRun,
|
|
297
299
|
V2::Data::Schema.object_name => V2::Data::Schema,
|
|
298
300
|
V2::Data::SearchResultList.object_name => V2::Data::SearchResultList,
|
|
301
|
+
V2::Extend::ObjectDefinition.object_name => V2::Extend::ObjectDefinition,
|
|
302
|
+
V2::Extend::ObjectDefinitionVersion.object_name => V2::Extend::ObjectDefinitionVersion,
|
|
299
303
|
V2::Extend::Workflow.object_name => V2::Extend::Workflow,
|
|
300
304
|
V2::Extend::WorkflowRun.object_name => V2::Extend::WorkflowRun,
|
|
301
305
|
V2::Iam::ActivityLog.object_name => V2::Iam::ActivityLog,
|
|
@@ -154,6 +154,49 @@ module Stripe
|
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
+
class Bills < ::Stripe::RequestParams
|
|
158
|
+
class Features < ::Stripe::RequestParams
|
|
159
|
+
# Whether to allow bill management features.
|
|
160
|
+
attr_accessor :bill_management
|
|
161
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
|
|
162
|
+
attr_accessor :disable_stripe_user_authentication
|
|
163
|
+
# Whether to allow sending money.
|
|
164
|
+
attr_accessor :send_money
|
|
165
|
+
|
|
166
|
+
def initialize(
|
|
167
|
+
bill_management: nil,
|
|
168
|
+
disable_stripe_user_authentication: nil,
|
|
169
|
+
send_money: nil
|
|
170
|
+
)
|
|
171
|
+
@bill_management = bill_management
|
|
172
|
+
@disable_stripe_user_authentication = disable_stripe_user_authentication
|
|
173
|
+
@send_money = send_money
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
# Whether the embedded component is enabled.
|
|
177
|
+
attr_accessor :enabled
|
|
178
|
+
# The list of features enabled in the embedded component.
|
|
179
|
+
attr_accessor :features
|
|
180
|
+
|
|
181
|
+
def initialize(enabled: nil, features: nil)
|
|
182
|
+
@enabled = enabled
|
|
183
|
+
@features = features
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class BusinessProfileManagement < ::Stripe::RequestParams
|
|
188
|
+
class Features < ::Stripe::RequestParams; end
|
|
189
|
+
# Whether the embedded component is enabled.
|
|
190
|
+
attr_accessor :enabled
|
|
191
|
+
# An empty list, because this embedded component has no features.
|
|
192
|
+
attr_accessor :features
|
|
193
|
+
|
|
194
|
+
def initialize(enabled: nil, features: nil)
|
|
195
|
+
@enabled = enabled
|
|
196
|
+
@features = features
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
157
200
|
class CapitalFinancing < ::Stripe::RequestParams
|
|
158
201
|
class Features < ::Stripe::RequestParams; end
|
|
159
202
|
# Whether the embedded component is enabled.
|
|
@@ -337,6 +380,19 @@ module Stripe
|
|
|
337
380
|
end
|
|
338
381
|
end
|
|
339
382
|
|
|
383
|
+
class FinancialAccountRewards < ::Stripe::RequestParams
|
|
384
|
+
class Features < ::Stripe::RequestParams; end
|
|
385
|
+
# Whether the embedded component is enabled.
|
|
386
|
+
attr_accessor :enabled
|
|
387
|
+
# An empty list, because this embedded component has no features.
|
|
388
|
+
attr_accessor :features
|
|
389
|
+
|
|
390
|
+
def initialize(enabled: nil, features: nil)
|
|
391
|
+
@enabled = enabled
|
|
392
|
+
@features = features
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
340
396
|
class FinancialAccountTransactions < ::Stripe::RequestParams
|
|
341
397
|
class Features < ::Stripe::RequestParams
|
|
342
398
|
# Whether to allow card spend dispute management features.
|
|
@@ -357,6 +413,86 @@ module Stripe
|
|
|
357
413
|
end
|
|
358
414
|
end
|
|
359
415
|
|
|
416
|
+
class FinancialAccounts < ::Stripe::RequestParams
|
|
417
|
+
class Features < ::Stripe::RequestParams
|
|
418
|
+
# Whether to allow bill management features.
|
|
419
|
+
attr_accessor :bill_management
|
|
420
|
+
# Whether to allow card management features.
|
|
421
|
+
attr_accessor :card_management
|
|
422
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
|
|
423
|
+
attr_accessor :disable_stripe_user_authentication
|
|
424
|
+
# Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
425
|
+
attr_accessor :edit_payout_schedule
|
|
426
|
+
# Whether to allow sending money.
|
|
427
|
+
attr_accessor :send_money
|
|
428
|
+
|
|
429
|
+
def initialize(
|
|
430
|
+
bill_management: nil,
|
|
431
|
+
card_management: nil,
|
|
432
|
+
disable_stripe_user_authentication: nil,
|
|
433
|
+
edit_payout_schedule: nil,
|
|
434
|
+
send_money: nil
|
|
435
|
+
)
|
|
436
|
+
@bill_management = bill_management
|
|
437
|
+
@card_management = card_management
|
|
438
|
+
@disable_stripe_user_authentication = disable_stripe_user_authentication
|
|
439
|
+
@edit_payout_schedule = edit_payout_schedule
|
|
440
|
+
@send_money = send_money
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
# Whether the embedded component is enabled.
|
|
444
|
+
attr_accessor :enabled
|
|
445
|
+
# The list of features enabled in the embedded component.
|
|
446
|
+
attr_accessor :features
|
|
447
|
+
|
|
448
|
+
def initialize(enabled: nil, features: nil)
|
|
449
|
+
@enabled = enabled
|
|
450
|
+
@features = features
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
class FinancialAccountsTransactions < ::Stripe::RequestParams
|
|
455
|
+
class Features < ::Stripe::RequestParams
|
|
456
|
+
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
|
|
457
|
+
attr_accessor :capture_payments
|
|
458
|
+
# Whether to allow card management features.
|
|
459
|
+
attr_accessor :card_management
|
|
460
|
+
# Whether to allow card spend dispute management features.
|
|
461
|
+
attr_accessor :card_spend_dispute_management
|
|
462
|
+
# Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
|
463
|
+
attr_accessor :destination_on_behalf_of_charge_management
|
|
464
|
+
# Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
|
465
|
+
attr_accessor :dispute_management
|
|
466
|
+
# Whether sending refunds is enabled. This is `true` by default.
|
|
467
|
+
attr_accessor :refund_management
|
|
468
|
+
|
|
469
|
+
def initialize(
|
|
470
|
+
capture_payments: nil,
|
|
471
|
+
card_management: nil,
|
|
472
|
+
card_spend_dispute_management: nil,
|
|
473
|
+
destination_on_behalf_of_charge_management: nil,
|
|
474
|
+
dispute_management: nil,
|
|
475
|
+
refund_management: nil
|
|
476
|
+
)
|
|
477
|
+
@capture_payments = capture_payments
|
|
478
|
+
@card_management = card_management
|
|
479
|
+
@card_spend_dispute_management = card_spend_dispute_management
|
|
480
|
+
@destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
|
|
481
|
+
@dispute_management = dispute_management
|
|
482
|
+
@refund_management = refund_management
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
# Whether the embedded component is enabled.
|
|
486
|
+
attr_accessor :enabled
|
|
487
|
+
# The list of features enabled in the embedded component.
|
|
488
|
+
attr_accessor :features
|
|
489
|
+
|
|
490
|
+
def initialize(enabled: nil, features: nil)
|
|
491
|
+
@enabled = enabled
|
|
492
|
+
@features = features
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
360
496
|
class InstantPayoutsPromotion < ::Stripe::RequestParams
|
|
361
497
|
class Features < ::Stripe::RequestParams
|
|
362
498
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
@@ -459,6 +595,19 @@ module Stripe
|
|
|
459
595
|
end
|
|
460
596
|
end
|
|
461
597
|
|
|
598
|
+
class NetworkCostPassthroughReport < ::Stripe::RequestParams
|
|
599
|
+
class Features < ::Stripe::RequestParams; end
|
|
600
|
+
# Whether the embedded component is enabled.
|
|
601
|
+
attr_accessor :enabled
|
|
602
|
+
# An empty list, because this embedded component has no features.
|
|
603
|
+
attr_accessor :features
|
|
604
|
+
|
|
605
|
+
def initialize(enabled: nil, features: nil)
|
|
606
|
+
@enabled = enabled
|
|
607
|
+
@features = features
|
|
608
|
+
end
|
|
609
|
+
end
|
|
610
|
+
|
|
462
611
|
class NotificationBanner < ::Stripe::RequestParams
|
|
463
612
|
class Features < ::Stripe::RequestParams
|
|
464
613
|
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
@@ -722,6 +871,29 @@ module Stripe
|
|
|
722
871
|
end
|
|
723
872
|
end
|
|
724
873
|
|
|
874
|
+
class RecipientsList < ::Stripe::RequestParams
|
|
875
|
+
class Features < ::Stripe::RequestParams
|
|
876
|
+
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default.
|
|
877
|
+
attr_accessor :disable_stripe_user_authentication
|
|
878
|
+
# Whether to allow sending money.
|
|
879
|
+
attr_accessor :send_money
|
|
880
|
+
|
|
881
|
+
def initialize(disable_stripe_user_authentication: nil, send_money: nil)
|
|
882
|
+
@disable_stripe_user_authentication = disable_stripe_user_authentication
|
|
883
|
+
@send_money = send_money
|
|
884
|
+
end
|
|
885
|
+
end
|
|
886
|
+
# Whether the embedded component is enabled.
|
|
887
|
+
attr_accessor :enabled
|
|
888
|
+
# The list of features enabled in the embedded component.
|
|
889
|
+
attr_accessor :features
|
|
890
|
+
|
|
891
|
+
def initialize(enabled: nil, features: nil)
|
|
892
|
+
@enabled = enabled
|
|
893
|
+
@features = features
|
|
894
|
+
end
|
|
895
|
+
end
|
|
896
|
+
|
|
725
897
|
class ReportingChart < ::Stripe::RequestParams
|
|
726
898
|
class Features < ::Stripe::RequestParams; end
|
|
727
899
|
# Whether the embedded component is enabled.
|
|
@@ -813,6 +985,10 @@ module Stripe
|
|
|
813
985
|
attr_accessor :balance_report
|
|
814
986
|
# Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
|
|
815
987
|
attr_accessor :balances
|
|
988
|
+
# Configuration for the [Bills](/connect/supported-embedded-components/bills/) embedded component.
|
|
989
|
+
attr_accessor :bills
|
|
990
|
+
# Configuration for the [Business profile management](/connect/supported-embedded-components/business-profile-management/) embedded component.
|
|
991
|
+
attr_accessor :business_profile_management
|
|
816
992
|
# Configuration for the [Capital financing](/connect/supported-embedded-components/capital-financing/) embedded component.
|
|
817
993
|
attr_accessor :capital_financing
|
|
818
994
|
# Configuration for the [Capital financing application](/connect/supported-embedded-components/capital-financing-application/) embedded component.
|
|
@@ -833,14 +1009,22 @@ module Stripe
|
|
|
833
1009
|
attr_accessor :export_tax_transactions
|
|
834
1010
|
# Configuration for the [financial account](/connect/supported-embedded-components/financial-account/) embedded component.
|
|
835
1011
|
attr_accessor :financial_account
|
|
1012
|
+
# Configuration for the [financial account rewards](/connect/supported-embedded-components/financial-account-rewards/) embedded component.
|
|
1013
|
+
attr_accessor :financial_account_rewards
|
|
836
1014
|
# Configuration for the [financial account transactions](/connect/supported-embedded-components/financial-account-transactions/) embedded component.
|
|
837
1015
|
attr_accessor :financial_account_transactions
|
|
1016
|
+
# Configuration for the [financial accounts](/connect/supported-embedded-components/financial-accounts/) embedded component.
|
|
1017
|
+
attr_accessor :financial_accounts
|
|
1018
|
+
# Configuration for the [financial accounts transactions](/connect/supported-embedded-components/financial-accounts-transactions/) embedded component.
|
|
1019
|
+
attr_accessor :financial_accounts_transactions
|
|
838
1020
|
# Configuration for the [instant payouts promotion](/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
|
|
839
1021
|
attr_accessor :instant_payouts_promotion
|
|
840
1022
|
# Configuration for the [issuing card](/connect/supported-embedded-components/issuing-card/) embedded component.
|
|
841
1023
|
attr_accessor :issuing_card
|
|
842
1024
|
# Configuration for the [issuing cards list](/connect/supported-embedded-components/issuing-cards-list/) embedded component.
|
|
843
1025
|
attr_accessor :issuing_cards_list
|
|
1026
|
+
# Configuration for the [network cost passthrough report](/connect/supported-embedded-components/network-cost-passthrough-report/) embedded component.
|
|
1027
|
+
attr_accessor :network_cost_passthrough_report
|
|
844
1028
|
# Configuration for the [notification banner](/connect/supported-embedded-components/notification-banner/) embedded component.
|
|
845
1029
|
attr_accessor :notification_banner
|
|
846
1030
|
# Configuration for the [payment details](/connect/supported-embedded-components/payment-details/) embedded component.
|
|
@@ -863,6 +1047,8 @@ module Stripe
|
|
|
863
1047
|
attr_accessor :product_tax_code_selector
|
|
864
1048
|
# Configuration for the [recipients](/connect/supported-embedded-components/recipients/) embedded component.
|
|
865
1049
|
attr_accessor :recipients
|
|
1050
|
+
# Configuration for the [recipients list](/connect/supported-embedded-components/recipients-list/) embedded component.
|
|
1051
|
+
attr_accessor :recipients_list
|
|
866
1052
|
# Configuration for the [reporting chart](/connect/supported-embedded-components/reporting-chart/) embedded component.
|
|
867
1053
|
attr_accessor :reporting_chart
|
|
868
1054
|
# Configuration for the [tax registrations](/connect/supported-embedded-components/tax-registrations/) embedded component.
|
|
@@ -884,6 +1070,8 @@ module Stripe
|
|
|
884
1070
|
app_viewport: nil,
|
|
885
1071
|
balance_report: nil,
|
|
886
1072
|
balances: nil,
|
|
1073
|
+
bills: nil,
|
|
1074
|
+
business_profile_management: nil,
|
|
887
1075
|
capital_financing: nil,
|
|
888
1076
|
capital_financing_application: nil,
|
|
889
1077
|
capital_financing_manual_payment: nil,
|
|
@@ -894,10 +1082,14 @@ module Stripe
|
|
|
894
1082
|
documents: nil,
|
|
895
1083
|
export_tax_transactions: nil,
|
|
896
1084
|
financial_account: nil,
|
|
1085
|
+
financial_account_rewards: nil,
|
|
897
1086
|
financial_account_transactions: nil,
|
|
1087
|
+
financial_accounts: nil,
|
|
1088
|
+
financial_accounts_transactions: nil,
|
|
898
1089
|
instant_payouts_promotion: nil,
|
|
899
1090
|
issuing_card: nil,
|
|
900
1091
|
issuing_cards_list: nil,
|
|
1092
|
+
network_cost_passthrough_report: nil,
|
|
901
1093
|
notification_banner: nil,
|
|
902
1094
|
payment_details: nil,
|
|
903
1095
|
payment_disputes: nil,
|
|
@@ -909,6 +1101,7 @@ module Stripe
|
|
|
909
1101
|
payouts_list: nil,
|
|
910
1102
|
product_tax_code_selector: nil,
|
|
911
1103
|
recipients: nil,
|
|
1104
|
+
recipients_list: nil,
|
|
912
1105
|
reporting_chart: nil,
|
|
913
1106
|
tax_registrations: nil,
|
|
914
1107
|
tax_settings: nil,
|
|
@@ -923,6 +1116,8 @@ module Stripe
|
|
|
923
1116
|
@app_viewport = app_viewport
|
|
924
1117
|
@balance_report = balance_report
|
|
925
1118
|
@balances = balances
|
|
1119
|
+
@bills = bills
|
|
1120
|
+
@business_profile_management = business_profile_management
|
|
926
1121
|
@capital_financing = capital_financing
|
|
927
1122
|
@capital_financing_application = capital_financing_application
|
|
928
1123
|
@capital_financing_manual_payment = capital_financing_manual_payment
|
|
@@ -933,10 +1128,14 @@ module Stripe
|
|
|
933
1128
|
@documents = documents
|
|
934
1129
|
@export_tax_transactions = export_tax_transactions
|
|
935
1130
|
@financial_account = financial_account
|
|
1131
|
+
@financial_account_rewards = financial_account_rewards
|
|
936
1132
|
@financial_account_transactions = financial_account_transactions
|
|
1133
|
+
@financial_accounts = financial_accounts
|
|
1134
|
+
@financial_accounts_transactions = financial_accounts_transactions
|
|
937
1135
|
@instant_payouts_promotion = instant_payouts_promotion
|
|
938
1136
|
@issuing_card = issuing_card
|
|
939
1137
|
@issuing_cards_list = issuing_cards_list
|
|
1138
|
+
@network_cost_passthrough_report = network_cost_passthrough_report
|
|
940
1139
|
@notification_banner = notification_banner
|
|
941
1140
|
@payment_details = payment_details
|
|
942
1141
|
@payment_disputes = payment_disputes
|
|
@@ -948,6 +1147,7 @@ module Stripe
|
|
|
948
1147
|
@payouts_list = payouts_list
|
|
949
1148
|
@product_tax_code_selector = product_tax_code_selector
|
|
950
1149
|
@recipients = recipients
|
|
1150
|
+
@recipients_list = recipients_list
|
|
951
1151
|
@reporting_chart = reporting_chart
|
|
952
1152
|
@tax_registrations = tax_registrations
|
|
953
1153
|
@tax_settings = tax_settings
|
|
@@ -362,6 +362,15 @@ module Stripe
|
|
|
362
362
|
end
|
|
363
363
|
end
|
|
364
364
|
|
|
365
|
+
class CustomPaymentMethodOptions < ::Stripe::RequestParams
|
|
366
|
+
# Use `off_session` to set up this custom payment method for future payments when the customer is absent. Use `none` to disable setup for future usage.
|
|
367
|
+
attr_accessor :setup_future_usage
|
|
368
|
+
|
|
369
|
+
def initialize(setup_future_usage: nil)
|
|
370
|
+
@setup_future_usage = setup_future_usage
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
365
374
|
class CustomText < ::Stripe::RequestParams
|
|
366
375
|
class AfterSubmit < ::Stripe::RequestParams
|
|
367
376
|
# Text can be up to 1200 characters in length.
|
|
@@ -2452,10 +2461,19 @@ module Stripe
|
|
|
2452
2461
|
end
|
|
2453
2462
|
|
|
2454
2463
|
class Paypay < ::Stripe::RequestParams
|
|
2464
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2465
|
+
#
|
|
2466
|
+
# 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.
|
|
2467
|
+
#
|
|
2468
|
+
# 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.
|
|
2469
|
+
#
|
|
2470
|
+
# 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).
|
|
2471
|
+
attr_accessor :setup_future_usage
|
|
2455
2472
|
# The merchant's subscription identifier for this off-session charge.
|
|
2456
2473
|
attr_accessor :subscription_reference
|
|
2457
2474
|
|
|
2458
|
-
def initialize(subscription_reference: nil)
|
|
2475
|
+
def initialize(setup_future_usage: nil, subscription_reference: nil)
|
|
2476
|
+
@setup_future_usage = setup_future_usage
|
|
2459
2477
|
@subscription_reference = subscription_reference
|
|
2460
2478
|
end
|
|
2461
2479
|
end
|
|
@@ -2686,6 +2704,21 @@ module Stripe
|
|
|
2686
2704
|
end
|
|
2687
2705
|
end
|
|
2688
2706
|
|
|
2707
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
2708
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2709
|
+
#
|
|
2710
|
+
# 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.
|
|
2711
|
+
#
|
|
2712
|
+
# 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.
|
|
2713
|
+
#
|
|
2714
|
+
# 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).
|
|
2715
|
+
attr_accessor :setup_future_usage
|
|
2716
|
+
|
|
2717
|
+
def initialize(setup_future_usage: nil)
|
|
2718
|
+
@setup_future_usage = setup_future_usage
|
|
2719
|
+
end
|
|
2720
|
+
end
|
|
2721
|
+
|
|
2689
2722
|
class Sunbit < ::Stripe::RequestParams
|
|
2690
2723
|
# Controls when the funds will be captured from the customer's account.
|
|
2691
2724
|
attr_accessor :capture_method
|
|
@@ -2911,6 +2944,8 @@ module Stripe
|
|
|
2911
2944
|
attr_accessor :sequra
|
|
2912
2945
|
# contains details about the Sofort payment method options.
|
|
2913
2946
|
attr_accessor :sofort
|
|
2947
|
+
# contains details about the Stripe Balance payment method options.
|
|
2948
|
+
attr_accessor :stripe_balance
|
|
2914
2949
|
# contains details about the Sunbit payment method options.
|
|
2915
2950
|
attr_accessor :sunbit
|
|
2916
2951
|
# contains details about the Swish payment method options.
|
|
@@ -2972,6 +3007,7 @@ module Stripe
|
|
|
2972
3007
|
sepa_debit: nil,
|
|
2973
3008
|
sequra: nil,
|
|
2974
3009
|
sofort: nil,
|
|
3010
|
+
stripe_balance: nil,
|
|
2975
3011
|
sunbit: nil,
|
|
2976
3012
|
swish: nil,
|
|
2977
3013
|
twint: nil,
|
|
@@ -3026,6 +3062,7 @@ module Stripe
|
|
|
3026
3062
|
@sepa_debit = sepa_debit
|
|
3027
3063
|
@sequra = sequra
|
|
3028
3064
|
@sofort = sofort
|
|
3065
|
+
@stripe_balance = stripe_balance
|
|
3029
3066
|
@sunbit = sunbit
|
|
3030
3067
|
@swish = swish
|
|
3031
3068
|
@twint = twint
|
|
@@ -3651,6 +3688,8 @@ module Stripe
|
|
|
3651
3688
|
attr_accessor :currency
|
|
3652
3689
|
# Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `elements`.
|
|
3653
3690
|
attr_accessor :custom_fields
|
|
3691
|
+
# Options keyed by custom payment method type IDs (e.g., `cpmt_123`). Each ID must belong to your account and be included in `custom_payment_method_types`. Only available in `payment` mode.
|
|
3692
|
+
attr_accessor :custom_payment_method_options
|
|
3654
3693
|
# A list of custom payment methods (e.g., `cpmt_123`) this Checkout Session can accept.
|
|
3655
3694
|
#
|
|
3656
3695
|
# You can add custom payment methods to your account through the dashboard under Settings > Custom Payment Methods.
|
|
@@ -3820,6 +3859,7 @@ module Stripe
|
|
|
3820
3859
|
consent_collection: nil,
|
|
3821
3860
|
currency: nil,
|
|
3822
3861
|
custom_fields: nil,
|
|
3862
|
+
custom_payment_method_options: nil,
|
|
3823
3863
|
custom_payment_method_types: nil,
|
|
3824
3864
|
custom_text: nil,
|
|
3825
3865
|
customer: nil,
|
|
@@ -3881,6 +3921,7 @@ module Stripe
|
|
|
3881
3921
|
@consent_collection = consent_collection
|
|
3882
3922
|
@currency = currency
|
|
3883
3923
|
@custom_fields = custom_fields
|
|
3924
|
+
@custom_payment_method_options = custom_payment_method_options
|
|
3884
3925
|
@custom_payment_method_types = custom_payment_method_types
|
|
3885
3926
|
@custom_text = custom_text
|
|
3886
3927
|
@customer = customer
|