stripe 20.1.0.pre.alpha.2 → 20.1.0.pre.alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +0 -4
- data/lib/stripe/params/account_create_params.rb +9 -9
- data/lib/stripe/params/account_update_params.rb +9 -9
- data/lib/stripe/params/checkout/session_create_params.rb +52 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +22 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +100 -0
- data/lib/stripe/params/payment_intent_create_params.rb +100 -0
- data/lib/stripe/params/payment_intent_update_params.rb +100 -0
- data/lib/stripe/params/payment_method_create_params.rb +22 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +22 -0
- data/lib/stripe/params/setup_intent_create_params.rb +22 -0
- data/lib/stripe/params/setup_intent_update_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +22 -0
- data/lib/stripe/params/v2/core/account_evaluation_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_list_params.rb +3 -1
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -13
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +5 -2
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +5 -2
- data/lib/stripe/params.rb +0 -8
- data/lib/stripe/resources/account.rb +6 -6
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/card.rb +1 -1
- data/lib/stripe/resources/charge.rb +52 -0
- data/lib/stripe/resources/confirmation_token.rb +52 -0
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice_item.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +52 -0
- data/lib/stripe/resources/payment_intent.rb +72 -0
- data/lib/stripe/resources/payment_method.rb +52 -0
- data/lib/stripe/resources/payment_record.rb +52 -0
- data/lib/stripe/resources/shared_payment/granted_token.rb +3 -3
- data/lib/stripe/resources/subscription.rb +2 -2
- data/lib/stripe/resources/v2/core/account_evaluation.rb +2 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +65 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +66 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -20
- data/lib/stripe/resources/v2/signals/account_activity.rb +3 -1
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +31 -1
- data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
- data/lib/stripe/resources.rb +0 -5
- data/lib/stripe/services/subscription_service.rb +1 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -28
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -1
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -11
- data/lib/stripe/stripe_event_notification_handler.rb +0 -4
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +1460 -429
- metadata +2 -6
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -178
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b64703617ce265046f5dbe18d6086a33e03314c04912c7d316cb4956d78ebbe
|
|
4
|
+
data.tar.gz: ebe9972ad850ba4309c6100b1221ebf6c182baa5d1eff88e544a862d099492f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef80c9aa1e1ee02e15ab8d97975c227f57b40f36051456602557c41411835415521b7d7d04eaa8a0c2c841e661cd32deb8eac4445d2bc7374717e9cb8b108e29
|
|
7
|
+
data.tar.gz: 13d9691e5e715b0986f5983f76f4ad04fdf7bab55473b118820b539ac9a8a20ff31569c891c0b812fd5375a411800690ef7c29487834173084caae4672356dc2
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
|
@@ -711,8 +711,6 @@ module Stripe
|
|
|
711
711
|
Events::V2PaymentsOffSessionPaymentFailedEvent,
|
|
712
712
|
Events::V2PaymentsOffSessionPaymentPausedEvent.lookup_type =>
|
|
713
713
|
Events::V2PaymentsOffSessionPaymentPausedEvent,
|
|
714
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent.lookup_type =>
|
|
715
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
|
|
716
714
|
Events::V2PaymentsOffSessionPaymentResumedEvent.lookup_type =>
|
|
717
715
|
Events::V2PaymentsOffSessionPaymentResumedEvent,
|
|
718
716
|
Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
|
|
@@ -1611,8 +1609,6 @@ module Stripe
|
|
|
1611
1609
|
Events::V2PaymentsOffSessionPaymentFailedEventNotification,
|
|
1612
1610
|
Events::V2PaymentsOffSessionPaymentPausedEventNotification.lookup_type =>
|
|
1613
1611
|
Events::V2PaymentsOffSessionPaymentPausedEventNotification,
|
|
1614
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification.lookup_type =>
|
|
1615
|
-
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
|
|
1616
1612
|
Events::V2PaymentsOffSessionPaymentResumedEventNotification.lookup_type =>
|
|
1617
1613
|
Events::V2PaymentsOffSessionPaymentResumedEventNotification,
|
|
1618
1614
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
|
|
@@ -2579,12 +2579,12 @@ module Stripe
|
|
|
2579
2579
|
end
|
|
2580
2580
|
end
|
|
2581
2581
|
|
|
2582
|
-
class
|
|
2583
|
-
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2584
|
-
attr_accessor :
|
|
2582
|
+
class WechatPayMobileWebPayments < ::Stripe::RequestParams
|
|
2583
|
+
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2584
|
+
attr_accessor :domains
|
|
2585
2585
|
|
|
2586
|
-
def initialize(
|
|
2587
|
-
@
|
|
2586
|
+
def initialize(domains: nil)
|
|
2587
|
+
@domains = domains
|
|
2588
2588
|
end
|
|
2589
2589
|
end
|
|
2590
2590
|
# Settings specific to Bacs Direct Debit.
|
|
@@ -2615,8 +2615,8 @@ module Stripe
|
|
|
2615
2615
|
attr_accessor :tax_forms
|
|
2616
2616
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
2617
2617
|
attr_accessor :treasury
|
|
2618
|
-
# Settings specific to
|
|
2619
|
-
attr_accessor :
|
|
2618
|
+
# Settings specific to WeChat Pay payments made through a mobile web browser.
|
|
2619
|
+
attr_accessor :wechat_pay_mobile_web_payments
|
|
2620
2620
|
|
|
2621
2621
|
def initialize(
|
|
2622
2622
|
bacs_debit_payments: nil,
|
|
@@ -2633,7 +2633,7 @@ module Stripe
|
|
|
2633
2633
|
smart_disputes: nil,
|
|
2634
2634
|
tax_forms: nil,
|
|
2635
2635
|
treasury: nil,
|
|
2636
|
-
|
|
2636
|
+
wechat_pay_mobile_web_payments: nil
|
|
2637
2637
|
)
|
|
2638
2638
|
@bacs_debit_payments = bacs_debit_payments
|
|
2639
2639
|
@bank_bca_onboarding = bank_bca_onboarding
|
|
@@ -2649,7 +2649,7 @@ module Stripe
|
|
|
2649
2649
|
@smart_disputes = smart_disputes
|
|
2650
2650
|
@tax_forms = tax_forms
|
|
2651
2651
|
@treasury = treasury
|
|
2652
|
-
@
|
|
2652
|
+
@wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
|
|
2653
2653
|
end
|
|
2654
2654
|
end
|
|
2655
2655
|
|
|
@@ -2532,12 +2532,12 @@ module Stripe
|
|
|
2532
2532
|
end
|
|
2533
2533
|
end
|
|
2534
2534
|
|
|
2535
|
-
class
|
|
2536
|
-
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2537
|
-
attr_accessor :
|
|
2535
|
+
class WechatPayMobileWebPayments < ::Stripe::RequestParams
|
|
2536
|
+
# The domains of the user's mobile web checkout pages for WeChat Pay payments.
|
|
2537
|
+
attr_accessor :domains
|
|
2538
2538
|
|
|
2539
|
-
def initialize(
|
|
2540
|
-
@
|
|
2539
|
+
def initialize(domains: nil)
|
|
2540
|
+
@domains = domains
|
|
2541
2541
|
end
|
|
2542
2542
|
end
|
|
2543
2543
|
# Settings specific to Bacs Direct Debit payments.
|
|
@@ -2568,8 +2568,8 @@ module Stripe
|
|
|
2568
2568
|
attr_accessor :tax_forms
|
|
2569
2569
|
# Settings specific to the account's Treasury FinancialAccounts.
|
|
2570
2570
|
attr_accessor :treasury
|
|
2571
|
-
# Settings specific to
|
|
2572
|
-
attr_accessor :
|
|
2571
|
+
# Settings specific to WeChat Pay payments made through a mobile web browser.
|
|
2572
|
+
attr_accessor :wechat_pay_mobile_web_payments
|
|
2573
2573
|
|
|
2574
2574
|
def initialize(
|
|
2575
2575
|
bacs_debit_payments: nil,
|
|
@@ -2586,7 +2586,7 @@ module Stripe
|
|
|
2586
2586
|
smart_disputes: nil,
|
|
2587
2587
|
tax_forms: nil,
|
|
2588
2588
|
treasury: nil,
|
|
2589
|
-
|
|
2589
|
+
wechat_pay_mobile_web_payments: nil
|
|
2590
2590
|
)
|
|
2591
2591
|
@bacs_debit_payments = bacs_debit_payments
|
|
2592
2592
|
@bank_bca_onboarding = bank_bca_onboarding
|
|
@@ -2602,7 +2602,7 @@ module Stripe
|
|
|
2602
2602
|
@smart_disputes = smart_disputes
|
|
2603
2603
|
@tax_forms = tax_forms
|
|
2604
2604
|
@treasury = treasury
|
|
2605
|
-
@
|
|
2605
|
+
@wechat_pay_mobile_web_payments = wechat_pay_mobile_web_payments
|
|
2606
2606
|
end
|
|
2607
2607
|
end
|
|
2608
2608
|
|
|
@@ -1485,6 +1485,53 @@ module Stripe
|
|
|
1485
1485
|
end
|
|
1486
1486
|
end
|
|
1487
1487
|
|
|
1488
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1489
|
+
# Maximum or fixed amount for future payments, specified in the Checkout Session's integration currency.
|
|
1490
|
+
attr_accessor :amount
|
|
1491
|
+
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
1492
|
+
attr_accessor :amount_type
|
|
1493
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1494
|
+
attr_accessor :currency
|
|
1495
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
1496
|
+
attr_accessor :description
|
|
1497
|
+
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
1498
|
+
attr_accessor :end_date
|
|
1499
|
+
# Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
1500
|
+
attr_accessor :interval
|
|
1501
|
+
# The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
1502
|
+
attr_accessor :interval_count
|
|
1503
|
+
# Unique identifier for the mandate or subscription.
|
|
1504
|
+
attr_accessor :reference
|
|
1505
|
+
# Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
1506
|
+
attr_accessor :start_date
|
|
1507
|
+
# Specifies the type of mandates supported. Possible values are `india`.
|
|
1508
|
+
attr_accessor :supported_types
|
|
1509
|
+
|
|
1510
|
+
def initialize(
|
|
1511
|
+
amount: nil,
|
|
1512
|
+
amount_type: nil,
|
|
1513
|
+
currency: nil,
|
|
1514
|
+
description: nil,
|
|
1515
|
+
end_date: nil,
|
|
1516
|
+
interval: nil,
|
|
1517
|
+
interval_count: nil,
|
|
1518
|
+
reference: nil,
|
|
1519
|
+
start_date: nil,
|
|
1520
|
+
supported_types: nil
|
|
1521
|
+
)
|
|
1522
|
+
@amount = amount
|
|
1523
|
+
@amount_type = amount_type
|
|
1524
|
+
@currency = currency
|
|
1525
|
+
@description = description
|
|
1526
|
+
@end_date = end_date
|
|
1527
|
+
@interval = interval
|
|
1528
|
+
@interval_count = interval_count
|
|
1529
|
+
@reference = reference
|
|
1530
|
+
@start_date = start_date
|
|
1531
|
+
@supported_types = supported_types
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1488
1535
|
class Restrictions < ::Stripe::RequestParams
|
|
1489
1536
|
# The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
|
|
1490
1537
|
attr_accessor :brands_blocked
|
|
@@ -1500,6 +1547,8 @@ module Stripe
|
|
|
1500
1547
|
attr_accessor :capture_method
|
|
1501
1548
|
# Installment options for card payments
|
|
1502
1549
|
attr_accessor :installments
|
|
1550
|
+
# Configuration options for setting up an eMandate for cards issued in India.
|
|
1551
|
+
attr_accessor :mandate_options
|
|
1503
1552
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1504
1553
|
attr_accessor :request_decremental_authorization
|
|
1505
1554
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
@@ -1530,6 +1579,7 @@ module Stripe
|
|
|
1530
1579
|
def initialize(
|
|
1531
1580
|
capture_method: nil,
|
|
1532
1581
|
installments: nil,
|
|
1582
|
+
mandate_options: nil,
|
|
1533
1583
|
request_decremental_authorization: nil,
|
|
1534
1584
|
request_extended_authorization: nil,
|
|
1535
1585
|
request_incremental_authorization: nil,
|
|
@@ -1543,6 +1593,7 @@ module Stripe
|
|
|
1543
1593
|
)
|
|
1544
1594
|
@capture_method = capture_method
|
|
1545
1595
|
@installments = installments
|
|
1596
|
+
@mandate_options = mandate_options
|
|
1546
1597
|
@request_decremental_authorization = request_decremental_authorization
|
|
1547
1598
|
@request_extended_authorization = request_extended_authorization
|
|
1548
1599
|
@request_incremental_authorization = request_incremental_authorization
|
|
@@ -3170,7 +3221,7 @@ module Stripe
|
|
|
3170
3221
|
attr_accessor :client_reference_id
|
|
3171
3222
|
# Configure fields for the Checkout Session to gather active consent from customers.
|
|
3172
3223
|
attr_accessor :consent_collection
|
|
3173
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `
|
|
3224
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `allowed_payment_method_types` is not set.
|
|
3174
3225
|
attr_accessor :currency
|
|
3175
3226
|
# 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`.
|
|
3176
3227
|
attr_accessor :custom_fields
|
|
@@ -115,6 +115,7 @@ module Stripe
|
|
|
115
115
|
end
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
+
class Carecredit < ::Stripe::RequestParams; end
|
|
118
119
|
class Cashapp < ::Stripe::RequestParams; end
|
|
119
120
|
class Crypto < ::Stripe::RequestParams; end
|
|
120
121
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
@@ -140,6 +141,8 @@ module Stripe
|
|
|
140
141
|
end
|
|
141
142
|
end
|
|
142
143
|
|
|
144
|
+
class Getflex < ::Stripe::RequestParams; end
|
|
145
|
+
|
|
143
146
|
class GiftCard < ::Stripe::RequestParams
|
|
144
147
|
# The gift card ID to redeem
|
|
145
148
|
attr_accessor :gift_card
|
|
@@ -289,6 +292,8 @@ module Stripe
|
|
|
289
292
|
end
|
|
290
293
|
end
|
|
291
294
|
|
|
295
|
+
class RakutenPay < ::Stripe::RequestParams; end
|
|
296
|
+
|
|
292
297
|
class Rechnung < ::Stripe::RequestParams
|
|
293
298
|
class Dob < ::Stripe::RequestParams
|
|
294
299
|
# The day of birth, between 1 and 31.
|
|
@@ -327,6 +332,7 @@ module Stripe
|
|
|
327
332
|
end
|
|
328
333
|
|
|
329
334
|
class Sequra < ::Stripe::RequestParams; end
|
|
335
|
+
class Sezzle < ::Stripe::RequestParams; end
|
|
330
336
|
class Shopeepay < ::Stripe::RequestParams; end
|
|
331
337
|
|
|
332
338
|
class Sofort < ::Stripe::RequestParams
|
|
@@ -438,6 +444,8 @@ module Stripe
|
|
|
438
444
|
attr_accessor :blik
|
|
439
445
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
|
440
446
|
attr_accessor :boleto
|
|
447
|
+
# If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method.
|
|
448
|
+
attr_accessor :carecredit
|
|
441
449
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
|
442
450
|
attr_accessor :cashapp
|
|
443
451
|
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
|
@@ -448,6 +456,8 @@ module Stripe
|
|
|
448
456
|
attr_accessor :eps
|
|
449
457
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
450
458
|
attr_accessor :fpx
|
|
459
|
+
# If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method.
|
|
460
|
+
attr_accessor :getflex
|
|
451
461
|
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
452
462
|
attr_accessor :gift_card
|
|
453
463
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
@@ -508,6 +518,8 @@ module Stripe
|
|
|
508
518
|
attr_accessor :qris
|
|
509
519
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
510
520
|
attr_accessor :radar_options
|
|
521
|
+
# If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method.
|
|
522
|
+
attr_accessor :rakuten_pay
|
|
511
523
|
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
512
524
|
attr_accessor :rechnung
|
|
513
525
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
@@ -522,6 +534,8 @@ module Stripe
|
|
|
522
534
|
attr_accessor :sepa_debit
|
|
523
535
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
524
536
|
attr_accessor :sequra
|
|
537
|
+
# If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method.
|
|
538
|
+
attr_accessor :sezzle
|
|
525
539
|
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
526
540
|
attr_accessor :shared_payment_granted_token
|
|
527
541
|
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
@@ -567,11 +581,13 @@ module Stripe
|
|
|
567
581
|
bizum: nil,
|
|
568
582
|
blik: nil,
|
|
569
583
|
boleto: nil,
|
|
584
|
+
carecredit: nil,
|
|
570
585
|
cashapp: nil,
|
|
571
586
|
crypto: nil,
|
|
572
587
|
customer_balance: nil,
|
|
573
588
|
eps: nil,
|
|
574
589
|
fpx: nil,
|
|
590
|
+
getflex: nil,
|
|
575
591
|
gift_card: nil,
|
|
576
592
|
giropay: nil,
|
|
577
593
|
gopay: nil,
|
|
@@ -602,6 +618,7 @@ module Stripe
|
|
|
602
618
|
promptpay: nil,
|
|
603
619
|
qris: nil,
|
|
604
620
|
radar_options: nil,
|
|
621
|
+
rakuten_pay: nil,
|
|
605
622
|
rechnung: nil,
|
|
606
623
|
revolut_pay: nil,
|
|
607
624
|
samsung_pay: nil,
|
|
@@ -609,6 +626,7 @@ module Stripe
|
|
|
609
626
|
scalapay: nil,
|
|
610
627
|
sepa_debit: nil,
|
|
611
628
|
sequra: nil,
|
|
629
|
+
sezzle: nil,
|
|
612
630
|
shared_payment_granted_token: nil,
|
|
613
631
|
shopeepay: nil,
|
|
614
632
|
sofort: nil,
|
|
@@ -639,11 +657,13 @@ module Stripe
|
|
|
639
657
|
@bizum = bizum
|
|
640
658
|
@blik = blik
|
|
641
659
|
@boleto = boleto
|
|
660
|
+
@carecredit = carecredit
|
|
642
661
|
@cashapp = cashapp
|
|
643
662
|
@crypto = crypto
|
|
644
663
|
@customer_balance = customer_balance
|
|
645
664
|
@eps = eps
|
|
646
665
|
@fpx = fpx
|
|
666
|
+
@getflex = getflex
|
|
647
667
|
@gift_card = gift_card
|
|
648
668
|
@giropay = giropay
|
|
649
669
|
@gopay = gopay
|
|
@@ -674,6 +694,7 @@ module Stripe
|
|
|
674
694
|
@promptpay = promptpay
|
|
675
695
|
@qris = qris
|
|
676
696
|
@radar_options = radar_options
|
|
697
|
+
@rakuten_pay = rakuten_pay
|
|
677
698
|
@rechnung = rechnung
|
|
678
699
|
@revolut_pay = revolut_pay
|
|
679
700
|
@samsung_pay = samsung_pay
|
|
@@ -681,6 +702,7 @@ module Stripe
|
|
|
681
702
|
@scalapay = scalapay
|
|
682
703
|
@sepa_debit = sepa_debit
|
|
683
704
|
@sequra = sequra
|
|
705
|
+
@sezzle = sezzle
|
|
684
706
|
@shared_payment_granted_token = shared_payment_granted_token
|
|
685
707
|
@shopeepay = shopeepay
|
|
686
708
|
@sofort = sofort
|
|
@@ -2414,6 +2414,7 @@ module Stripe
|
|
|
2414
2414
|
end
|
|
2415
2415
|
end
|
|
2416
2416
|
|
|
2417
|
+
class Carecredit < ::Stripe::RequestParams; end
|
|
2417
2418
|
class Cashapp < ::Stripe::RequestParams; end
|
|
2418
2419
|
class Crypto < ::Stripe::RequestParams; end
|
|
2419
2420
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
@@ -2439,6 +2440,8 @@ module Stripe
|
|
|
2439
2440
|
end
|
|
2440
2441
|
end
|
|
2441
2442
|
|
|
2443
|
+
class Getflex < ::Stripe::RequestParams; end
|
|
2444
|
+
|
|
2442
2445
|
class GiftCard < ::Stripe::RequestParams
|
|
2443
2446
|
# The gift card ID to redeem
|
|
2444
2447
|
attr_accessor :gift_card
|
|
@@ -2588,6 +2591,8 @@ module Stripe
|
|
|
2588
2591
|
end
|
|
2589
2592
|
end
|
|
2590
2593
|
|
|
2594
|
+
class RakutenPay < ::Stripe::RequestParams; end
|
|
2595
|
+
|
|
2591
2596
|
class Rechnung < ::Stripe::RequestParams
|
|
2592
2597
|
class Dob < ::Stripe::RequestParams
|
|
2593
2598
|
# The day of birth, between 1 and 31.
|
|
@@ -2626,6 +2631,7 @@ module Stripe
|
|
|
2626
2631
|
end
|
|
2627
2632
|
|
|
2628
2633
|
class Sequra < ::Stripe::RequestParams; end
|
|
2634
|
+
class Sezzle < ::Stripe::RequestParams; end
|
|
2629
2635
|
class Shopeepay < ::Stripe::RequestParams; end
|
|
2630
2636
|
|
|
2631
2637
|
class Sofort < ::Stripe::RequestParams
|
|
@@ -2737,6 +2743,8 @@ module Stripe
|
|
|
2737
2743
|
attr_accessor :blik
|
|
2738
2744
|
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
|
2739
2745
|
attr_accessor :boleto
|
|
2746
|
+
# If this is a `carecredit` PaymentMethod, this hash contains details about the CareCredit payment method.
|
|
2747
|
+
attr_accessor :carecredit
|
|
2740
2748
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
|
2741
2749
|
attr_accessor :cashapp
|
|
2742
2750
|
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
|
@@ -2747,6 +2755,8 @@ module Stripe
|
|
|
2747
2755
|
attr_accessor :eps
|
|
2748
2756
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
2749
2757
|
attr_accessor :fpx
|
|
2758
|
+
# If this is a `getflex` PaymentMethod, this hash contains details about the GetFlex payment method.
|
|
2759
|
+
attr_accessor :getflex
|
|
2750
2760
|
# If this is a `gift_card` PaymentMethod, this hash contains details about the gift card payment method.
|
|
2751
2761
|
attr_accessor :gift_card
|
|
2752
2762
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
@@ -2807,6 +2817,8 @@ module Stripe
|
|
|
2807
2817
|
attr_accessor :qris
|
|
2808
2818
|
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
2809
2819
|
attr_accessor :radar_options
|
|
2820
|
+
# If this is a `rakuten_pay` PaymentMethod, this hash contains details about the Rakuten Pay payment method.
|
|
2821
|
+
attr_accessor :rakuten_pay
|
|
2810
2822
|
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
2811
2823
|
attr_accessor :rechnung
|
|
2812
2824
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
@@ -2821,6 +2833,8 @@ module Stripe
|
|
|
2821
2833
|
attr_accessor :sepa_debit
|
|
2822
2834
|
# If this is a SeQura PaymentMethod, this hash contains details about the SeQura payment method.
|
|
2823
2835
|
attr_accessor :sequra
|
|
2836
|
+
# If this is a `sezzle` PaymentMethod, this hash contains details about the Sezzle payment method.
|
|
2837
|
+
attr_accessor :sezzle
|
|
2824
2838
|
# ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent.
|
|
2825
2839
|
attr_accessor :shared_payment_granted_token
|
|
2826
2840
|
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
@@ -2866,11 +2880,13 @@ module Stripe
|
|
|
2866
2880
|
bizum: nil,
|
|
2867
2881
|
blik: nil,
|
|
2868
2882
|
boleto: nil,
|
|
2883
|
+
carecredit: nil,
|
|
2869
2884
|
cashapp: nil,
|
|
2870
2885
|
crypto: nil,
|
|
2871
2886
|
customer_balance: nil,
|
|
2872
2887
|
eps: nil,
|
|
2873
2888
|
fpx: nil,
|
|
2889
|
+
getflex: nil,
|
|
2874
2890
|
gift_card: nil,
|
|
2875
2891
|
giropay: nil,
|
|
2876
2892
|
gopay: nil,
|
|
@@ -2901,6 +2917,7 @@ module Stripe
|
|
|
2901
2917
|
promptpay: nil,
|
|
2902
2918
|
qris: nil,
|
|
2903
2919
|
radar_options: nil,
|
|
2920
|
+
rakuten_pay: nil,
|
|
2904
2921
|
rechnung: nil,
|
|
2905
2922
|
revolut_pay: nil,
|
|
2906
2923
|
samsung_pay: nil,
|
|
@@ -2908,6 +2925,7 @@ module Stripe
|
|
|
2908
2925
|
scalapay: nil,
|
|
2909
2926
|
sepa_debit: nil,
|
|
2910
2927
|
sequra: nil,
|
|
2928
|
+
sezzle: nil,
|
|
2911
2929
|
shared_payment_granted_token: nil,
|
|
2912
2930
|
shopeepay: nil,
|
|
2913
2931
|
sofort: nil,
|
|
@@ -2938,11 +2956,13 @@ module Stripe
|
|
|
2938
2956
|
@bizum = bizum
|
|
2939
2957
|
@blik = blik
|
|
2940
2958
|
@boleto = boleto
|
|
2959
|
+
@carecredit = carecredit
|
|
2941
2960
|
@cashapp = cashapp
|
|
2942
2961
|
@crypto = crypto
|
|
2943
2962
|
@customer_balance = customer_balance
|
|
2944
2963
|
@eps = eps
|
|
2945
2964
|
@fpx = fpx
|
|
2965
|
+
@getflex = getflex
|
|
2946
2966
|
@gift_card = gift_card
|
|
2947
2967
|
@giropay = giropay
|
|
2948
2968
|
@gopay = gopay
|
|
@@ -2973,6 +2993,7 @@ module Stripe
|
|
|
2973
2993
|
@promptpay = promptpay
|
|
2974
2994
|
@qris = qris
|
|
2975
2995
|
@radar_options = radar_options
|
|
2996
|
+
@rakuten_pay = rakuten_pay
|
|
2976
2997
|
@rechnung = rechnung
|
|
2977
2998
|
@revolut_pay = revolut_pay
|
|
2978
2999
|
@samsung_pay = samsung_pay
|
|
@@ -2980,6 +3001,7 @@ module Stripe
|
|
|
2980
3001
|
@scalapay = scalapay
|
|
2981
3002
|
@sepa_debit = sepa_debit
|
|
2982
3003
|
@sequra = sequra
|
|
3004
|
+
@sezzle = sezzle
|
|
2983
3005
|
@shared_payment_granted_token = shared_payment_granted_token
|
|
2984
3006
|
@shopeepay = shopeepay
|
|
2985
3007
|
@sofort = sofort
|
|
@@ -3885,6 +3907,28 @@ module Stripe
|
|
|
3885
3907
|
end
|
|
3886
3908
|
end
|
|
3887
3909
|
|
|
3910
|
+
class Carecredit < ::Stripe::RequestParams
|
|
3911
|
+
# Controls when the funds are captured from the customer's account.
|
|
3912
|
+
#
|
|
3913
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
3914
|
+
#
|
|
3915
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
3916
|
+
attr_accessor :capture_method
|
|
3917
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3918
|
+
#
|
|
3919
|
+
# 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.
|
|
3920
|
+
#
|
|
3921
|
+
# 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.
|
|
3922
|
+
#
|
|
3923
|
+
# 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).
|
|
3924
|
+
attr_accessor :setup_future_usage
|
|
3925
|
+
|
|
3926
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
3927
|
+
@capture_method = capture_method
|
|
3928
|
+
@setup_future_usage = setup_future_usage
|
|
3929
|
+
end
|
|
3930
|
+
end
|
|
3931
|
+
|
|
3888
3932
|
class Cashapp < ::Stripe::RequestParams
|
|
3889
3933
|
# Controls when the funds are captured from the customer's account.
|
|
3890
3934
|
#
|
|
@@ -4057,6 +4101,28 @@ module Stripe
|
|
|
4057
4101
|
end
|
|
4058
4102
|
end
|
|
4059
4103
|
|
|
4104
|
+
class Getflex < ::Stripe::RequestParams
|
|
4105
|
+
# Controls when the funds are captured from the customer's account.
|
|
4106
|
+
#
|
|
4107
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
4108
|
+
#
|
|
4109
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
4110
|
+
attr_accessor :capture_method
|
|
4111
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4112
|
+
#
|
|
4113
|
+
# 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.
|
|
4114
|
+
#
|
|
4115
|
+
# 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.
|
|
4116
|
+
#
|
|
4117
|
+
# 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).
|
|
4118
|
+
attr_accessor :setup_future_usage
|
|
4119
|
+
|
|
4120
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
4121
|
+
@capture_method = capture_method
|
|
4122
|
+
@setup_future_usage = setup_future_usage
|
|
4123
|
+
end
|
|
4124
|
+
end
|
|
4125
|
+
|
|
4060
4126
|
class GiftCard < ::Stripe::RequestParams
|
|
4061
4127
|
# Set to `yes` to ignore the application fee on the PaymentIntent when redeeming this gift card.
|
|
4062
4128
|
attr_accessor :ignore_application_fee
|
|
@@ -5901,6 +5967,28 @@ module Stripe
|
|
|
5901
5967
|
end
|
|
5902
5968
|
end
|
|
5903
5969
|
|
|
5970
|
+
class Sezzle < ::Stripe::RequestParams
|
|
5971
|
+
# Controls when the funds are captured from the customer's account.
|
|
5972
|
+
#
|
|
5973
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
5974
|
+
#
|
|
5975
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
5976
|
+
attr_accessor :capture_method
|
|
5977
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5978
|
+
#
|
|
5979
|
+
# 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.
|
|
5980
|
+
#
|
|
5981
|
+
# 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.
|
|
5982
|
+
#
|
|
5983
|
+
# 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).
|
|
5984
|
+
attr_accessor :setup_future_usage
|
|
5985
|
+
|
|
5986
|
+
def initialize(capture_method: nil, setup_future_usage: nil)
|
|
5987
|
+
@capture_method = capture_method
|
|
5988
|
+
@setup_future_usage = setup_future_usage
|
|
5989
|
+
end
|
|
5990
|
+
end
|
|
5991
|
+
|
|
5904
5992
|
class Shopeepay < ::Stripe::RequestParams
|
|
5905
5993
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
5906
5994
|
#
|
|
@@ -6284,6 +6372,8 @@ module Stripe
|
|
|
6284
6372
|
attr_accessor :card
|
|
6285
6373
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
6286
6374
|
attr_accessor :card_present
|
|
6375
|
+
# If this is a `carecredit` PaymentMethod, this sub-hash contains details about the CareCredit payment method options.
|
|
6376
|
+
attr_accessor :carecredit
|
|
6287
6377
|
# If this is a `cashapp` PaymentMethod, this sub-hash contains details about the Cash App Pay payment method options.
|
|
6288
6378
|
attr_accessor :cashapp
|
|
6289
6379
|
# If this is a `crypto` PaymentMethod, this sub-hash contains details about the Crypto payment method options.
|
|
@@ -6294,6 +6384,8 @@ module Stripe
|
|
|
6294
6384
|
attr_accessor :eps
|
|
6295
6385
|
# If this is a `fpx` PaymentMethod, this sub-hash contains details about the FPX payment method options.
|
|
6296
6386
|
attr_accessor :fpx
|
|
6387
|
+
# If this is a `getflex` PaymentMethod, this sub-hash contains details about the GetFlex payment method options.
|
|
6388
|
+
attr_accessor :getflex
|
|
6297
6389
|
# If this is a `gift_card` PaymentMethod, this sub-hash contains details about the gift card payment method options.
|
|
6298
6390
|
attr_accessor :gift_card
|
|
6299
6391
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
@@ -6364,6 +6456,8 @@ module Stripe
|
|
|
6364
6456
|
attr_accessor :sepa_debit
|
|
6365
6457
|
# If this is a `sequra` PaymentMethod, this sub-hash contains details about the SeQura payment method options.
|
|
6366
6458
|
attr_accessor :sequra
|
|
6459
|
+
# If this is a `sezzle` PaymentMethod, this sub-hash contains details about the Sezzle payment method options.
|
|
6460
|
+
attr_accessor :sezzle
|
|
6367
6461
|
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
6368
6462
|
attr_accessor :shopeepay
|
|
6369
6463
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
@@ -6403,11 +6497,13 @@ module Stripe
|
|
|
6403
6497
|
boleto: nil,
|
|
6404
6498
|
card: nil,
|
|
6405
6499
|
card_present: nil,
|
|
6500
|
+
carecredit: nil,
|
|
6406
6501
|
cashapp: nil,
|
|
6407
6502
|
crypto: nil,
|
|
6408
6503
|
customer_balance: nil,
|
|
6409
6504
|
eps: nil,
|
|
6410
6505
|
fpx: nil,
|
|
6506
|
+
getflex: nil,
|
|
6411
6507
|
gift_card: nil,
|
|
6412
6508
|
giropay: nil,
|
|
6413
6509
|
gopay: nil,
|
|
@@ -6443,6 +6539,7 @@ module Stripe
|
|
|
6443
6539
|
scalapay: nil,
|
|
6444
6540
|
sepa_debit: nil,
|
|
6445
6541
|
sequra: nil,
|
|
6542
|
+
sezzle: nil,
|
|
6446
6543
|
shopeepay: nil,
|
|
6447
6544
|
sofort: nil,
|
|
6448
6545
|
stripe_balance: nil,
|
|
@@ -6470,11 +6567,13 @@ module Stripe
|
|
|
6470
6567
|
@boleto = boleto
|
|
6471
6568
|
@card = card
|
|
6472
6569
|
@card_present = card_present
|
|
6570
|
+
@carecredit = carecredit
|
|
6473
6571
|
@cashapp = cashapp
|
|
6474
6572
|
@crypto = crypto
|
|
6475
6573
|
@customer_balance = customer_balance
|
|
6476
6574
|
@eps = eps
|
|
6477
6575
|
@fpx = fpx
|
|
6576
|
+
@getflex = getflex
|
|
6478
6577
|
@gift_card = gift_card
|
|
6479
6578
|
@giropay = giropay
|
|
6480
6579
|
@gopay = gopay
|
|
@@ -6510,6 +6609,7 @@ module Stripe
|
|
|
6510
6609
|
@scalapay = scalapay
|
|
6511
6610
|
@sepa_debit = sepa_debit
|
|
6512
6611
|
@sequra = sequra
|
|
6612
|
+
@sezzle = sezzle
|
|
6513
6613
|
@shopeepay = shopeepay
|
|
6514
6614
|
@sofort = sofort
|
|
6515
6615
|
@stripe_balance = stripe_balance
|