stripe 21.2.0.pre.alpha.1 → 21.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/api_operations/singleton_save.rb +4 -4
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +22 -0
- data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
- data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +3 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
- data/lib/stripe/params/checkout/session_create_params.rb +208 -4
- data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
- data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
- data/lib/stripe/params/customer_create_params.rb +7 -1
- data/lib/stripe/params/customer_update_params.rb +7 -1
- data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
- data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
- data/lib/stripe/params/payment_intent_create_params.rb +96 -4
- data/lib/stripe/params/payment_intent_update_params.rb +96 -4
- data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
- data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
- data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
- data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
- data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
- data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
- data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
- data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
- data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
- data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
- data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
- data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
- data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
- data/lib/stripe/params.rb +27 -5
- data/lib/stripe/resources/billing_portal/session.rb +16 -0
- data/lib/stripe/resources/cash_balance.rb +1 -1
- data/lib/stripe/resources/charge.rb +32 -0
- data/lib/stripe/resources/checkout/session.rb +65 -2
- data/lib/stripe/resources/confirmation_token.rb +54 -2
- data/lib/stripe/resources/customer.rb +4 -0
- data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
- data/lib/stripe/resources/dispute.rb +4 -0
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +0 -30
- data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
- data/lib/stripe/resources/issuing/authorization.rb +18 -0
- data/lib/stripe/resources/issuing/card.rb +28 -0
- data/lib/stripe/resources/issuing/transaction.rb +18 -0
- data/lib/stripe/resources/mandate.rb +65 -0
- data/lib/stripe/resources/payment_attempt_record.rb +46 -0
- data/lib/stripe/resources/payment_intent.rb +113 -103
- data/lib/stripe/resources/payment_link.rb +2 -0
- data/lib/stripe/resources/payment_method.rb +53 -1
- data/lib/stripe/resources/payment_method_configuration.rb +102 -0
- data/lib/stripe/resources/payment_record.rb +46 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
- data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/risk/form.rb +44 -1
- data/lib/stripe/resources/setup_attempt.rb +91 -0
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/source.rb +2 -2
- data/lib/stripe/resources/subscription.rb +0 -20
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/form.rb +6 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +1 -1
- data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
- data/lib/stripe/resources/terminal/reader.rb +17 -1
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
- data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
- data/lib/stripe/resources/v2/billing/contract.rb +285 -6
- data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
- data/lib/stripe/resources/v2/core/account.rb +2709 -322
- data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
- data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
- data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
- data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
- data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
- data/lib/stripe/resources.rb +30 -0
- data/lib/stripe/services/checkout/session_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +0 -11
- data/lib/stripe/services/risk/form_service.rb +44 -1
- data/lib/stripe/services/subscription_service.rb +0 -11
- data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
- data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
- data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
- data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
- data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
- data/lib/stripe/services/v2/money_management_service.rb +3 -1
- data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
- data/lib/stripe/services/v2/risk_service.rb +2 -1
- data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_event_notification_handler.rb +24 -0
- data/lib/stripe/stripe_object.rb +14 -4
- data/lib/stripe/util.rb +21 -2
- data/lib/stripe/v2_type_coercion.rb +6 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -0
- data/rbi/stripe.rbi +8211 -782
- metadata +26 -4
- data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
|
@@ -765,6 +765,33 @@ module Stripe
|
|
|
765
765
|
end
|
|
766
766
|
|
|
767
767
|
class CardPresent < ::Stripe::StripeObject
|
|
768
|
+
class Benefits < ::Stripe::StripeObject
|
|
769
|
+
class FrMealVoucher < ::Stripe::StripeObject
|
|
770
|
+
# The 14-digit SIRET of the meal voucher acceptor used for this charge.
|
|
771
|
+
attr_reader :siret
|
|
772
|
+
|
|
773
|
+
def self.inner_class_types
|
|
774
|
+
@inner_class_types = {}
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
def self.field_remappings
|
|
778
|
+
@field_remappings = {}
|
|
779
|
+
end
|
|
780
|
+
end
|
|
781
|
+
# Attribute for field fr_meal_voucher
|
|
782
|
+
attr_reader :fr_meal_voucher
|
|
783
|
+
# Issuer of the benefit card utilized on this payment
|
|
784
|
+
attr_reader :issuer
|
|
785
|
+
|
|
786
|
+
def self.inner_class_types
|
|
787
|
+
@inner_class_types = { fr_meal_voucher: FrMealVoucher }
|
|
788
|
+
end
|
|
789
|
+
|
|
790
|
+
def self.field_remappings
|
|
791
|
+
@field_remappings = {}
|
|
792
|
+
end
|
|
793
|
+
end
|
|
794
|
+
|
|
768
795
|
class Fleet < ::Stripe::StripeObject
|
|
769
796
|
class TransactionDatum < ::Stripe::StripeObject
|
|
770
797
|
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
@@ -894,6 +921,8 @@ module Stripe
|
|
|
894
921
|
end
|
|
895
922
|
# The authorized amount
|
|
896
923
|
attr_reader :amount_authorized
|
|
924
|
+
# Attribute for field benefits
|
|
925
|
+
attr_reader :benefits
|
|
897
926
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
898
927
|
attr_reader :brand
|
|
899
928
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
@@ -961,6 +990,7 @@ module Stripe
|
|
|
961
990
|
|
|
962
991
|
def self.inner_class_types
|
|
963
992
|
@inner_class_types = {
|
|
993
|
+
benefits: Benefits,
|
|
964
994
|
fleet: Fleet,
|
|
965
995
|
multicapture: Multicapture,
|
|
966
996
|
offline: Offline,
|
|
@@ -2512,6 +2542,19 @@ module Stripe
|
|
|
2512
2542
|
end
|
|
2513
2543
|
end
|
|
2514
2544
|
|
|
2545
|
+
class Stripe < ::Stripe::StripeObject
|
|
2546
|
+
# Stripe balance transactions associated with this attempt, in no guaranteed order. References can appear at submission or after success. On a PaymentRecord, these references follow the latest attempt.
|
|
2547
|
+
attr_reader :derived_balance_transactions
|
|
2548
|
+
|
|
2549
|
+
def self.inner_class_types
|
|
2550
|
+
@inner_class_types = {}
|
|
2551
|
+
end
|
|
2552
|
+
|
|
2553
|
+
def self.field_remappings
|
|
2554
|
+
@field_remappings = {}
|
|
2555
|
+
end
|
|
2556
|
+
end
|
|
2557
|
+
|
|
2515
2558
|
class Svs < ::Stripe::StripeObject
|
|
2516
2559
|
# An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
|
|
2517
2560
|
attr_reader :payment_reference
|
|
@@ -2532,6 +2575,8 @@ module Stripe
|
|
|
2532
2575
|
attr_reader :fiserv_valuelink
|
|
2533
2576
|
# Represents the Givex gift card processor.
|
|
2534
2577
|
attr_reader :givex
|
|
2578
|
+
# Represents the Stripe processor. This resource consists of details specific to Stripe.
|
|
2579
|
+
attr_reader :stripe
|
|
2535
2580
|
# Represents the SVS gift card processor.
|
|
2536
2581
|
attr_reader :svs
|
|
2537
2582
|
# The processor used for this payment attempt.
|
|
@@ -2542,6 +2587,7 @@ module Stripe
|
|
|
2542
2587
|
custom: Custom,
|
|
2543
2588
|
fiserv_valuelink: FiservValuelink,
|
|
2544
2589
|
givex: Givex,
|
|
2590
|
+
stripe: Stripe,
|
|
2545
2591
|
svs: Svs,
|
|
2546
2592
|
}
|
|
2547
2593
|
end
|
|
@@ -563,70 +563,6 @@ module Stripe
|
|
|
563
563
|
end
|
|
564
564
|
# Address of the deposit address.
|
|
565
565
|
attr_reader :address
|
|
566
|
-
# The wallet address that should receive refunds for deposits on this network.
|
|
567
|
-
attr_reader :refund_address
|
|
568
|
-
# The token currencies supported on this network.
|
|
569
|
-
attr_reader :supported_tokens
|
|
570
|
-
|
|
571
|
-
def self.inner_class_types
|
|
572
|
-
@inner_class_types = { supported_tokens: SupportedToken }
|
|
573
|
-
end
|
|
574
|
-
|
|
575
|
-
def self.field_remappings
|
|
576
|
-
@field_remappings = {}
|
|
577
|
-
end
|
|
578
|
-
end
|
|
579
|
-
|
|
580
|
-
class Ethereum < ::Stripe::StripeObject
|
|
581
|
-
class SupportedToken < ::Stripe::StripeObject
|
|
582
|
-
# The on-chain contract address for the supported token currency on this specific network.
|
|
583
|
-
attr_reader :token_contract_address
|
|
584
|
-
# The supported token currency.
|
|
585
|
-
attr_reader :token_currency
|
|
586
|
-
|
|
587
|
-
def self.inner_class_types
|
|
588
|
-
@inner_class_types = {}
|
|
589
|
-
end
|
|
590
|
-
|
|
591
|
-
def self.field_remappings
|
|
592
|
-
@field_remappings = {}
|
|
593
|
-
end
|
|
594
|
-
end
|
|
595
|
-
# Address of the deposit address.
|
|
596
|
-
attr_reader :address
|
|
597
|
-
# The wallet address that should receive refunds for deposits on this network.
|
|
598
|
-
attr_reader :refund_address
|
|
599
|
-
# The token currencies supported on this network.
|
|
600
|
-
attr_reader :supported_tokens
|
|
601
|
-
|
|
602
|
-
def self.inner_class_types
|
|
603
|
-
@inner_class_types = { supported_tokens: SupportedToken }
|
|
604
|
-
end
|
|
605
|
-
|
|
606
|
-
def self.field_remappings
|
|
607
|
-
@field_remappings = {}
|
|
608
|
-
end
|
|
609
|
-
end
|
|
610
|
-
|
|
611
|
-
class Polygon < ::Stripe::StripeObject
|
|
612
|
-
class SupportedToken < ::Stripe::StripeObject
|
|
613
|
-
# The on-chain contract address for the supported token currency on this specific network.
|
|
614
|
-
attr_reader :token_contract_address
|
|
615
|
-
# The supported token currency.
|
|
616
|
-
attr_reader :token_currency
|
|
617
|
-
|
|
618
|
-
def self.inner_class_types
|
|
619
|
-
@inner_class_types = {}
|
|
620
|
-
end
|
|
621
|
-
|
|
622
|
-
def self.field_remappings
|
|
623
|
-
@field_remappings = {}
|
|
624
|
-
end
|
|
625
|
-
end
|
|
626
|
-
# Address of the deposit address.
|
|
627
|
-
attr_reader :address
|
|
628
|
-
# The wallet address that should receive refunds for deposits on this network.
|
|
629
|
-
attr_reader :refund_address
|
|
630
566
|
# The token currencies supported on this network.
|
|
631
567
|
attr_reader :supported_tokens
|
|
632
568
|
|
|
@@ -656,8 +592,6 @@ module Stripe
|
|
|
656
592
|
end
|
|
657
593
|
# Address of the deposit address.
|
|
658
594
|
attr_reader :address
|
|
659
|
-
# The wallet address that should receive refunds for deposits on this network.
|
|
660
|
-
attr_reader :refund_address
|
|
661
595
|
# The token currencies supported on this network.
|
|
662
596
|
attr_reader :supported_tokens
|
|
663
597
|
|
|
@@ -687,8 +621,6 @@ module Stripe
|
|
|
687
621
|
end
|
|
688
622
|
# Address of the deposit address.
|
|
689
623
|
attr_reader :address
|
|
690
|
-
# The wallet address that should receive refunds for deposits on this network.
|
|
691
|
-
attr_reader :refund_address
|
|
692
624
|
# The token currencies supported on this network.
|
|
693
625
|
attr_reader :supported_tokens
|
|
694
626
|
|
|
@@ -702,23 +634,13 @@ module Stripe
|
|
|
702
634
|
end
|
|
703
635
|
# Attribute for field base
|
|
704
636
|
attr_reader :base
|
|
705
|
-
# Attribute for field ethereum
|
|
706
|
-
attr_reader :ethereum
|
|
707
|
-
# Attribute for field polygon
|
|
708
|
-
attr_reader :polygon
|
|
709
637
|
# Attribute for field solana
|
|
710
638
|
attr_reader :solana
|
|
711
639
|
# Attribute for field tempo
|
|
712
640
|
attr_reader :tempo
|
|
713
641
|
|
|
714
642
|
def self.inner_class_types
|
|
715
|
-
@inner_class_types = {
|
|
716
|
-
base: Base,
|
|
717
|
-
ethereum: Ethereum,
|
|
718
|
-
polygon: Polygon,
|
|
719
|
-
solana: Solana,
|
|
720
|
-
tempo: Tempo,
|
|
721
|
-
}
|
|
643
|
+
@inner_class_types = { base: Base, solana: Solana, tempo: Tempo }
|
|
722
644
|
end
|
|
723
645
|
|
|
724
646
|
def self.field_remappings
|
|
@@ -3241,6 +3163,25 @@ module Stripe
|
|
|
3241
3163
|
end
|
|
3242
3164
|
end
|
|
3243
3165
|
|
|
3166
|
+
class AeonPay < ::Stripe::StripeObject
|
|
3167
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3168
|
+
#
|
|
3169
|
+
# 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.
|
|
3170
|
+
#
|
|
3171
|
+
# 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.
|
|
3172
|
+
#
|
|
3173
|
+
# 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).
|
|
3174
|
+
attr_reader :setup_future_usage
|
|
3175
|
+
|
|
3176
|
+
def self.inner_class_types
|
|
3177
|
+
@inner_class_types = {}
|
|
3178
|
+
end
|
|
3179
|
+
|
|
3180
|
+
def self.field_remappings
|
|
3181
|
+
@field_remappings = {}
|
|
3182
|
+
end
|
|
3183
|
+
end
|
|
3184
|
+
|
|
3244
3185
|
class Affirm < ::Stripe::StripeObject
|
|
3245
3186
|
# Controls when the funds will be captured from the customer's account.
|
|
3246
3187
|
attr_reader :capture_method
|
|
@@ -3362,6 +3303,25 @@ module Stripe
|
|
|
3362
3303
|
end
|
|
3363
3304
|
end
|
|
3364
3305
|
|
|
3306
|
+
class AuPay < ::Stripe::StripeObject
|
|
3307
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3308
|
+
#
|
|
3309
|
+
# 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.
|
|
3310
|
+
#
|
|
3311
|
+
# 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.
|
|
3312
|
+
#
|
|
3313
|
+
# 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).
|
|
3314
|
+
attr_reader :setup_future_usage
|
|
3315
|
+
|
|
3316
|
+
def self.inner_class_types
|
|
3317
|
+
@inner_class_types = {}
|
|
3318
|
+
end
|
|
3319
|
+
|
|
3320
|
+
def self.field_remappings
|
|
3321
|
+
@field_remappings = {}
|
|
3322
|
+
end
|
|
3323
|
+
end
|
|
3324
|
+
|
|
3365
3325
|
class BacsDebit < ::Stripe::StripeObject
|
|
3366
3326
|
class FinancialConnections < ::Stripe::StripeObject
|
|
3367
3327
|
# Attribute for field return_url
|
|
@@ -3751,7 +3711,7 @@ module Stripe
|
|
|
3751
3711
|
attr_reader :installments
|
|
3752
3712
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
3753
3713
|
attr_reader :mandate_options
|
|
3754
|
-
#
|
|
3714
|
+
# Requested network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can only be set at confirm-time. Adhered on a best-effort basis and doesn’t guarantee that the payment will process on the requested network.
|
|
3755
3715
|
attr_reader :network
|
|
3756
3716
|
# Attribute for field payment_details
|
|
3757
3717
|
attr_reader :payment_details
|
|
@@ -4027,8 +3987,6 @@ module Stripe
|
|
|
4027
3987
|
class DepositOptions < ::Stripe::StripeObject
|
|
4028
3988
|
# The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
|
|
4029
3989
|
attr_reader :networks
|
|
4030
|
-
# If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
|
|
4031
|
-
attr_reader :static_address
|
|
4032
3990
|
|
|
4033
3991
|
def self.inner_class_types
|
|
4034
3992
|
@inner_class_types = {}
|
|
@@ -4136,6 +4094,25 @@ module Stripe
|
|
|
4136
4094
|
end
|
|
4137
4095
|
end
|
|
4138
4096
|
|
|
4097
|
+
class Dbarai < ::Stripe::StripeObject
|
|
4098
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4099
|
+
#
|
|
4100
|
+
# 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.
|
|
4101
|
+
#
|
|
4102
|
+
# 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.
|
|
4103
|
+
#
|
|
4104
|
+
# 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).
|
|
4105
|
+
attr_reader :setup_future_usage
|
|
4106
|
+
|
|
4107
|
+
def self.inner_class_types
|
|
4108
|
+
@inner_class_types = {}
|
|
4109
|
+
end
|
|
4110
|
+
|
|
4111
|
+
def self.field_remappings
|
|
4112
|
+
@field_remappings = {}
|
|
4113
|
+
end
|
|
4114
|
+
end
|
|
4115
|
+
|
|
4139
4116
|
class Eps < ::Stripe::StripeObject
|
|
4140
4117
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4141
4118
|
#
|
|
@@ -4455,6 +4432,25 @@ module Stripe
|
|
|
4455
4432
|
end
|
|
4456
4433
|
end
|
|
4457
4434
|
|
|
4435
|
+
class Merpay < ::Stripe::StripeObject
|
|
4436
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4437
|
+
#
|
|
4438
|
+
# 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.
|
|
4439
|
+
#
|
|
4440
|
+
# 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.
|
|
4441
|
+
#
|
|
4442
|
+
# 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).
|
|
4443
|
+
attr_reader :setup_future_usage
|
|
4444
|
+
|
|
4445
|
+
def self.inner_class_types
|
|
4446
|
+
@inner_class_types = {}
|
|
4447
|
+
end
|
|
4448
|
+
|
|
4449
|
+
def self.field_remappings
|
|
4450
|
+
@field_remappings = {}
|
|
4451
|
+
end
|
|
4452
|
+
end
|
|
4453
|
+
|
|
4458
4454
|
class Mobilepay < ::Stripe::StripeObject
|
|
4459
4455
|
# Controls when the funds will be captured from the customer's account.
|
|
4460
4456
|
attr_reader :capture_method
|
|
@@ -4853,6 +4849,25 @@ module Stripe
|
|
|
4853
4849
|
end
|
|
4854
4850
|
end
|
|
4855
4851
|
|
|
4852
|
+
class RakutenPay < ::Stripe::StripeObject
|
|
4853
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
4854
|
+
#
|
|
4855
|
+
# 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.
|
|
4856
|
+
#
|
|
4857
|
+
# 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.
|
|
4858
|
+
#
|
|
4859
|
+
# 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).
|
|
4860
|
+
attr_reader :setup_future_usage
|
|
4861
|
+
|
|
4862
|
+
def self.inner_class_types
|
|
4863
|
+
@inner_class_types = {}
|
|
4864
|
+
end
|
|
4865
|
+
|
|
4866
|
+
def self.field_remappings
|
|
4867
|
+
@field_remappings = {}
|
|
4868
|
+
end
|
|
4869
|
+
end
|
|
4870
|
+
|
|
4856
4871
|
class Rechnung < ::Stripe::StripeObject
|
|
4857
4872
|
def self.inner_class_types
|
|
4858
4873
|
@inner_class_types = {}
|
|
@@ -5386,6 +5401,8 @@ module Stripe
|
|
|
5386
5401
|
end
|
|
5387
5402
|
# Attribute for field acss_debit
|
|
5388
5403
|
attr_reader :acss_debit
|
|
5404
|
+
# Attribute for field aeon_pay
|
|
5405
|
+
attr_reader :aeon_pay
|
|
5389
5406
|
# Attribute for field affirm
|
|
5390
5407
|
attr_reader :affirm
|
|
5391
5408
|
# Attribute for field afterpay_clearpay
|
|
@@ -5398,6 +5415,8 @@ module Stripe
|
|
|
5398
5415
|
attr_reader :amazon_pay
|
|
5399
5416
|
# Attribute for field au_becs_debit
|
|
5400
5417
|
attr_reader :au_becs_debit
|
|
5418
|
+
# Attribute for field au_pay
|
|
5419
|
+
attr_reader :au_pay
|
|
5401
5420
|
# Attribute for field bacs_debit
|
|
5402
5421
|
attr_reader :bacs_debit
|
|
5403
5422
|
# Attribute for field bancontact
|
|
@@ -5422,6 +5441,8 @@ module Stripe
|
|
|
5422
5441
|
attr_reader :crypto
|
|
5423
5442
|
# Attribute for field customer_balance
|
|
5424
5443
|
attr_reader :customer_balance
|
|
5444
|
+
# Attribute for field dbarai
|
|
5445
|
+
attr_reader :dbarai
|
|
5425
5446
|
# Attribute for field eps
|
|
5426
5447
|
attr_reader :eps
|
|
5427
5448
|
# Attribute for field fpx
|
|
@@ -5454,6 +5475,8 @@ module Stripe
|
|
|
5454
5475
|
attr_reader :link
|
|
5455
5476
|
# Attribute for field mb_way
|
|
5456
5477
|
attr_reader :mb_way
|
|
5478
|
+
# Attribute for field merpay
|
|
5479
|
+
attr_reader :merpay
|
|
5457
5480
|
# Attribute for field mobilepay
|
|
5458
5481
|
attr_reader :mobilepay
|
|
5459
5482
|
# Attribute for field multibanco
|
|
@@ -5484,6 +5507,8 @@ module Stripe
|
|
|
5484
5507
|
attr_reader :promptpay
|
|
5485
5508
|
# Attribute for field qris
|
|
5486
5509
|
attr_reader :qris
|
|
5510
|
+
# Attribute for field rakuten_pay
|
|
5511
|
+
attr_reader :rakuten_pay
|
|
5487
5512
|
# Attribute for field rechnung
|
|
5488
5513
|
attr_reader :rechnung
|
|
5489
5514
|
# Attribute for field revolut_pay
|
|
@@ -5528,12 +5553,14 @@ module Stripe
|
|
|
5528
5553
|
def self.inner_class_types
|
|
5529
5554
|
@inner_class_types = {
|
|
5530
5555
|
acss_debit: AcssDebit,
|
|
5556
|
+
aeon_pay: AeonPay,
|
|
5531
5557
|
affirm: Affirm,
|
|
5532
5558
|
afterpay_clearpay: AfterpayClearpay,
|
|
5533
5559
|
alipay: Alipay,
|
|
5534
5560
|
alma: Alma,
|
|
5535
5561
|
amazon_pay: AmazonPay,
|
|
5536
5562
|
au_becs_debit: AuBecsDebit,
|
|
5563
|
+
au_pay: AuPay,
|
|
5537
5564
|
bacs_debit: BacsDebit,
|
|
5538
5565
|
bancontact: Bancontact,
|
|
5539
5566
|
billie: Billie,
|
|
@@ -5546,6 +5573,7 @@ module Stripe
|
|
|
5546
5573
|
cashapp: Cashapp,
|
|
5547
5574
|
crypto: Crypto,
|
|
5548
5575
|
customer_balance: CustomerBalance,
|
|
5576
|
+
dbarai: Dbarai,
|
|
5549
5577
|
eps: Eps,
|
|
5550
5578
|
fpx: Fpx,
|
|
5551
5579
|
getflex: Getflex,
|
|
@@ -5562,6 +5590,7 @@ module Stripe
|
|
|
5562
5590
|
kr_card: KrCard,
|
|
5563
5591
|
link: Link,
|
|
5564
5592
|
mb_way: MbWay,
|
|
5593
|
+
merpay: Merpay,
|
|
5565
5594
|
mobilepay: Mobilepay,
|
|
5566
5595
|
multibanco: Multibanco,
|
|
5567
5596
|
naver_pay: NaverPay,
|
|
@@ -5577,6 +5606,7 @@ module Stripe
|
|
|
5577
5606
|
pix: Pix,
|
|
5578
5607
|
promptpay: Promptpay,
|
|
5579
5608
|
qris: Qris,
|
|
5609
|
+
rakuten_pay: RakutenPay,
|
|
5580
5610
|
rechnung: Rechnung,
|
|
5581
5611
|
revolut_pay: RevolutPay,
|
|
5582
5612
|
samsung_pay: SamsungPay,
|
|
@@ -5675,7 +5705,7 @@ module Stripe
|
|
|
5675
5705
|
end
|
|
5676
5706
|
|
|
5677
5707
|
class RadarOptions < ::Stripe::StripeObject
|
|
5678
|
-
# The value you provided for whether this transaction starts a free trial. This is
|
|
5708
|
+
# The value you provided for whether this transaction starts a free trial. This field is omitted if you haven't explicitly set it.
|
|
5679
5709
|
attr_reader :is_free_trial_transaction
|
|
5680
5710
|
|
|
5681
5711
|
def self.inner_class_types
|
|
@@ -6291,26 +6321,6 @@ module Stripe
|
|
|
6291
6321
|
)
|
|
6292
6322
|
end
|
|
6293
6323
|
|
|
6294
|
-
# Updates the refund address for a static crypto deposit PaymentIntent on the specified network.
|
|
6295
|
-
def update_crypto_refund_address(params = {}, opts = {})
|
|
6296
|
-
request_stripe_object(
|
|
6297
|
-
method: :post,
|
|
6298
|
-
path: format("/v1/payment_intents/%<intent>s/update_crypto_refund_address", { intent: CGI.escape(self["id"]) }),
|
|
6299
|
-
params: params,
|
|
6300
|
-
opts: opts
|
|
6301
|
-
)
|
|
6302
|
-
end
|
|
6303
|
-
|
|
6304
|
-
# Updates the refund address for a static crypto deposit PaymentIntent on the specified network.
|
|
6305
|
-
def self.update_crypto_refund_address(intent, params = {}, opts = {})
|
|
6306
|
-
request_stripe_object(
|
|
6307
|
-
method: :post,
|
|
6308
|
-
path: format("/v1/payment_intents/%<intent>s/update_crypto_refund_address", { intent: CGI.escape(intent) }),
|
|
6309
|
-
params: params,
|
|
6310
|
-
opts: opts
|
|
6311
|
-
)
|
|
6312
|
-
end
|
|
6313
|
-
|
|
6314
6324
|
# Verifies microdeposits on a PaymentIntent object.
|
|
6315
6325
|
def verify_microdeposits(params = {}, opts = {})
|
|
6316
6326
|
request_stripe_object(
|
|
@@ -352,6 +352,8 @@ module Stripe
|
|
|
352
352
|
attr_reader :amount_tax_display
|
|
353
353
|
# ID of the invoice rendering template to be used for the generated invoice.
|
|
354
354
|
attr_reader :template
|
|
355
|
+
# The version of the invoice rendering template to be used for the generated invoice. If null, the latest version of the template will be used. Only available in unified mode.
|
|
356
|
+
attr_reader :template_version
|
|
355
357
|
|
|
356
358
|
def self.inner_class_types
|
|
357
359
|
@inner_class_types = {}
|
|
@@ -282,6 +282,33 @@ module Stripe
|
|
|
282
282
|
class GeneratedFrom < ::Stripe::StripeObject
|
|
283
283
|
class PaymentMethodDetails < ::Stripe::StripeObject
|
|
284
284
|
class CardPresent < ::Stripe::StripeObject
|
|
285
|
+
class Benefits < ::Stripe::StripeObject
|
|
286
|
+
class FrMealVoucher < ::Stripe::StripeObject
|
|
287
|
+
# The 14-digit SIRET of the meal voucher acceptor used for this charge.
|
|
288
|
+
attr_reader :siret
|
|
289
|
+
|
|
290
|
+
def self.inner_class_types
|
|
291
|
+
@inner_class_types = {}
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
def self.field_remappings
|
|
295
|
+
@field_remappings = {}
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
# Attribute for field fr_meal_voucher
|
|
299
|
+
attr_reader :fr_meal_voucher
|
|
300
|
+
# Issuer of the benefit card utilized on this payment
|
|
301
|
+
attr_reader :issuer
|
|
302
|
+
|
|
303
|
+
def self.inner_class_types
|
|
304
|
+
@inner_class_types = { fr_meal_voucher: FrMealVoucher }
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
def self.field_remappings
|
|
308
|
+
@field_remappings = {}
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
285
312
|
class Fleet < ::Stripe::StripeObject
|
|
286
313
|
class TransactionDatum < ::Stripe::StripeObject
|
|
287
314
|
# The prompt that the Terminal SDK displays to collect this Fleet value.
|
|
@@ -411,6 +438,8 @@ module Stripe
|
|
|
411
438
|
end
|
|
412
439
|
# The authorized amount
|
|
413
440
|
attr_reader :amount_authorized
|
|
441
|
+
# Attribute for field benefits
|
|
442
|
+
attr_reader :benefits
|
|
414
443
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
415
444
|
attr_reader :brand
|
|
416
445
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
@@ -478,6 +507,7 @@ module Stripe
|
|
|
478
507
|
|
|
479
508
|
def self.inner_class_types
|
|
480
509
|
@inner_class_types = {
|
|
510
|
+
benefits: Benefits,
|
|
481
511
|
fleet: Fleet,
|
|
482
512
|
multicapture: Multicapture,
|
|
483
513
|
offline: Offline,
|
|
@@ -823,6 +853,21 @@ module Stripe
|
|
|
823
853
|
end
|
|
824
854
|
|
|
825
855
|
class CardPresent < ::Stripe::StripeObject
|
|
856
|
+
class Benefits < ::Stripe::StripeObject
|
|
857
|
+
# Issuer of this benefit card
|
|
858
|
+
attr_reader :issuer
|
|
859
|
+
# Available benefit programs for this card
|
|
860
|
+
attr_reader :programs
|
|
861
|
+
|
|
862
|
+
def self.inner_class_types
|
|
863
|
+
@inner_class_types = {}
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
def self.field_remappings
|
|
867
|
+
@field_remappings = {}
|
|
868
|
+
end
|
|
869
|
+
end
|
|
870
|
+
|
|
826
871
|
class Networks < ::Stripe::StripeObject
|
|
827
872
|
# All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
828
873
|
attr_reader :available
|
|
@@ -865,6 +910,8 @@ module Stripe
|
|
|
865
910
|
@field_remappings = {}
|
|
866
911
|
end
|
|
867
912
|
end
|
|
913
|
+
# Attribute for field benefits
|
|
914
|
+
attr_reader :benefits
|
|
868
915
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
869
916
|
attr_reader :brand
|
|
870
917
|
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
|
@@ -903,7 +950,12 @@ module Stripe
|
|
|
903
950
|
attr_reader :wallet
|
|
904
951
|
|
|
905
952
|
def self.inner_class_types
|
|
906
|
-
@inner_class_types = {
|
|
953
|
+
@inner_class_types = {
|
|
954
|
+
benefits: Benefits,
|
|
955
|
+
networks: Networks,
|
|
956
|
+
offline: Offline,
|
|
957
|
+
wallet: Wallet,
|
|
958
|
+
}
|
|
907
959
|
end
|
|
908
960
|
|
|
909
961
|
def self.field_remappings
|