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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/singleton_save.rb +4 -4
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +22 -0
  5. data/lib/stripe/events/v2_money_management_dispute_adjustment_created_event.rb +44 -0
  6. data/lib/stripe/events/v2_money_management_dispute_created_event.rb +44 -0
  7. data/lib/stripe/events/v2_money_management_dispute_lost_event.rb +44 -0
  8. data/lib/stripe/events/v2_money_management_dispute_updated_event.rb +44 -0
  9. data/lib/stripe/events/v2_money_management_dispute_won_event.rb +44 -0
  10. data/lib/stripe/events/v2_risk_evaluation_outcome_delinquency_ready_event.rb +44 -0
  11. data/lib/stripe/object_types.rb +3 -0
  12. data/lib/stripe/params/balance_transaction_list_params.rb +2 -2
  13. data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
  14. data/lib/stripe/params/checkout/session_create_params.rb +208 -4
  15. data/lib/stripe/params/crypto/onramp_session_checkout_params.rb +37 -1
  16. data/lib/stripe/params/crypto/onramp_session_create_params.rb +4 -0
  17. data/lib/stripe/params/customer_create_params.rb +7 -1
  18. data/lib/stripe/params/customer_update_params.rb +7 -1
  19. data/lib/stripe/params/invoice_rendering_template_create_params.rb +14 -2
  20. data/lib/stripe/params/invoice_rendering_template_update_params.rb +14 -2
  21. data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
  22. data/lib/stripe/params/payment_intent_confirm_params.rb +96 -4
  23. data/lib/stripe/params/payment_intent_create_params.rb +96 -4
  24. data/lib/stripe/params/payment_intent_update_params.rb +96 -4
  25. data/lib/stripe/params/payment_method_configuration_create_params.rb +63 -0
  26. data/lib/stripe/params/payment_method_configuration_update_params.rb +63 -0
  27. data/lib/stripe/params/tax/calculation_create_params.rb +1 -1
  28. data/lib/stripe/params/terminal/configuration_create_params.rb +1 -1
  29. data/lib/stripe/params/terminal/configuration_update_params.rb +1 -1
  30. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +15 -1
  31. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
  32. data/lib/stripe/params/v2/billing/contract_create_params.rb +182 -9
  33. data/lib/stripe/params/v2/billing/contract_update_params.rb +328 -16
  34. data/lib/stripe/params/v2/core/account_create_params.rb +432 -3
  35. data/lib/stripe/params/v2/core/account_token_create_params.rb +4 -1
  36. data/lib/stripe/params/v2/core/account_update_params.rb +436 -4
  37. data/lib/stripe/params/v2/core/fee_batch_list_params.rb +7 -1
  38. data/lib/stripe/params/v2/money_management/dispute_adjustment_list_params.rb +23 -0
  39. data/lib/stripe/params/v2/money_management/dispute_adjustment_retrieve_params.rb +10 -0
  40. data/lib/stripe/params/v2/money_management/dispute_create_params.rb +37 -0
  41. data/lib/stripe/params/v2/money_management/dispute_list_params.rb +26 -0
  42. data/lib/stripe/params/v2/money_management/dispute_retrieve_params.rb +10 -0
  43. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +41 -1
  44. data/lib/stripe/params/v2/money_management/inbound_transfer_mandate_create_params.rb +24 -8
  45. data/lib/stripe/params/v2/money_management/spending_mandate_create_params.rb +51 -0
  46. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +4 -1
  47. data/lib/stripe/params/v2/money_management/spending_mandate_update_params.rb +39 -0
  48. data/lib/stripe/params/v2/money_management/test_helpers/financial_address_debit_params.rb +20 -1
  49. data/lib/stripe/params/v2/risk/evaluation_outcome_list_params.rb +34 -0
  50. data/lib/stripe/params/v2/risk/evaluation_outcome_retrieve_params.rb +10 -0
  51. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_fail_params.rb +19 -0
  52. data/lib/stripe/params/v2/test_helpers/money_management/inbound_transfer_succeed_params.rb +12 -0
  53. data/lib/stripe/params.rb +27 -5
  54. data/lib/stripe/resources/billing_portal/session.rb +16 -0
  55. data/lib/stripe/resources/cash_balance.rb +1 -1
  56. data/lib/stripe/resources/charge.rb +32 -0
  57. data/lib/stripe/resources/checkout/session.rb +65 -2
  58. data/lib/stripe/resources/confirmation_token.rb +54 -2
  59. data/lib/stripe/resources/customer.rb +4 -0
  60. data/lib/stripe/resources/customer_tax_exemption.rb +2 -0
  61. data/lib/stripe/resources/dispute.rb +4 -0
  62. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  63. data/lib/stripe/resources/invoice.rb +0 -30
  64. data/lib/stripe/resources/invoice_rendering_template.rb +19 -1
  65. data/lib/stripe/resources/issuing/authorization.rb +18 -0
  66. data/lib/stripe/resources/issuing/card.rb +28 -0
  67. data/lib/stripe/resources/issuing/transaction.rb +18 -0
  68. data/lib/stripe/resources/mandate.rb +65 -0
  69. data/lib/stripe/resources/payment_attempt_record.rb +46 -0
  70. data/lib/stripe/resources/payment_intent.rb +113 -103
  71. data/lib/stripe/resources/payment_link.rb +2 -0
  72. data/lib/stripe/resources/payment_method.rb +53 -1
  73. data/lib/stripe/resources/payment_method_configuration.rb +102 -0
  74. data/lib/stripe/resources/payment_record.rb +46 -0
  75. data/lib/stripe/resources/quote_preview_invoice.rb +0 -30
  76. data/lib/stripe/resources/radar/account_evaluation.rb +36 -2
  77. data/lib/stripe/resources/reserve/plan.rb +1 -1
  78. data/lib/stripe/resources/risk/form.rb +44 -1
  79. data/lib/stripe/resources/setup_attempt.rb +91 -0
  80. data/lib/stripe/resources/setup_intent.rb +1 -1
  81. data/lib/stripe/resources/source.rb +2 -2
  82. data/lib/stripe/resources/subscription.rb +0 -20
  83. data/lib/stripe/resources/tax/calculation.rb +1 -1
  84. data/lib/stripe/resources/tax/form.rb +6 -0
  85. data/lib/stripe/resources/tax/transaction.rb +1 -1
  86. data/lib/stripe/resources/terminal/configuration.rb +1 -1
  87. data/lib/stripe/resources/terminal/onboarding_link.rb +2 -1
  88. data/lib/stripe/resources/terminal/reader.rb +17 -1
  89. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -1
  90. data/lib/stripe/resources/three_d_secure/authentication.rb +1 -1
  91. data/lib/stripe/resources/v2/billing/contract.rb +285 -6
  92. data/lib/stripe/resources/v2/billing/contract_term.rb +133 -6
  93. data/lib/stripe/resources/v2/core/account.rb +2709 -322
  94. data/lib/stripe/resources/v2/core/fee_batch.rb +3 -0
  95. data/lib/stripe/resources/v2/core/fee_entry.rb +33 -3
  96. data/lib/stripe/resources/v2/money_management/dispute.rb +78 -0
  97. data/lib/stripe/resources/v2/money_management/dispute_adjustment.rb +53 -0
  98. data/lib/stripe/resources/v2/money_management/financial_account.rb +45 -0
  99. data/lib/stripe/resources/v2/money_management/inbound_transfer_mandate.rb +6 -4
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +27 -1
  101. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +18 -2
  102. data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
  103. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
  104. data/lib/stripe/resources/v2/risk/evaluation_outcome.rb +305 -0
  105. data/lib/stripe/resources/v2/signals/account_evaluation.rb +34 -0
  106. data/lib/stripe/resources/v2/signals/account_signal.rb +23 -0
  107. data/lib/stripe/resources.rb +30 -0
  108. data/lib/stripe/services/checkout/session_service.rb +1 -1
  109. data/lib/stripe/services/payment_intent_service.rb +0 -11
  110. data/lib/stripe/services/risk/form_service.rb +44 -1
  111. data/lib/stripe/services/subscription_service.rb +0 -11
  112. data/lib/stripe/services/terminal/onboarding_link_service.rb +1 -0
  113. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +1 -1
  114. data/lib/stripe/services/v2/core/fee_batch_service.rb +4 -1
  115. data/lib/stripe/services/v2/core/fee_entry_service.rb +3 -1
  116. data/lib/stripe/services/v2/money_management/debit_dispute_service.rb +1 -0
  117. data/lib/stripe/services/v2/money_management/dispute_adjustment_service.rb +32 -0
  118. data/lib/stripe/services/v2/money_management/dispute_service.rb +46 -0
  119. data/lib/stripe/services/v2/money_management/inbound_transfer_mandate_service.rb +6 -3
  120. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +26 -0
  121. data/lib/stripe/services/v2/money_management_service.rb +3 -1
  122. data/lib/stripe/services/v2/risk/evaluation_outcome_service.rb +32 -0
  123. data/lib/stripe/services/v2/risk_service.rb +2 -1
  124. data/lib/stripe/services/v2/test_helpers/money_management/inbound_transfer_service.rb +34 -0
  125. data/lib/stripe/services/v2/test_helpers/money_management_service.rb +8 -0
  126. data/lib/stripe/services.rb +11 -0
  127. data/lib/stripe/stripe_client.rb +1 -1
  128. data/lib/stripe/stripe_event_notification_handler.rb +24 -0
  129. data/lib/stripe/stripe_object.rb +14 -4
  130. data/lib/stripe/util.rb +21 -2
  131. data/lib/stripe/v2_type_coercion.rb +6 -2
  132. data/lib/stripe/version.rb +1 -1
  133. data/lib/stripe/webhook.rb +1 -0
  134. data/rbi/stripe.rbi +8211 -782
  135. metadata +26 -4
  136. data/lib/stripe/params/payment_intent_update_crypto_refund_address_params.rb +0 -19
  137. data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
@@ -553,6 +553,37 @@ module Stripe
553
553
  end
554
554
  end
555
555
 
556
+ class Carecredit < ::Stripe::StripeObject
557
+ class DisplayPreference < ::Stripe::StripeObject
558
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
559
+ attr_reader :overridable
560
+ # The account's display preference.
561
+ attr_reader :preference
562
+ # The effective display preference value.
563
+ attr_reader :value
564
+
565
+ def self.inner_class_types
566
+ @inner_class_types = {}
567
+ end
568
+
569
+ def self.field_remappings
570
+ @field_remappings = {}
571
+ end
572
+ end
573
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
574
+ attr_reader :available
575
+ # Attribute for field display_preference
576
+ attr_reader :display_preference
577
+
578
+ def self.inner_class_types
579
+ @inner_class_types = { display_preference: DisplayPreference }
580
+ end
581
+
582
+ def self.field_remappings
583
+ @field_remappings = {}
584
+ end
585
+ end
586
+
556
587
  class CartesBancaires < ::Stripe::StripeObject
557
588
  class DisplayPreference < ::Stripe::StripeObject
558
589
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -770,6 +801,37 @@ module Stripe
770
801
  end
771
802
  end
772
803
 
804
+ class Getflex < ::Stripe::StripeObject
805
+ class DisplayPreference < ::Stripe::StripeObject
806
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
807
+ attr_reader :overridable
808
+ # The account's display preference.
809
+ attr_reader :preference
810
+ # The effective display preference value.
811
+ attr_reader :value
812
+
813
+ def self.inner_class_types
814
+ @inner_class_types = {}
815
+ end
816
+
817
+ def self.field_remappings
818
+ @field_remappings = {}
819
+ end
820
+ end
821
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
822
+ attr_reader :available
823
+ # Attribute for field display_preference
824
+ attr_reader :display_preference
825
+
826
+ def self.inner_class_types
827
+ @inner_class_types = { display_preference: DisplayPreference }
828
+ end
829
+
830
+ def self.field_remappings
831
+ @field_remappings = {}
832
+ end
833
+ end
834
+
773
835
  class Giropay < ::Stripe::StripeObject
774
836
  class DisplayPreference < ::Stripe::StripeObject
775
837
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -1886,6 +1948,37 @@ module Stripe
1886
1948
  end
1887
1949
  end
1888
1950
 
1951
+ class Sezzle < ::Stripe::StripeObject
1952
+ class DisplayPreference < ::Stripe::StripeObject
1953
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1954
+ attr_reader :overridable
1955
+ # The account's display preference.
1956
+ attr_reader :preference
1957
+ # The effective display preference value.
1958
+ attr_reader :value
1959
+
1960
+ def self.inner_class_types
1961
+ @inner_class_types = {}
1962
+ end
1963
+
1964
+ def self.field_remappings
1965
+ @field_remappings = {}
1966
+ end
1967
+ end
1968
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1969
+ attr_reader :available
1970
+ # Attribute for field display_preference
1971
+ attr_reader :display_preference
1972
+
1973
+ def self.inner_class_types
1974
+ @inner_class_types = { display_preference: DisplayPreference }
1975
+ end
1976
+
1977
+ def self.field_remappings
1978
+ @field_remappings = {}
1979
+ end
1980
+ end
1981
+
1889
1982
  class Shopeepay < ::Stripe::StripeObject
1890
1983
  class DisplayPreference < ::Stripe::StripeObject
1891
1984
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -2264,6 +2357,8 @@ module Stripe
2264
2357
  attr_reader :boleto
2265
2358
  # Attribute for field card
2266
2359
  attr_reader :card
2360
+ # Attribute for field carecredit
2361
+ attr_reader :carecredit
2267
2362
  # Attribute for field cartes_bancaires
2268
2363
  attr_reader :cartes_bancaires
2269
2364
  # Attribute for field cashapp
@@ -2278,6 +2373,8 @@ module Stripe
2278
2373
  attr_reader :eps
2279
2374
  # Attribute for field fpx
2280
2375
  attr_reader :fpx
2376
+ # Attribute for field getflex
2377
+ attr_reader :getflex
2281
2378
  # Attribute for field giropay
2282
2379
  attr_reader :giropay
2283
2380
  # Attribute for field google_pay
@@ -2362,6 +2459,8 @@ module Stripe
2362
2459
  attr_reader :sepa_debit
2363
2460
  # Attribute for field sequra
2364
2461
  attr_reader :sequra
2462
+ # Attribute for field sezzle
2463
+ attr_reader :sezzle
2365
2464
  # Attribute for field shopeepay
2366
2465
  attr_reader :shopeepay
2367
2466
  # Attribute for field sofort
@@ -2434,6 +2533,7 @@ module Stripe
2434
2533
  blik: Blik,
2435
2534
  boleto: Boleto,
2436
2535
  card: Card,
2536
+ carecredit: Carecredit,
2437
2537
  cartes_bancaires: CartesBancaires,
2438
2538
  cashapp: Cashapp,
2439
2539
  crypto: Crypto,
@@ -2441,6 +2541,7 @@ module Stripe
2441
2541
  dbarai: Dbarai,
2442
2542
  eps: Eps,
2443
2543
  fpx: Fpx,
2544
+ getflex: Getflex,
2444
2545
  giropay: Giropay,
2445
2546
  google_pay: GooglePay,
2446
2547
  gopay: Gopay,
@@ -2477,6 +2578,7 @@ module Stripe
2477
2578
  scalapay: Scalapay,
2478
2579
  sepa_debit: SepaDebit,
2479
2580
  sequra: Sequra,
2581
+ sezzle: Sezzle,
2480
2582
  shopeepay: Shopeepay,
2481
2583
  sofort: Sofort,
2482
2584
  sunbit: Sunbit,
@@ -766,6 +766,33 @@ module Stripe
766
766
  end
767
767
 
768
768
  class CardPresent < ::Stripe::StripeObject
769
+ class Benefits < ::Stripe::StripeObject
770
+ class FrMealVoucher < ::Stripe::StripeObject
771
+ # The 14-digit SIRET of the meal voucher acceptor used for this charge.
772
+ attr_reader :siret
773
+
774
+ def self.inner_class_types
775
+ @inner_class_types = {}
776
+ end
777
+
778
+ def self.field_remappings
779
+ @field_remappings = {}
780
+ end
781
+ end
782
+ # Attribute for field fr_meal_voucher
783
+ attr_reader :fr_meal_voucher
784
+ # Issuer of the benefit card utilized on this payment
785
+ attr_reader :issuer
786
+
787
+ def self.inner_class_types
788
+ @inner_class_types = { fr_meal_voucher: FrMealVoucher }
789
+ end
790
+
791
+ def self.field_remappings
792
+ @field_remappings = {}
793
+ end
794
+ end
795
+
769
796
  class Fleet < ::Stripe::StripeObject
770
797
  class TransactionDatum < ::Stripe::StripeObject
771
798
  # The prompt that the Terminal SDK displays to collect this Fleet value.
@@ -895,6 +922,8 @@ module Stripe
895
922
  end
896
923
  # The authorized amount
897
924
  attr_reader :amount_authorized
925
+ # Attribute for field benefits
926
+ attr_reader :benefits
898
927
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
899
928
  attr_reader :brand
900
929
  # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
@@ -962,6 +991,7 @@ module Stripe
962
991
 
963
992
  def self.inner_class_types
964
993
  @inner_class_types = {
994
+ benefits: Benefits,
965
995
  fleet: Fleet,
966
996
  multicapture: Multicapture,
967
997
  offline: Offline,
@@ -2513,6 +2543,19 @@ module Stripe
2513
2543
  end
2514
2544
  end
2515
2545
 
2546
+ class Stripe < ::Stripe::StripeObject
2547
+ # 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.
2548
+ attr_reader :derived_balance_transactions
2549
+
2550
+ def self.inner_class_types
2551
+ @inner_class_types = {}
2552
+ end
2553
+
2554
+ def self.field_remappings
2555
+ @field_remappings = {}
2556
+ end
2557
+ end
2558
+
2516
2559
  class Svs < ::Stripe::StripeObject
2517
2560
  # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
2518
2561
  attr_reader :payment_reference
@@ -2533,6 +2576,8 @@ module Stripe
2533
2576
  attr_reader :fiserv_valuelink
2534
2577
  # Represents the Givex gift card processor.
2535
2578
  attr_reader :givex
2579
+ # Represents the Stripe processor. This resource consists of details specific to Stripe.
2580
+ attr_reader :stripe
2536
2581
  # Represents the SVS gift card processor.
2537
2582
  attr_reader :svs
2538
2583
  # The processor used for this payment attempt.
@@ -2543,6 +2588,7 @@ module Stripe
2543
2588
  custom: Custom,
2544
2589
  fiserv_valuelink: FiservValuelink,
2545
2590
  givex: Givex,
2591
+ stripe: Stripe,
2546
2592
  svs: Svs,
2547
2593
  }
2548
2594
  end
@@ -37,33 +37,6 @@ module Stripe
37
37
  end
38
38
  end
39
39
 
40
- class AppliedCreditMemos < ::Stripe::StripeObject
41
- class Data < ::Stripe::StripeObject
42
- # The credit currently applied to this invoice from the Credit Memo, in cents (or local equivalent). Applying credit reduces `amount_due` and `amount_remaining` without changing `amount_paid`.
43
- attr_reader :applied_amount
44
- # The ID of the Credit Memo whose credit is applied to this invoice.
45
- attr_reader :credit_memo
46
-
47
- def self.inner_class_types
48
- @inner_class_types = {}
49
- end
50
-
51
- def self.field_remappings
52
- @field_remappings = {}
53
- end
54
- end
55
- # The Credit Memos with credit currently applied to this invoice, with one entry per Credit Memo. An invoice can have credit applied from at most 10 Credit Memos, so the list is returned in full.
56
- attr_reader :data
57
-
58
- def self.inner_class_types
59
- @inner_class_types = { data: Data }
60
- end
61
-
62
- def self.field_remappings
63
- @field_remappings = {}
64
- end
65
- end
66
-
67
40
  class AppliesTo < ::Stripe::StripeObject
68
41
  # A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
69
42
  attr_reader :new_reference
@@ -1246,8 +1219,6 @@ module Stripe
1246
1219
  attr_reader :amounts_due
1247
1220
  # ID of the Connect Application that created the invoice.
1248
1221
  attr_reader :application
1249
- # Attribute for field applied_credit_memos
1250
- attr_reader :applied_credit_memos
1251
1222
  # Attribute for field applies_to
1252
1223
  attr_reader :applies_to
1253
1224
  # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained.
@@ -1402,7 +1373,6 @@ module Stripe
1402
1373
  def self.inner_class_types
1403
1374
  @inner_class_types = {
1404
1375
  amounts_due: AmountsDue,
1405
- applied_credit_memos: AppliedCreditMemos,
1406
1376
  applies_to: AppliesTo,
1407
1377
  automatic_tax: AutomaticTax,
1408
1378
  confirmation_secret: ConfirmationSecret,
@@ -94,11 +94,25 @@ module Stripe
94
94
 
95
95
  class Signals < ::Stripe::StripeObject
96
96
  class AccountSharing < ::Stripe::StripeObject
97
+ class AdditionalDetails < ::Stripe::StripeObject
98
+ # Whether the email address is disposable.
99
+ attr_reader :is_disposable_email
100
+
101
+ def self.inner_class_types
102
+ @inner_class_types = {}
103
+ end
104
+
105
+ def self.field_remappings
106
+ @field_remappings = {}
107
+ end
108
+ end
109
+ # Attribute for field additional_details
110
+ attr_reader :additional_details
97
111
  # Score for this signal (float between 0.0-100.0).
98
112
  attr_reader :score
99
113
 
100
114
  def self.inner_class_types
101
- @inner_class_types = {}
115
+ @inner_class_types = { additional_details: AdditionalDetails }
102
116
  end
103
117
 
104
118
  def self.field_remappings
@@ -107,11 +121,31 @@ module Stripe
107
121
  end
108
122
 
109
123
  class MultiAccounting < ::Stripe::StripeObject
124
+ class AdditionalDetails < ::Stripe::StripeObject
125
+ # Whether the device fingerprint is reused.
126
+ attr_reader :is_device_fingerprint_reuse
127
+ # Whether the email address is disposable.
128
+ attr_reader :is_disposable_email
129
+ # Whether the email address is reused.
130
+ attr_reader :is_email_reuse
131
+ # Whether the IP address is reused.
132
+ attr_reader :is_ip_reuse
133
+
134
+ def self.inner_class_types
135
+ @inner_class_types = {}
136
+ end
137
+
138
+ def self.field_remappings
139
+ @field_remappings = {}
140
+ end
141
+ end
142
+ # Attribute for field additional_details
143
+ attr_reader :additional_details
110
144
  # Score for this signal (float between 0.0-100.0).
111
145
  attr_reader :score
112
146
 
113
147
  def self.inner_class_types
114
- @inner_class_types = {}
148
+ @inner_class_types = { additional_details: AdditionalDetails }
115
149
  end
116
150
 
117
151
  def self.field_remappings
@@ -40,7 +40,7 @@ module Stripe
40
40
  class RollingRelease < ::Stripe::StripeObject
41
41
  # The number of days to reserve funds before releasing.
42
42
  attr_reader :days_after_charge
43
- # The number of days after the PaymentIntent's `fulfillment_date` to reserve funds before releasing. Charges without a `fulfillment_date` use `days_after_charge`.
43
+ # The number of days after a payment's `fulfillment_date` to reserve funds before releasing them. The hold releases at midnight UTC that many days after the fulfillment date. Charges without a `fulfillment_date` use `days_after_charge`.
44
44
  attr_reader :days_after_fulfillment
45
45
  # The time at which the ReservePlan expires.
46
46
  attr_reader :expires_on
@@ -242,10 +242,53 @@ module Stripe
242
242
  # | — | — | — |
243
243
  # | form_not_found | 400 | No Form matches the supplied ID. |
244
244
  # | form_closed | 400 | The Form is closed and cannot accept updates. |
245
- # | invalid_field_for_form_type | 400 | A submitted field is not supported by this Form type. |
245
+ # | invalid_field_for_form_type | 400 | Submitted fields contain invalid values. |
246
246
  # | form_field_already_submitted | 400 | A submitted field has already been submitted. |
247
247
  # | form_insufficient_fields | 400 | Required fields are missing for this Form type. |
248
248
  # | resource_missing | 404 | A submitted file does not exist or is not accessible to the requesting account. |
249
+ #
250
+ # Validation errors include a summary in message. Missing required properties use
251
+ # form_insufficient_fields and include missing_fields, an array of public dotted paths.
252
+ # Missing required properties take precedence over value violations.
253
+ #
254
+ # Invalid values use invalid_field_for_form_type and include violations. Each violation
255
+ # has a public dotted field path and a reason of missing_value or invalid_value.
256
+ # Reviewed-field violations include a corrective message; corrective messages for other
257
+ # Form types are omitted. For an array member, target identifies the member's field path.
258
+ # For a scalar value, target is explicitly null.
259
+ #
260
+ # For example, a reviewed-fields submission with an out-of-date timestamp and an omitted
261
+ # requested member returns both violations:
262
+ #
263
+ # json
264
+ # {
265
+ # "error": {
266
+ # "type": "invalid_request_error",
267
+ # "code": "invalid_field_for_form_type",
268
+ # "message": "Submitted fields are invalid for Form type reviewed_fields. See violations for details and corrective actions for these fields: 'reviewed_fields.attestation.attested_at', 'reviewed_fields.attestation.fields'.",
269
+ # "violations": [
270
+ # {
271
+ # "field": "reviewed_fields.attestation.attested_at",
272
+ # "reason": "invalid_value",
273
+ # "message": "The attestation timestamp is out of date. Review and attest the requested information again, then provide the new attestation timestamp.",
274
+ # "target": null
275
+ # },
276
+ # {
277
+ # "field": "reviewed_fields.attestation.fields",
278
+ # "reason": "missing_value",
279
+ # "message": "'defaults.profile.product_description' is required by subject.fields_to_review but is missing from reviewed_fields.attestation.fields. Review this information, then include its path in the attestation.",
280
+ # "target": "defaults.profile.product_description"
281
+ # }
282
+ # ]
283
+ # }
284
+ # }
285
+ #
286
+ #
287
+ # A v1 request with no extracted field submissions is rejected before the Form is loaded,
288
+ # including for reviewed-fields Forms. This early error uses form_insufficient_fields
289
+ # and omits missing_fields,
290
+ # violations, and param. Partially populated reviewed-fields requests use structured
291
+ # missing-property validation.
249
292
  def self.update(id, params = {}, opts = {})
250
293
  request_stripe_object(
251
294
  method: :post,
@@ -25,6 +25,16 @@ module Stripe
25
25
  end
26
26
  end
27
27
 
28
+ class AeonPay < ::Stripe::StripeObject
29
+ def self.inner_class_types
30
+ @inner_class_types = {}
31
+ end
32
+
33
+ def self.field_remappings
34
+ @field_remappings = {}
35
+ end
36
+ end
37
+
28
38
  class AmazonPay < ::Stripe::StripeObject
29
39
  def self.inner_class_types
30
40
  @inner_class_types = {}
@@ -45,6 +55,16 @@ module Stripe
45
55
  end
46
56
  end
47
57
 
58
+ class AuPay < ::Stripe::StripeObject
59
+ def self.inner_class_types
60
+ @inner_class_types = {}
61
+ end
62
+
63
+ def self.field_remappings
64
+ @field_remappings = {}
65
+ end
66
+ end
67
+
48
68
  class BacsDebit < ::Stripe::StripeObject
49
69
  def self.inner_class_types
50
70
  @inner_class_types = {}
@@ -258,6 +278,16 @@ module Stripe
258
278
  end
259
279
  end
260
280
 
281
+ class Carecredit < ::Stripe::StripeObject
282
+ def self.inner_class_types
283
+ @inner_class_types = {}
284
+ end
285
+
286
+ def self.field_remappings
287
+ @field_remappings = {}
288
+ end
289
+ end
290
+
261
291
  class Cashapp < ::Stripe::StripeObject
262
292
  def self.inner_class_types
263
293
  @inner_class_types = {}
@@ -268,6 +298,26 @@ module Stripe
268
298
  end
269
299
  end
270
300
 
301
+ class Dbarai < ::Stripe::StripeObject
302
+ def self.inner_class_types
303
+ @inner_class_types = {}
304
+ end
305
+
306
+ def self.field_remappings
307
+ @field_remappings = {}
308
+ end
309
+ end
310
+
311
+ class Getflex < ::Stripe::StripeObject
312
+ def self.inner_class_types
313
+ @inner_class_types = {}
314
+ end
315
+
316
+ def self.field_remappings
317
+ @field_remappings = {}
318
+ end
319
+ end
320
+
271
321
  class IdBankTransfer < ::Stripe::StripeObject
272
322
  # Bank where the account is located.
273
323
  attr_reader :bank
@@ -351,6 +401,16 @@ module Stripe
351
401
  end
352
402
  end
353
403
 
404
+ class Merpay < ::Stripe::StripeObject
405
+ def self.inner_class_types
406
+ @inner_class_types = {}
407
+ end
408
+
409
+ def self.field_remappings
410
+ @field_remappings = {}
411
+ end
412
+ end
413
+
354
414
  class NaverPay < ::Stripe::StripeObject
355
415
  # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
356
416
  attr_reader :buyer_id
@@ -420,6 +480,16 @@ module Stripe
420
480
  end
421
481
  end
422
482
 
483
+ class RakutenPay < ::Stripe::StripeObject
484
+ def self.inner_class_types
485
+ @inner_class_types = {}
486
+ end
487
+
488
+ def self.field_remappings
489
+ @field_remappings = {}
490
+ end
491
+ end
492
+
423
493
  class RevolutPay < ::Stripe::StripeObject
424
494
  def self.inner_class_types
425
495
  @inner_class_types = {}
@@ -533,10 +603,14 @@ module Stripe
533
603
  end
534
604
  # Attribute for field acss_debit
535
605
  attr_reader :acss_debit
606
+ # Attribute for field aeon_pay
607
+ attr_reader :aeon_pay
536
608
  # Attribute for field amazon_pay
537
609
  attr_reader :amazon_pay
538
610
  # Attribute for field au_becs_debit
539
611
  attr_reader :au_becs_debit
612
+ # Attribute for field au_pay
613
+ attr_reader :au_pay
540
614
  # Attribute for field bacs_debit
541
615
  attr_reader :bacs_debit
542
616
  # Attribute for field bancontact
@@ -549,8 +623,14 @@ module Stripe
549
623
  attr_reader :card
550
624
  # Attribute for field card_present
551
625
  attr_reader :card_present
626
+ # Attribute for field carecredit
627
+ attr_reader :carecredit
552
628
  # Attribute for field cashapp
553
629
  attr_reader :cashapp
630
+ # Attribute for field dbarai
631
+ attr_reader :dbarai
632
+ # Attribute for field getflex
633
+ attr_reader :getflex
554
634
  # Attribute for field id_bank_transfer
555
635
  attr_reader :id_bank_transfer
556
636
  # Attribute for field ideal
@@ -563,6 +643,8 @@ module Stripe
563
643
  attr_reader :kr_card
564
644
  # Attribute for field link
565
645
  attr_reader :link
646
+ # Attribute for field merpay
647
+ attr_reader :merpay
566
648
  # Attribute for field naver_pay
567
649
  attr_reader :naver_pay
568
650
  # Attribute for field nz_bank_account
@@ -575,6 +657,8 @@ module Stripe
575
657
  attr_reader :payto
576
658
  # Attribute for field pix
577
659
  attr_reader :pix
660
+ # Attribute for field rakuten_pay
661
+ attr_reader :rakuten_pay
578
662
  # Attribute for field revolut_pay
579
663
  attr_reader :revolut_pay
580
664
  # Attribute for field satispay
@@ -599,27 +683,34 @@ module Stripe
599
683
  def self.inner_class_types
600
684
  @inner_class_types = {
601
685
  acss_debit: AcssDebit,
686
+ aeon_pay: AeonPay,
602
687
  amazon_pay: AmazonPay,
603
688
  au_becs_debit: AuBecsDebit,
689
+ au_pay: AuPay,
604
690
  bacs_debit: BacsDebit,
605
691
  bancontact: Bancontact,
606
692
  blik: Blik,
607
693
  boleto: Boleto,
608
694
  card: Card,
609
695
  card_present: CardPresent,
696
+ carecredit: Carecredit,
610
697
  cashapp: Cashapp,
698
+ dbarai: Dbarai,
699
+ getflex: Getflex,
611
700
  id_bank_transfer: IdBankTransfer,
612
701
  ideal: Ideal,
613
702
  kakao_pay: KakaoPay,
614
703
  klarna: Klarna,
615
704
  kr_card: KrCard,
616
705
  link: Link,
706
+ merpay: Merpay,
617
707
  naver_pay: NaverPay,
618
708
  nz_bank_account: NzBankAccount,
619
709
  paypal: Paypal,
620
710
  paypay: Paypay,
621
711
  payto: Payto,
622
712
  pix: Pix,
713
+ rakuten_pay: RakutenPay,
623
714
  revolut_pay: RevolutPay,
624
715
  satispay: Satispay,
625
716
  sepa_debit: SepaDebit,
@@ -864,7 +864,7 @@ module Stripe
864
864
  end
865
865
 
866
866
  class RadarOptions < ::Stripe::StripeObject
867
- # The value you provided for whether this transaction starts a free trial. This is null if you haven't explicitly set it.
867
+ # The value you provided for whether this transaction starts a free trial. This field is omitted if you haven't explicitly set it.
868
868
  attr_reader :is_free_trial_transaction
869
869
  # A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
870
870
  attr_reader :session
@@ -971,8 +971,8 @@ module Stripe
971
971
  url = "#{Customer.resource_url}/#{CGI.escape(customer)}/sources" \
972
972
  "/#{CGI.escape(id)}"
973
973
  opts = Util.normalize_opts(opts)
974
- APIRequestor.active_requestor.execute_request_initialize_from(:delete, url, :api, self,
975
- params: params, opts: RequestOptions.extract_opts_from_hash(opts))
974
+ @requestor.execute_request_initialize_from(:delete, url, :api, self,
975
+ params: params, opts: RequestOptions.extract_opts_from_hash(opts))
976
976
  end
977
977
 
978
978
  def source_transactions(params = {}, opts = {})
@@ -1142,26 +1142,6 @@ module Stripe
1142
1142
  # If the subscription has a trial, the beginning of that trial.
1143
1143
  attr_reader :trial_start
1144
1144
 
1145
- # Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
1146
- def attach_cadence(params = {}, opts = {})
1147
- request_stripe_object(
1148
- method: :post,
1149
- path: format("/v1/subscriptions/%<subscription>s/attach_cadence", { subscription: CGI.escape(self["id"]) }),
1150
- params: params,
1151
- opts: opts
1152
- )
1153
- end
1154
-
1155
- # Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
1156
- def self.attach_cadence(subscription, params = {}, opts = {})
1157
- request_stripe_object(
1158
- method: :post,
1159
- path: format("/v1/subscriptions/%<subscription>s/attach_cadence", { subscription: CGI.escape(subscription) }),
1160
- params: params,
1161
- opts: opts
1162
- )
1163
- end
1164
-
1165
1145
  # Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details.
1166
1146
  #
1167
1147
  # Pending invoice items are included on a final invoice if you generate one. Otherwise, they remain pending and can be billed on another invoice for the customer. To prevent billing, manually [delete](https://docs.stripe.com/api/invoiceitems/delete) them. If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false.
@@ -273,7 +273,7 @@ module Stripe
273
273
  attr_reader :tax_amount_inclusive
274
274
  # Breakdown of individual tax amounts that add up to the total.
275
275
  attr_reader :tax_breakdown
276
- # The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window.
276
+ # The calculation uses the tax rules and rates that are in effect at this timestamp, expressed in seconds since the Unix epoch (January 1, 1970, at 00:00 UTC). Stripe Tax interprets this timestamp in each taxing jurisdiction's timezone to determine the applicable rules and rates. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window.
277
277
  attr_reader :tax_date
278
278
 
279
279
  # Calculates tax based on the input and returns a Tax Calculation object.