stripe 19.7.0.pre.alpha.1 → 19.7.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/api_requestor.rb +2 -2
- data/lib/stripe/event_types.rb +32 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_metronome_notification_latency_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_money_management_payout_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_intent_requires_action_event.rb +44 -0
- data/lib/stripe/events/v2_signals_payment_retry_evaluations_retry_recommended_event.rb +46 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +8 -1
- data/lib/stripe/params/billing/feedback_option_create_params.rb +18 -0
- data/lib/stripe/params/billing/feedback_option_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_list_params.rb +27 -0
- data/lib/stripe/params/billing/feedback_option_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/feedback_option_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +4 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_update_params.rb +53 -0
- data/lib/stripe/params/customer_session_create_params.rb +26 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +9 -5
- data/lib/stripe/params/payment_intent_create_params.rb +9 -5
- data/lib/stripe/params/payment_intent_update_params.rb +9 -5
- data/lib/stripe/params/payment_link_update_params.rb +32 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +19 -0
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -1
- data/lib/stripe/params/setup_intent_create_params.rb +4 -5
- data/lib/stripe/params/setup_intent_update_params.rb +4 -5
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +21 -1
- data/lib/stripe/params/subscription_cancel_params.rb +4 -1
- data/lib/stripe/params/subscription_update_params.rb +8 -1
- data/lib/stripe/params/tax/registration_create_params.rb +351 -27
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +21 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +34 -0
- data/lib/stripe/params/v2/billing/contract_update_params.rb +91 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +6 -5
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +31 -1
- data/lib/stripe/params/v2/core/{approval_request_submit_params.rb → approval_request_update_params.rb} +2 -2
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +13 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/payout_method_disable_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +32 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_cancel_params.rb +17 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_create_params.rb +20 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/payment_retry_evaluation_update_params.rb +20 -0
- data/lib/stripe/params/v2/{core/approval_request_execute_params.rb → signals/payment_retry_signal_retrieve_params.rb} +2 -2
- data/lib/stripe/params/v2/tax/integration_configuration_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/integration_configuration_update_params.rb +25 -0
- data/lib/stripe/params.rb +31 -4
- data/lib/stripe/resources/account.rb +2 -0
- data/lib/stripe/resources/account_session.rb +27 -0
- data/lib/stripe/resources/billing/feedback_option.rb +59 -1
- data/lib/stripe/resources/charge.rb +16 -0
- data/lib/stripe/resources/checkout/session.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +15 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +6 -6
- data/lib/stripe/resources/identity/verification_report.rb +24 -0
- data/lib/stripe/resources/payment_attempt_record.rb +16 -0
- data/lib/stripe/resources/payment_intent.rb +26 -0
- data/lib/stripe/resources/payment_record.rb +16 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +2 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +17 -1
- data/lib/stripe/resources/shared_payment/issued_token.rb +17 -1
- data/lib/stripe/resources/terminal/reader.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +48 -0
- data/lib/stripe/resources/v2/core/account.rb +2 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +72 -14
- data/lib/stripe/resources/v2/core/event_notification.rb +6 -3
- data/lib/stripe/resources/v2/core/fee_batch.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +75 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +4 -2
- data/lib/stripe/resources/v2/money_management/received_debit.rb +2 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +36 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +50 -26
- data/lib/stripe/resources/v2/signals/payment_retry_evaluation.rb +47 -0
- data/lib/stripe/resources/v2/signals/payment_retry_signal.rb +56 -0
- data/lib/stripe/resources/v2/tax/integration_configuration.rb +44 -0
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/billing/feedback_option_service.rb +63 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/oauth_service.rb +1 -1
- data/lib/stripe/services/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/v2/billing/contract_service.rb +5 -0
- data/lib/stripe/services/v2/core/approval_request_service.rb +4 -16
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/signals/payment_retry_evaluation_service.rb +62 -0
- data/lib/stripe/services/v2/signals/payment_retry_signal_service.rb +21 -0
- data/lib/stripe/services/v2/signals_service.rb +4 -1
- data/lib/stripe/services/v2/tax/integration_configuration_service.rb +32 -0
- data/lib/stripe/services/v2/tax_service.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_event_notification_handler.rb +32 -0
- data/lib/stripe/util.rb +32 -0
- data/lib/stripe/v2_list_object.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3252 -521
- metadata +34 -4
|
@@ -1461,9 +1461,12 @@ module Stripe
|
|
|
1461
1461
|
class Restrictions < ::Stripe::RequestParams
|
|
1462
1462
|
# The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
|
|
1463
1463
|
attr_accessor :brands_blocked
|
|
1464
|
+
# Card funding types to block for this Checkout Session. Supported values are `credit`, `debit`, and `prepaid`.
|
|
1465
|
+
attr_accessor :funding_types_blocked
|
|
1464
1466
|
|
|
1465
|
-
def initialize(brands_blocked: nil)
|
|
1467
|
+
def initialize(brands_blocked: nil, funding_types_blocked: nil)
|
|
1466
1468
|
@brands_blocked = brands_blocked
|
|
1469
|
+
@funding_types_blocked = funding_types_blocked
|
|
1467
1470
|
end
|
|
1468
1471
|
end
|
|
1469
1472
|
# Controls when the funds will be captured from the customer's account.
|
|
@@ -295,6 +295,53 @@ module Stripe
|
|
|
295
295
|
end
|
|
296
296
|
end
|
|
297
297
|
|
|
298
|
+
class PaymentIntentData < ::Stripe::RequestParams
|
|
299
|
+
# An arbitrary string attached to the object. Often useful for displaying to users. Pass an empty string to clear a previously configured value.
|
|
300
|
+
attr_accessor :description
|
|
301
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
302
|
+
attr_accessor :metadata
|
|
303
|
+
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails). Pass an empty string to clear a previously configured recipient.
|
|
304
|
+
attr_accessor :receipt_email
|
|
305
|
+
# Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.
|
|
306
|
+
#
|
|
307
|
+
# When setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.
|
|
308
|
+
#
|
|
309
|
+
# When setting this to `off_session`, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.
|
|
310
|
+
#
|
|
311
|
+
# If a Customer has been provided or Checkout creates a new Customer, Checkout will attach the payment method to the Customer.
|
|
312
|
+
#
|
|
313
|
+
# If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
|
|
314
|
+
#
|
|
315
|
+
# When processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
|
|
316
|
+
#
|
|
317
|
+
# Pass an empty string to remove a previously supplied configuration.
|
|
318
|
+
attr_accessor :setup_future_usage
|
|
319
|
+
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
|
320
|
+
#
|
|
321
|
+
# Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
|
|
322
|
+
# Pass an empty string to clear a previously configured value.
|
|
323
|
+
attr_accessor :statement_descriptor
|
|
324
|
+
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
|
|
325
|
+
# Pass an empty string to clear a previously configured value.
|
|
326
|
+
attr_accessor :statement_descriptor_suffix
|
|
327
|
+
|
|
328
|
+
def initialize(
|
|
329
|
+
description: nil,
|
|
330
|
+
metadata: nil,
|
|
331
|
+
receipt_email: nil,
|
|
332
|
+
setup_future_usage: nil,
|
|
333
|
+
statement_descriptor: nil,
|
|
334
|
+
statement_descriptor_suffix: nil
|
|
335
|
+
)
|
|
336
|
+
@description = description
|
|
337
|
+
@metadata = metadata
|
|
338
|
+
@receipt_email = receipt_email
|
|
339
|
+
@setup_future_usage = setup_future_usage
|
|
340
|
+
@statement_descriptor = statement_descriptor
|
|
341
|
+
@statement_descriptor_suffix = statement_descriptor_suffix
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
|
+
|
|
298
345
|
class ShippingOption < ::Stripe::RequestParams
|
|
299
346
|
class ShippingRateData < ::Stripe::RequestParams
|
|
300
347
|
class DeliveryEstimate < ::Stripe::RequestParams
|
|
@@ -483,6 +530,10 @@ module Stripe
|
|
|
483
530
|
attr_accessor :line_items
|
|
484
531
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
485
532
|
attr_accessor :metadata
|
|
533
|
+
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
|
|
534
|
+
#
|
|
535
|
+
# You can only update these parameters when `ui_mode` is `elements` and while the session is active.
|
|
536
|
+
attr_accessor :payment_intent_data
|
|
486
537
|
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
|
487
538
|
attr_accessor :shipping_options
|
|
488
539
|
# A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
|
|
@@ -496,6 +547,7 @@ module Stripe
|
|
|
496
547
|
invoice_creation: nil,
|
|
497
548
|
line_items: nil,
|
|
498
549
|
metadata: nil,
|
|
550
|
+
payment_intent_data: nil,
|
|
499
551
|
shipping_options: nil,
|
|
500
552
|
subscription_data: nil
|
|
501
553
|
)
|
|
@@ -506,6 +558,7 @@ module Stripe
|
|
|
506
558
|
@invoice_creation = invoice_creation
|
|
507
559
|
@line_items = line_items
|
|
508
560
|
@metadata = metadata
|
|
561
|
+
@payment_intent_data = payment_intent_data
|
|
509
562
|
@shipping_options = shipping_options
|
|
510
563
|
@subscription_data = subscription_data
|
|
511
564
|
end
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class CustomerSessionCreateParams < ::Stripe::RequestParams
|
|
6
6
|
class Components < ::Stripe::RequestParams
|
|
7
|
+
class ActiveEntitlements < ::Stripe::RequestParams
|
|
8
|
+
# Whether the active entitlements is enabled.
|
|
9
|
+
attr_accessor :enabled
|
|
10
|
+
|
|
11
|
+
def initialize(enabled: nil)
|
|
12
|
+
@enabled = enabled
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
7
16
|
class BuyButton < ::Stripe::RequestParams
|
|
8
17
|
# Whether the buy button is enabled.
|
|
9
18
|
attr_accessor :enabled
|
|
@@ -13,6 +22,15 @@ module Stripe
|
|
|
13
22
|
end
|
|
14
23
|
end
|
|
15
24
|
|
|
25
|
+
class CustomerPortal < ::Stripe::RequestParams
|
|
26
|
+
# Whether the customer portal is enabled.
|
|
27
|
+
attr_accessor :enabled
|
|
28
|
+
|
|
29
|
+
def initialize(enabled: nil)
|
|
30
|
+
@enabled = enabled
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
16
34
|
class CustomerSheet < ::Stripe::RequestParams
|
|
17
35
|
class Features < ::Stripe::RequestParams
|
|
18
36
|
# A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
|
|
@@ -171,8 +189,12 @@ module Stripe
|
|
|
171
189
|
@features = features
|
|
172
190
|
end
|
|
173
191
|
end
|
|
192
|
+
# Configuration for active entitlements.
|
|
193
|
+
attr_accessor :active_entitlements
|
|
174
194
|
# Configuration for buy button.
|
|
175
195
|
attr_accessor :buy_button
|
|
196
|
+
# Configuration for customer portal.
|
|
197
|
+
attr_accessor :customer_portal
|
|
176
198
|
# Configuration for the customer sheet.
|
|
177
199
|
attr_accessor :customer_sheet
|
|
178
200
|
# Configuration for the mobile payment element.
|
|
@@ -185,14 +207,18 @@ module Stripe
|
|
|
185
207
|
attr_accessor :tax_id_element
|
|
186
208
|
|
|
187
209
|
def initialize(
|
|
210
|
+
active_entitlements: nil,
|
|
188
211
|
buy_button: nil,
|
|
212
|
+
customer_portal: nil,
|
|
189
213
|
customer_sheet: nil,
|
|
190
214
|
mobile_payment_element: nil,
|
|
191
215
|
payment_element: nil,
|
|
192
216
|
pricing_table: nil,
|
|
193
217
|
tax_id_element: nil
|
|
194
218
|
)
|
|
219
|
+
@active_entitlements = active_entitlements
|
|
195
220
|
@buy_button = buy_button
|
|
221
|
+
@customer_portal = customer_portal
|
|
196
222
|
@customer_sheet = customer_sheet
|
|
197
223
|
@mobile_payment_element = mobile_payment_element
|
|
198
224
|
@payment_element = payment_element
|
|
@@ -3194,11 +3194,19 @@ module Stripe
|
|
|
3194
3194
|
attr_accessor :setup_future_usage
|
|
3195
3195
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
3196
3196
|
attr_accessor :target_date
|
|
3197
|
+
# Attribute for param field verification_method
|
|
3198
|
+
attr_accessor :verification_method
|
|
3197
3199
|
|
|
3198
|
-
def initialize(
|
|
3200
|
+
def initialize(
|
|
3201
|
+
mandate_options: nil,
|
|
3202
|
+
setup_future_usage: nil,
|
|
3203
|
+
target_date: nil,
|
|
3204
|
+
verification_method: nil
|
|
3205
|
+
)
|
|
3199
3206
|
@mandate_options = mandate_options
|
|
3200
3207
|
@setup_future_usage = setup_future_usage
|
|
3201
3208
|
@target_date = target_date
|
|
3209
|
+
@verification_method = verification_method
|
|
3202
3210
|
end
|
|
3203
3211
|
end
|
|
3204
3212
|
|
|
@@ -6532,8 +6540,6 @@ module Stripe
|
|
|
6532
6540
|
attr_accessor :payment_method_data
|
|
6533
6541
|
# Payment method-specific configuration for this PaymentIntent.
|
|
6534
6542
|
attr_accessor :payment_method_options
|
|
6535
|
-
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
6536
|
-
attr_accessor :payment_method_types
|
|
6537
6543
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
6538
6544
|
attr_accessor :radar_options
|
|
6539
6545
|
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
@@ -6577,7 +6583,6 @@ module Stripe
|
|
|
6577
6583
|
payment_method: nil,
|
|
6578
6584
|
payment_method_data: nil,
|
|
6579
6585
|
payment_method_options: nil,
|
|
6580
|
-
payment_method_types: nil,
|
|
6581
6586
|
radar_options: nil,
|
|
6582
6587
|
receipt_email: nil,
|
|
6583
6588
|
return_url: nil,
|
|
@@ -6604,7 +6609,6 @@ module Stripe
|
|
|
6604
6609
|
@payment_method = payment_method
|
|
6605
6610
|
@payment_method_data = payment_method_data
|
|
6606
6611
|
@payment_method_options = payment_method_options
|
|
6607
|
-
@payment_method_types = payment_method_types
|
|
6608
6612
|
@radar_options = radar_options
|
|
6609
6613
|
@receipt_email = receipt_email
|
|
6610
6614
|
@return_url = return_url
|
|
@@ -3208,11 +3208,19 @@ module Stripe
|
|
|
3208
3208
|
attr_accessor :setup_future_usage
|
|
3209
3209
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
3210
3210
|
attr_accessor :target_date
|
|
3211
|
+
# Attribute for param field verification_method
|
|
3212
|
+
attr_accessor :verification_method
|
|
3211
3213
|
|
|
3212
|
-
def initialize(
|
|
3214
|
+
def initialize(
|
|
3215
|
+
mandate_options: nil,
|
|
3216
|
+
setup_future_usage: nil,
|
|
3217
|
+
target_date: nil,
|
|
3218
|
+
verification_method: nil
|
|
3219
|
+
)
|
|
3213
3220
|
@mandate_options = mandate_options
|
|
3214
3221
|
@setup_future_usage = setup_future_usage
|
|
3215
3222
|
@target_date = target_date
|
|
3223
|
+
@verification_method = verification_method
|
|
3216
3224
|
end
|
|
3217
3225
|
end
|
|
3218
3226
|
|
|
@@ -6636,8 +6644,6 @@ module Stripe
|
|
|
6636
6644
|
attr_accessor :payment_method_data
|
|
6637
6645
|
# Payment method-specific configuration for this PaymentIntent.
|
|
6638
6646
|
attr_accessor :payment_method_options
|
|
6639
|
-
# The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
6640
|
-
attr_accessor :payment_method_types
|
|
6641
6647
|
# When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
|
|
6642
6648
|
attr_accessor :payments_orchestration
|
|
6643
6649
|
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
@@ -6702,7 +6708,6 @@ module Stripe
|
|
|
6702
6708
|
payment_method_configuration: nil,
|
|
6703
6709
|
payment_method_data: nil,
|
|
6704
6710
|
payment_method_options: nil,
|
|
6705
|
-
payment_method_types: nil,
|
|
6706
6711
|
payments_orchestration: nil,
|
|
6707
6712
|
radar_options: nil,
|
|
6708
6713
|
receipt_email: nil,
|
|
@@ -6745,7 +6750,6 @@ module Stripe
|
|
|
6745
6750
|
@payment_method_configuration = payment_method_configuration
|
|
6746
6751
|
@payment_method_data = payment_method_data
|
|
6747
6752
|
@payment_method_options = payment_method_options
|
|
6748
|
-
@payment_method_types = payment_method_types
|
|
6749
6753
|
@payments_orchestration = payments_orchestration
|
|
6750
6754
|
@radar_options = radar_options
|
|
6751
6755
|
@receipt_email = receipt_email
|
|
@@ -3186,11 +3186,19 @@ module Stripe
|
|
|
3186
3186
|
attr_accessor :setup_future_usage
|
|
3187
3187
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
3188
3188
|
attr_accessor :target_date
|
|
3189
|
+
# Attribute for param field verification_method
|
|
3190
|
+
attr_accessor :verification_method
|
|
3189
3191
|
|
|
3190
|
-
def initialize(
|
|
3192
|
+
def initialize(
|
|
3193
|
+
mandate_options: nil,
|
|
3194
|
+
setup_future_usage: nil,
|
|
3195
|
+
target_date: nil,
|
|
3196
|
+
verification_method: nil
|
|
3197
|
+
)
|
|
3191
3198
|
@mandate_options = mandate_options
|
|
3192
3199
|
@setup_future_usage = setup_future_usage
|
|
3193
3200
|
@target_date = target_date
|
|
3201
|
+
@verification_method = verification_method
|
|
3194
3202
|
end
|
|
3195
3203
|
end
|
|
3196
3204
|
|
|
@@ -6550,8 +6558,6 @@ module Stripe
|
|
|
6550
6558
|
attr_accessor :payment_method_data
|
|
6551
6559
|
# Payment-method-specific configuration for this PaymentIntent.
|
|
6552
6560
|
attr_accessor :payment_method_options
|
|
6553
|
-
# The list of payment method types (for example, card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
6554
|
-
attr_accessor :payment_method_types
|
|
6555
6561
|
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
6556
6562
|
attr_accessor :receipt_email
|
|
6557
6563
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -6599,7 +6605,6 @@ module Stripe
|
|
|
6599
6605
|
payment_method_configuration: nil,
|
|
6600
6606
|
payment_method_data: nil,
|
|
6601
6607
|
payment_method_options: nil,
|
|
6602
|
-
payment_method_types: nil,
|
|
6603
6608
|
receipt_email: nil,
|
|
6604
6609
|
setup_future_usage: nil,
|
|
6605
6610
|
shipping: nil,
|
|
@@ -6629,7 +6634,6 @@ module Stripe
|
|
|
6629
6634
|
@payment_method_configuration = payment_method_configuration
|
|
6630
6635
|
@payment_method_data = payment_method_data
|
|
6631
6636
|
@payment_method_options = payment_method_options
|
|
6632
|
-
@payment_method_types = payment_method_types
|
|
6633
6637
|
@receipt_email = receipt_email
|
|
6634
6638
|
@setup_future_usage = setup_future_usage
|
|
6635
6639
|
@shipping = shipping
|
|
@@ -601,12 +601,31 @@ module Stripe
|
|
|
601
601
|
@required = required
|
|
602
602
|
end
|
|
603
603
|
end
|
|
604
|
+
|
|
605
|
+
class TransferData < ::Stripe::RequestParams
|
|
606
|
+
# The amount that will be transferred automatically when a charge succeeds.
|
|
607
|
+
attr_accessor :amount
|
|
608
|
+
# If specified, successful charges will be attributed to the destination
|
|
609
|
+
# account for tax reporting, and the funds from charges will be transferred
|
|
610
|
+
# to the destination account. The ID of the resulting transfer will be
|
|
611
|
+
# returned on the successful charge's `transfer` field.
|
|
612
|
+
attr_accessor :destination
|
|
613
|
+
|
|
614
|
+
def initialize(amount: nil, destination: nil)
|
|
615
|
+
@amount = amount
|
|
616
|
+
@destination = destination
|
|
617
|
+
end
|
|
618
|
+
end
|
|
604
619
|
# Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
|
|
605
620
|
attr_accessor :active
|
|
606
621
|
# Behavior after the purchase is complete.
|
|
607
622
|
attr_accessor :after_completion
|
|
608
623
|
# Enables user redeemable promotion codes.
|
|
609
624
|
attr_accessor :allow_promotion_codes
|
|
625
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Can only be applied when there are no line items with recurring prices.
|
|
626
|
+
attr_accessor :application_fee_amount
|
|
627
|
+
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field.
|
|
628
|
+
attr_accessor :application_fee_percent
|
|
610
629
|
# Configuration for automatic tax collection.
|
|
611
630
|
attr_accessor :automatic_tax
|
|
612
631
|
# Configuration for collecting the customer's billing address. Defaults to `auto`.
|
|
@@ -631,6 +650,8 @@ module Stripe
|
|
|
631
650
|
attr_accessor :metadata
|
|
632
651
|
# Controls settings applied for collecting the customer's name.
|
|
633
652
|
attr_accessor :name_collection
|
|
653
|
+
# The account on behalf of which to charge.
|
|
654
|
+
attr_accessor :on_behalf_of
|
|
634
655
|
# A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
|
|
635
656
|
# There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items.
|
|
636
657
|
# There is a maximum of 20 combined line items and optional items.
|
|
@@ -663,11 +684,15 @@ module Stripe
|
|
|
663
684
|
attr_accessor :subscription_data
|
|
664
685
|
# Controls tax ID collection during checkout.
|
|
665
686
|
attr_accessor :tax_id_collection
|
|
687
|
+
# The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to.
|
|
688
|
+
attr_accessor :transfer_data
|
|
666
689
|
|
|
667
690
|
def initialize(
|
|
668
691
|
active: nil,
|
|
669
692
|
after_completion: nil,
|
|
670
693
|
allow_promotion_codes: nil,
|
|
694
|
+
application_fee_amount: nil,
|
|
695
|
+
application_fee_percent: nil,
|
|
671
696
|
automatic_tax: nil,
|
|
672
697
|
billing_address_collection: nil,
|
|
673
698
|
consent_collection: nil,
|
|
@@ -680,6 +705,7 @@ module Stripe
|
|
|
680
705
|
line_items: nil,
|
|
681
706
|
metadata: nil,
|
|
682
707
|
name_collection: nil,
|
|
708
|
+
on_behalf_of: nil,
|
|
683
709
|
optional_items: nil,
|
|
684
710
|
payment_intent_data: nil,
|
|
685
711
|
payment_method_collection: nil,
|
|
@@ -691,11 +717,14 @@ module Stripe
|
|
|
691
717
|
shipping_options: nil,
|
|
692
718
|
submit_type: nil,
|
|
693
719
|
subscription_data: nil,
|
|
694
|
-
tax_id_collection: nil
|
|
720
|
+
tax_id_collection: nil,
|
|
721
|
+
transfer_data: nil
|
|
695
722
|
)
|
|
696
723
|
@active = active
|
|
697
724
|
@after_completion = after_completion
|
|
698
725
|
@allow_promotion_codes = allow_promotion_codes
|
|
726
|
+
@application_fee_amount = application_fee_amount
|
|
727
|
+
@application_fee_percent = application_fee_percent
|
|
699
728
|
@automatic_tax = automatic_tax
|
|
700
729
|
@billing_address_collection = billing_address_collection
|
|
701
730
|
@consent_collection = consent_collection
|
|
@@ -708,6 +737,7 @@ module Stripe
|
|
|
708
737
|
@line_items = line_items
|
|
709
738
|
@metadata = metadata
|
|
710
739
|
@name_collection = name_collection
|
|
740
|
+
@on_behalf_of = on_behalf_of
|
|
711
741
|
@optional_items = optional_items
|
|
712
742
|
@payment_intent_data = payment_intent_data
|
|
713
743
|
@payment_method_collection = payment_method_collection
|
|
@@ -720,6 +750,7 @@ module Stripe
|
|
|
720
750
|
@submit_type = submit_type
|
|
721
751
|
@subscription_data = subscription_data
|
|
722
752
|
@tax_id_collection = tax_id_collection
|
|
753
|
+
@transfer_data = transfer_data
|
|
723
754
|
end
|
|
724
755
|
end
|
|
725
756
|
end
|
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentRecordReportPaymentAttemptParams < ::Stripe::RequestParams
|
|
6
|
+
class Canceled < ::Stripe::RequestParams
|
|
7
|
+
# When the reported payment was canceled. Measured in seconds since the Unix epoch.
|
|
8
|
+
attr_accessor :canceled_at
|
|
9
|
+
# Payment evaluations associated with this reported payment.
|
|
10
|
+
attr_accessor :payment_evaluations
|
|
11
|
+
# The reason the payment attempt was canceled.
|
|
12
|
+
attr_accessor :reason
|
|
13
|
+
|
|
14
|
+
def initialize(canceled_at: nil, payment_evaluations: nil, reason: nil)
|
|
15
|
+
@canceled_at = canceled_at
|
|
16
|
+
@payment_evaluations = payment_evaluations
|
|
17
|
+
@reason = reason
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
6
21
|
class Failed < ::Stripe::RequestParams
|
|
7
22
|
class ProcessorDetails < ::Stripe::RequestParams
|
|
8
23
|
class Custom < ::Stripe::RequestParams
|
|
@@ -226,6 +241,8 @@ module Stripe
|
|
|
226
241
|
@phone = phone
|
|
227
242
|
end
|
|
228
243
|
end
|
|
244
|
+
# Information about the payment attempt cancelation.
|
|
245
|
+
attr_accessor :canceled
|
|
229
246
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
230
247
|
attr_accessor :description
|
|
231
248
|
# Specifies which fields in the response should be expanded.
|
|
@@ -246,6 +263,7 @@ module Stripe
|
|
|
246
263
|
attr_accessor :shipping_details
|
|
247
264
|
|
|
248
265
|
def initialize(
|
|
266
|
+
canceled: nil,
|
|
249
267
|
description: nil,
|
|
250
268
|
expand: nil,
|
|
251
269
|
failed: nil,
|
|
@@ -256,6 +274,7 @@ module Stripe
|
|
|
256
274
|
payment_method_details: nil,
|
|
257
275
|
shipping_details: nil
|
|
258
276
|
)
|
|
277
|
+
@canceled = canceled
|
|
259
278
|
@description = description
|
|
260
279
|
@expand = expand
|
|
261
280
|
@failed = failed
|
|
@@ -15,6 +15,21 @@ module Stripe
|
|
|
15
15
|
end
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
class Canceled < ::Stripe::RequestParams
|
|
19
|
+
# When the reported payment was canceled. Measured in seconds since the Unix epoch.
|
|
20
|
+
attr_accessor :canceled_at
|
|
21
|
+
# Payment evaluations associated with this reported payment.
|
|
22
|
+
attr_accessor :payment_evaluations
|
|
23
|
+
# The reason the payment attempt was canceled.
|
|
24
|
+
attr_accessor :reason
|
|
25
|
+
|
|
26
|
+
def initialize(canceled_at: nil, payment_evaluations: nil, reason: nil)
|
|
27
|
+
@canceled_at = canceled_at
|
|
28
|
+
@payment_evaluations = payment_evaluations
|
|
29
|
+
@reason = reason
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
18
33
|
class CustomerDetails < ::Stripe::RequestParams
|
|
19
34
|
# The customer who made the payment.
|
|
20
35
|
attr_accessor :customer
|
|
@@ -278,6 +293,8 @@ module Stripe
|
|
|
278
293
|
end
|
|
279
294
|
# The amount you initially requested for this payment.
|
|
280
295
|
attr_accessor :amount_requested
|
|
296
|
+
# Information about the payment attempt cancelation.
|
|
297
|
+
attr_accessor :canceled
|
|
281
298
|
# Customer information for this payment.
|
|
282
299
|
attr_accessor :customer_details
|
|
283
300
|
# Indicates whether the customer was present in your checkout flow during this payment.
|
|
@@ -305,6 +322,7 @@ module Stripe
|
|
|
305
322
|
|
|
306
323
|
def initialize(
|
|
307
324
|
amount_requested: nil,
|
|
325
|
+
canceled: nil,
|
|
308
326
|
customer_details: nil,
|
|
309
327
|
customer_presence: nil,
|
|
310
328
|
description: nil,
|
|
@@ -319,6 +337,7 @@ module Stripe
|
|
|
319
337
|
shipping_details: nil
|
|
320
338
|
)
|
|
321
339
|
@amount_requested = amount_requested
|
|
340
|
+
@canceled = canceled
|
|
322
341
|
@customer_details = customer_details
|
|
323
342
|
@customer_presence = customer_presence
|
|
324
343
|
@description = description
|