stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +8 -0
  3. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  4. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  5. data/lib/stripe/object_types.rb +4 -0
  6. data/lib/stripe/params/account_session_create_params.rb +200 -0
  7. data/lib/stripe/params/checkout/session_create_params.rb +42 -1
  8. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  9. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  10. data/lib/stripe/params/invoice_create_params.rb +8 -1
  11. data/lib/stripe/params/invoice_update_params.rb +8 -1
  12. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
  13. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  14. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  15. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  16. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  17. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  18. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  19. data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
  20. data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
  21. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  22. data/lib/stripe/params/quote_create_params.rb +1 -1
  23. data/lib/stripe/params/quote_update_params.rb +1 -1
  24. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
  25. data/lib/stripe/params/refund_create_params.rb +4 -0
  26. data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
  27. data/lib/stripe/params/setup_intent_create_params.rb +37 -0
  28. data/lib/stripe/params/setup_intent_update_params.rb +21 -0
  29. data/lib/stripe/params/subscription_create_params.rb +4 -0
  30. data/lib/stripe/params/subscription_list_params.rb +5 -1
  31. data/lib/stripe/params/subscription_update_params.rb +4 -0
  32. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  33. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  34. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  35. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  36. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  37. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  38. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  39. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  40. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  41. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  42. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  43. data/lib/stripe/params.rb +21 -0
  44. data/lib/stripe/resources/account_session.rb +81 -0
  45. data/lib/stripe/resources/apps/install.rb +1 -1
  46. data/lib/stripe/resources/charge.rb +354 -2
  47. data/lib/stripe/resources/checkout/session.rb +30 -0
  48. data/lib/stripe/resources/confirmation_token.rb +84 -0
  49. data/lib/stripe/resources/coupon.rb +6 -3
  50. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  51. data/lib/stripe/resources/invoice.rb +3 -0
  52. data/lib/stripe/resources/payment_attempt_record.rb +133 -0
  53. data/lib/stripe/resources/payment_intent.rb +100 -2
  54. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  55. data/lib/stripe/resources/payment_method.rb +84 -0
  56. data/lib/stripe/resources/payment_method_configuration.rb +34 -0
  57. data/lib/stripe/resources/payment_record.rb +133 -0
  58. data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
  59. data/lib/stripe/resources/refund.rb +38 -0
  60. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  61. data/lib/stripe/resources/setup_attempt.rb +3 -0
  62. data/lib/stripe/resources/setup_intent.rb +19 -1
  63. data/lib/stripe/resources/subscription.rb +3 -1
  64. data/lib/stripe/resources/tax/certificate.rb +81 -0
  65. data/lib/stripe/resources/tax/form.rb +11 -0
  66. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  67. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  68. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  69. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  70. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  71. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  72. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  73. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  74. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  75. data/lib/stripe/resources.rb +17 -0
  76. data/lib/stripe/services/apps/install_service.rb +1 -1
  77. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  78. data/lib/stripe/services/tax/form_service.rb +11 -0
  79. data/lib/stripe/services/tax_service.rb +2 -1
  80. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  81. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  82. data/lib/stripe/services/v2/extend_service.rb +2 -1
  83. data/lib/stripe/services.rb +9 -0
  84. data/lib/stripe/stripe_event_notification_handler.rb +8 -0
  85. data/lib/stripe/stripe_service.rb +13 -9
  86. data/lib/stripe/version.rb +1 -1
  87. data/lib/stripe/webhook.rb +7 -1
  88. data/lib/stripe/workload_identity_exchange.rb +2 -2
  89. data/rbi/stripe.rbi +4320 -69
  90. metadata +20 -2
@@ -136,6 +136,16 @@ module Stripe
136
136
  end
137
137
  end
138
138
 
139
+ class AeonPay < ::Stripe::StripeObject
140
+ def self.inner_class_types
141
+ @inner_class_types = {}
142
+ end
143
+
144
+ def self.field_remappings
145
+ @field_remappings = {}
146
+ end
147
+ end
148
+
139
149
  class Affirm < ::Stripe::StripeObject
140
150
  def self.inner_class_types
141
151
  @inner_class_types = {}
@@ -203,6 +213,16 @@ module Stripe
203
213
  end
204
214
  end
205
215
 
216
+ class AuPay < ::Stripe::StripeObject
217
+ def self.inner_class_types
218
+ @inner_class_types = {}
219
+ end
220
+
221
+ def self.field_remappings
222
+ @field_remappings = {}
223
+ end
224
+ end
225
+
206
226
  class BacsDebit < ::Stripe::StripeObject
207
227
  # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
208
228
  attr_reader :fingerprint
@@ -358,6 +378,35 @@ module Stripe
358
378
  class GeneratedFrom < ::Stripe::StripeObject
359
379
  class PaymentMethodDetails < ::Stripe::StripeObject
360
380
  class CardPresent < ::Stripe::StripeObject
381
+ class Fleet < ::Stripe::StripeObject
382
+ class TransactionDatum < ::Stripe::StripeObject
383
+ # The prompt that the Terminal SDK displays to collect this Fleet value.
384
+ attr_reader :prompt
385
+ # Whether the collected value is printed on the receipt.
386
+ attr_reader :receipt_behavior
387
+ # The value collected for this Fleet prompt.
388
+ attr_reader :value
389
+
390
+ def self.inner_class_types
391
+ @inner_class_types = {}
392
+ end
393
+
394
+ def self.field_remappings
395
+ @field_remappings = {}
396
+ end
397
+ end
398
+ # Fleet prompts and values collected for this transaction.
399
+ attr_reader :transaction_data
400
+
401
+ def self.inner_class_types
402
+ @inner_class_types = { transaction_data: TransactionDatum }
403
+ end
404
+
405
+ def self.field_remappings
406
+ @field_remappings = {}
407
+ end
408
+ end
409
+
361
410
  class Multicapture < ::Stripe::StripeObject
362
411
  # Indicates whether or not multiple captures are supported.
363
412
  attr_reader :status
@@ -464,6 +513,8 @@ module Stripe
464
513
  #
465
514
  # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
466
515
  attr_reader :fingerprint
516
+ # Attribute for field fleet
517
+ attr_reader :fleet
467
518
  # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
468
519
  attr_reader :funding
469
520
  # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
@@ -507,6 +558,7 @@ module Stripe
507
558
 
508
559
  def self.inner_class_types
509
560
  @inner_class_types = {
561
+ fleet: Fleet,
510
562
  multicapture: Multicapture,
511
563
  offline: Offline,
512
564
  reauthorization: Reauthorization,
@@ -984,6 +1036,16 @@ module Stripe
984
1036
  end
985
1037
  end
986
1038
 
1039
+ class Dbarai < ::Stripe::StripeObject
1040
+ def self.inner_class_types
1041
+ @inner_class_types = {}
1042
+ end
1043
+
1044
+ def self.field_remappings
1045
+ @field_remappings = {}
1046
+ end
1047
+ end
1048
+
987
1049
  class Eps < ::Stripe::StripeObject
988
1050
  # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
989
1051
  attr_reader :bank
@@ -1251,6 +1313,16 @@ module Stripe
1251
1313
  end
1252
1314
  end
1253
1315
 
1316
+ class Merpay < ::Stripe::StripeObject
1317
+ def self.inner_class_types
1318
+ @inner_class_types = {}
1319
+ end
1320
+
1321
+ def self.field_remappings
1322
+ @field_remappings = {}
1323
+ end
1324
+ end
1325
+
1254
1326
  class Mobilepay < ::Stripe::StripeObject
1255
1327
  def self.inner_class_types
1256
1328
  @inner_class_types = {}
@@ -1788,6 +1860,8 @@ module Stripe
1788
1860
  end
1789
1861
  # Attribute for field acss_debit
1790
1862
  attr_reader :acss_debit
1863
+ # Attribute for field aeon_pay
1864
+ attr_reader :aeon_pay
1791
1865
  # Attribute for field affirm
1792
1866
  attr_reader :affirm
1793
1867
  # Attribute for field afterpay_clearpay
@@ -1802,6 +1876,8 @@ module Stripe
1802
1876
  attr_reader :amazon_pay
1803
1877
  # Attribute for field au_becs_debit
1804
1878
  attr_reader :au_becs_debit
1879
+ # Attribute for field au_pay
1880
+ attr_reader :au_pay
1805
1881
  # Attribute for field bacs_debit
1806
1882
  attr_reader :bacs_debit
1807
1883
  # Attribute for field bancontact
@@ -1832,6 +1908,8 @@ module Stripe
1832
1908
  attr_reader :customer_account
1833
1909
  # Attribute for field customer_balance
1834
1910
  attr_reader :customer_balance
1911
+ # Attribute for field dbarai
1912
+ attr_reader :dbarai
1835
1913
  # Attribute for field eps
1836
1914
  attr_reader :eps
1837
1915
  # Attribute for field fpx
@@ -1864,6 +1942,8 @@ module Stripe
1864
1942
  attr_reader :link
1865
1943
  # Attribute for field mb_way
1866
1944
  attr_reader :mb_way
1945
+ # Attribute for field merpay
1946
+ attr_reader :merpay
1867
1947
  # Attribute for field mobilepay
1868
1948
  attr_reader :mobilepay
1869
1949
  # Attribute for field multibanco
@@ -1944,12 +2024,14 @@ module Stripe
1944
2024
  def self.inner_class_types
1945
2025
  @inner_class_types = {
1946
2026
  acss_debit: AcssDebit,
2027
+ aeon_pay: AeonPay,
1947
2028
  affirm: Affirm,
1948
2029
  afterpay_clearpay: AfterpayClearpay,
1949
2030
  alipay: Alipay,
1950
2031
  alma: Alma,
1951
2032
  amazon_pay: AmazonPay,
1952
2033
  au_becs_debit: AuBecsDebit,
2034
+ au_pay: AuPay,
1953
2035
  bacs_debit: BacsDebit,
1954
2036
  bancontact: Bancontact,
1955
2037
  billie: Billie,
@@ -1963,6 +2045,7 @@ module Stripe
1963
2045
  cashapp: Cashapp,
1964
2046
  crypto: Crypto,
1965
2047
  customer_balance: CustomerBalance,
2048
+ dbarai: Dbarai,
1966
2049
  eps: Eps,
1967
2050
  fpx: Fpx,
1968
2051
  getflex: Getflex,
@@ -1979,6 +2062,7 @@ module Stripe
1979
2062
  kr_card: KrCard,
1980
2063
  link: Link,
1981
2064
  mb_way: MbWay,
2065
+ merpay: Merpay,
1982
2066
  mobilepay: Mobilepay,
1983
2067
  multibanco: Multibanco,
1984
2068
  naver_pay: NaverPay,
@@ -2,9 +2,12 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A coupon contains information about a percent-off or amount-off discount you
6
- # might want to apply to a customer. Coupons may be applied to [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices),
7
- # [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
5
+ # A coupon defines a fixed or custom discount. Fixed discounts take a percentage or amount off, while
6
+ # [custom coupons](https://docs.stripe.com/billing/subscriptions/script-coupons) use scripts to calculate discounts dynamically for subscriptions and invoices.
7
+ # You can apply coupons to customers' [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices),
8
+ # [Checkout Sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and other supported billing objects.
9
+ # The optional [applies_to.products](https://docs.stripe.com/api/coupons/object#coupon_object-applies_to-products) property limits which product line items are eligible for the discount, independently of where you apply the coupon.
10
+ # Coupons don't work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents).
8
11
  class Coupon < APIResource
9
12
  extend Stripe::APIOperations::Create
10
13
  include Stripe::APIOperations::Delete
@@ -37,9 +37,36 @@ module Stripe
37
37
  end
38
38
  end
39
39
 
40
+ class ReasonDetails < ::Stripe::StripeObject
41
+ class Other < ::Stripe::StripeObject
42
+ # A free-text description of the exemption reason.
43
+ attr_reader :reason_text
44
+
45
+ def self.inner_class_types
46
+ @inner_class_types = {}
47
+ end
48
+
49
+ def self.field_remappings
50
+ @field_remappings = {}
51
+ end
52
+ end
53
+ # Attribute for field other
54
+ attr_reader :other
55
+
56
+ def self.inner_class_types
57
+ @inner_class_types = { other: Other }
58
+ end
59
+
60
+ def self.field_remappings
61
+ @field_remappings = {}
62
+ end
63
+ end
64
+
40
65
  class Us < ::Stripe::StripeObject
41
66
  # Two-letter US state code (ISO 3166-2).
42
67
  attr_reader :state
68
+ # The group of tax codes this exemption applies to. Exemptions created without one have `all`.
69
+ attr_reader :tax_code_group
43
70
 
44
71
  def self.inner_class_types
45
72
  @inner_class_types = {}
@@ -71,11 +98,15 @@ module Stripe
71
98
  attr_reader :livemode
72
99
  # String representing the object's type. Objects of the same type share the same value.
73
100
  attr_reader :object
101
+ # The reason the customer is exempt.
102
+ attr_reader :reason
103
+ # Additional details about the exemption reason.
104
+ attr_reader :reason_details
74
105
  # Attribute for field us
75
106
  attr_reader :us
76
107
 
77
108
  def self.inner_class_types
78
- @inner_class_types = { ca: Ca, es: Es, us: Us }
109
+ @inner_class_types = { ca: Ca, es: Es, reason_details: ReasonDetails, us: Us }
79
110
  end
80
111
 
81
112
  def self.field_remappings
@@ -770,6 +770,9 @@ module Stripe
770
770
  end
771
771
 
772
772
  class SepaDebit < ::Stripe::StripeObject
773
+ # Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
774
+ attr_reader :target_date
775
+
773
776
  def self.inner_class_types
774
777
  @inner_class_types = {}
775
778
  end
@@ -138,6 +138,50 @@ module Stripe
138
138
  end
139
139
  end
140
140
 
141
+ class DisputeDetails < ::Stripe::StripeObject
142
+ class Reinstated < ::Stripe::StripeObject
143
+ # 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).
144
+ attr_reader :currency
145
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
146
+ attr_reader :value
147
+
148
+ def self.inner_class_types
149
+ @inner_class_types = {}
150
+ end
151
+
152
+ def self.field_remappings
153
+ @field_remappings = {}
154
+ end
155
+ end
156
+
157
+ class Withdrawn < ::Stripe::StripeObject
158
+ # 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).
159
+ attr_reader :currency
160
+ # A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
161
+ attr_reader :value
162
+
163
+ def self.inner_class_types
164
+ @inner_class_types = {}
165
+ end
166
+
167
+ def self.field_remappings
168
+ @field_remappings = {}
169
+ end
170
+ end
171
+ # Total amounts reinstated across all disputes, keyed by currency, with each value containing the total for that currency. Withdrawals are not subtracted from these totals.
172
+ attr_reader :reinstated
173
+ # Total amounts withdrawn across all disputes, keyed by currency, with each value containing the total for that currency. Reinstatements are not subtracted from these totals.
174
+ attr_reader :withdrawn
175
+
176
+ def self.inner_class_types
177
+ @inner_class_types = { reinstated: Reinstated, withdrawn: Withdrawn }
178
+ end
179
+
180
+ def self.field_remappings
181
+ @field_remappings = {}
182
+ end
183
+ end
184
+
141
185
  class PaymentMethodDetails < ::Stripe::StripeObject
142
186
  class AchCreditTransfer < ::Stripe::StripeObject
143
187
  # Account number to transfer funds to.
@@ -206,6 +250,16 @@ module Stripe
206
250
  end
207
251
  end
208
252
 
253
+ class AeonPay < ::Stripe::StripeObject
254
+ def self.inner_class_types
255
+ @inner_class_types = {}
256
+ end
257
+
258
+ def self.field_remappings
259
+ @field_remappings = {}
260
+ end
261
+ end
262
+
209
263
  class Affirm < ::Stripe::StripeObject
210
264
  # ID of the location that this reader is assigned to.
211
265
  attr_reader :location
@@ -356,6 +410,16 @@ module Stripe
356
410
  end
357
411
  end
358
412
 
413
+ class AuPay < ::Stripe::StripeObject
414
+ def self.inner_class_types
415
+ @inner_class_types = {}
416
+ end
417
+
418
+ def self.field_remappings
419
+ @field_remappings = {}
420
+ end
421
+ end
422
+
359
423
  class BacsDebit < ::Stripe::StripeObject
360
424
  # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
361
425
  attr_reader :expected_debit_date
@@ -701,6 +765,35 @@ module Stripe
701
765
  end
702
766
 
703
767
  class CardPresent < ::Stripe::StripeObject
768
+ class Fleet < ::Stripe::StripeObject
769
+ class TransactionDatum < ::Stripe::StripeObject
770
+ # The prompt that the Terminal SDK displays to collect this Fleet value.
771
+ attr_reader :prompt
772
+ # Whether the collected value is printed on the receipt.
773
+ attr_reader :receipt_behavior
774
+ # The value collected for this Fleet prompt.
775
+ attr_reader :value
776
+
777
+ def self.inner_class_types
778
+ @inner_class_types = {}
779
+ end
780
+
781
+ def self.field_remappings
782
+ @field_remappings = {}
783
+ end
784
+ end
785
+ # Fleet prompts and values collected for this transaction.
786
+ attr_reader :transaction_data
787
+
788
+ def self.inner_class_types
789
+ @inner_class_types = { transaction_data: TransactionDatum }
790
+ end
791
+
792
+ def self.field_remappings
793
+ @field_remappings = {}
794
+ end
795
+ end
796
+
704
797
  class Multicapture < ::Stripe::StripeObject
705
798
  # Indicates whether or not multiple captures are supported.
706
799
  attr_reader :status
@@ -807,6 +900,8 @@ module Stripe
807
900
  #
808
901
  # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
809
902
  attr_reader :fingerprint
903
+ # Attribute for field fleet
904
+ attr_reader :fleet
810
905
  # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
811
906
  attr_reader :funding
812
907
  # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
@@ -850,6 +945,7 @@ module Stripe
850
945
 
851
946
  def self.inner_class_types
852
947
  @inner_class_types = {
948
+ fleet: Fleet,
853
949
  multicapture: Multicapture,
854
950
  offline: Offline,
855
951
  reauthorization: Reauthorization,
@@ -938,6 +1034,16 @@ module Stripe
938
1034
  end
939
1035
  end
940
1036
 
1037
+ class Dbarai < ::Stripe::StripeObject
1038
+ def self.inner_class_types
1039
+ @inner_class_types = {}
1040
+ end
1041
+
1042
+ def self.field_remappings
1043
+ @field_remappings = {}
1044
+ end
1045
+ end
1046
+
941
1047
  class Eps < ::Stripe::StripeObject
942
1048
  # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`
943
1049
  attr_reader :bank
@@ -1323,6 +1429,16 @@ module Stripe
1323
1429
  end
1324
1430
  end
1325
1431
 
1432
+ class Merpay < ::Stripe::StripeObject
1433
+ def self.inner_class_types
1434
+ @inner_class_types = {}
1435
+ end
1436
+
1437
+ def self.field_remappings
1438
+ @field_remappings = {}
1439
+ end
1440
+ end
1441
+
1326
1442
  class Mobilepay < ::Stripe::StripeObject
1327
1443
  class Card < ::Stripe::StripeObject
1328
1444
  # Brand of the card used in the transaction
@@ -1602,6 +1718,8 @@ module Stripe
1602
1718
  end
1603
1719
 
1604
1720
  class Paypay < ::Stripe::StripeObject
1721
+ # Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
1722
+ attr_reader :fingerprint
1605
1723
  # ID of the multi-use Mandate created by, or used to make, this PayPay payment.
1606
1724
  attr_reader :mandate
1607
1725
 
@@ -2076,6 +2194,8 @@ module Stripe
2076
2194
  attr_reader :ach_debit
2077
2195
  # Attribute for field acss_debit
2078
2196
  attr_reader :acss_debit
2197
+ # Attribute for field aeon_pay
2198
+ attr_reader :aeon_pay
2079
2199
  # Attribute for field affirm
2080
2200
  attr_reader :affirm
2081
2201
  # Attribute for field afterpay_clearpay
@@ -2088,6 +2208,8 @@ module Stripe
2088
2208
  attr_reader :amazon_pay
2089
2209
  # Attribute for field au_becs_debit
2090
2210
  attr_reader :au_becs_debit
2211
+ # Attribute for field au_pay
2212
+ attr_reader :au_pay
2091
2213
  # Attribute for field bacs_debit
2092
2214
  attr_reader :bacs_debit
2093
2215
  # Attribute for field bancontact
@@ -2118,6 +2240,8 @@ module Stripe
2118
2240
  attr_reader :custom
2119
2241
  # Attribute for field customer_balance
2120
2242
  attr_reader :customer_balance
2243
+ # Attribute for field dbarai
2244
+ attr_reader :dbarai
2121
2245
  # Attribute for field eps
2122
2246
  attr_reader :eps
2123
2247
  # Attribute for field fpx
@@ -2150,6 +2274,8 @@ module Stripe
2150
2274
  attr_reader :link
2151
2275
  # Attribute for field mb_way
2152
2276
  attr_reader :mb_way
2277
+ # Attribute for field merpay
2278
+ attr_reader :merpay
2153
2279
  # Attribute for field mobilepay
2154
2280
  attr_reader :mobilepay
2155
2281
  # Attribute for field momo
@@ -2242,12 +2368,14 @@ module Stripe
2242
2368
  ach_credit_transfer: AchCreditTransfer,
2243
2369
  ach_debit: AchDebit,
2244
2370
  acss_debit: AcssDebit,
2371
+ aeon_pay: AeonPay,
2245
2372
  affirm: Affirm,
2246
2373
  afterpay_clearpay: AfterpayClearpay,
2247
2374
  alipay: Alipay,
2248
2375
  alma: Alma,
2249
2376
  amazon_pay: AmazonPay,
2250
2377
  au_becs_debit: AuBecsDebit,
2378
+ au_pay: AuPay,
2251
2379
  bacs_debit: BacsDebit,
2252
2380
  bancontact: Bancontact,
2253
2381
  billie: Billie,
@@ -2262,6 +2390,7 @@ module Stripe
2262
2390
  crypto: Crypto,
2263
2391
  custom: Custom,
2264
2392
  customer_balance: CustomerBalance,
2393
+ dbarai: Dbarai,
2265
2394
  eps: Eps,
2266
2395
  fpx: Fpx,
2267
2396
  getflex: Getflex,
@@ -2278,6 +2407,7 @@ module Stripe
2278
2407
  kr_card: KrCard,
2279
2408
  link: Link,
2280
2409
  mb_way: MbWay,
2410
+ merpay: Merpay,
2281
2411
  mobilepay: Mobilepay,
2282
2412
  momo: Momo,
2283
2413
  multibanco: Multibanco,
@@ -2467,6 +2597,8 @@ module Stripe
2467
2597
  attr_reader :customer_presence
2468
2598
  # An arbitrary string attached to the object. Often useful for displaying to users.
2469
2599
  attr_reader :description
2600
+ # Summary information about disputes associated with this Payment Attempt Record.
2601
+ attr_reader :dispute_details
2470
2602
  # Unique identifier for the object.
2471
2603
  attr_reader :id
2472
2604
  # If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
@@ -2666,6 +2798,7 @@ module Stripe
2666
2798
  amount_refunded: AmountRefunded,
2667
2799
  amount_requested: AmountRequested,
2668
2800
  customer_details: CustomerDetails,
2801
+ dispute_details: DisputeDetails,
2669
2802
  payment_method_details: PaymentMethodDetails,
2670
2803
  processor_details: ProcessorDetails,
2671
2804
  shipping_details: ShippingDetails,
@@ -1521,7 +1521,7 @@ module Stripe
1521
1521
  end
1522
1522
 
1523
1523
  class VerifyWithMicrodeposits < ::Stripe::StripeObject
1524
- # The timestamp when the microdeposits are expected to land.
1524
+ # The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
1525
1525
  attr_reader :arrival_date
1526
1526
  # The URL for the hosted verification page, which allows customers to verify their bank account.
1527
1527
  attr_reader :hosted_verification_url
@@ -3337,6 +3337,19 @@ module Stripe
3337
3337
  end
3338
3338
 
3339
3339
  class BacsDebit < ::Stripe::StripeObject
3340
+ class FinancialConnections < ::Stripe::StripeObject
3341
+ # Attribute for field return_url
3342
+ attr_reader :return_url
3343
+
3344
+ def self.inner_class_types
3345
+ @inner_class_types = {}
3346
+ end
3347
+
3348
+ def self.field_remappings
3349
+ @field_remappings = {}
3350
+ end
3351
+ end
3352
+
3340
3353
  class MandateOptions < ::Stripe::StripeObject
3341
3354
  # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
3342
3355
  attr_reader :reference_prefix
@@ -3349,6 +3362,8 @@ module Stripe
3349
3362
  @field_remappings = {}
3350
3363
  end
3351
3364
  end
3365
+ # Attribute for field financial_connections
3366
+ attr_reader :financial_connections
3352
3367
  # Attribute for field mandate_options
3353
3368
  attr_reader :mandate_options
3354
3369
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -3365,7 +3380,10 @@ module Stripe
3365
3380
  attr_reader :verification_method
3366
3381
 
3367
3382
  def self.inner_class_types
3368
- @inner_class_types = { mandate_options: MandateOptions }
3383
+ @inner_class_types = {
3384
+ financial_connections: FinancialConnections,
3385
+ mandate_options: MandateOptions,
3386
+ }
3369
3387
  end
3370
3388
 
3371
3389
  def self.field_remappings
@@ -3620,6 +3638,43 @@ module Stripe
3620
3638
  end
3621
3639
  end
3622
3640
 
3641
+ class PaymentDetails < ::Stripe::StripeObject
3642
+ class MoneyServices < ::Stripe::StripeObject
3643
+ class AccountFunding < ::Stripe::StripeObject
3644
+ # The category of digital asset being acquired through this account funding transaction.
3645
+ attr_reader :digital_asset_category
3646
+
3647
+ def self.inner_class_types
3648
+ @inner_class_types = {}
3649
+ end
3650
+
3651
+ def self.field_remappings
3652
+ @field_remappings = {}
3653
+ end
3654
+ end
3655
+ # Attribute for field account_funding
3656
+ attr_reader :account_funding
3657
+
3658
+ def self.inner_class_types
3659
+ @inner_class_types = { account_funding: AccountFunding }
3660
+ end
3661
+
3662
+ def self.field_remappings
3663
+ @field_remappings = {}
3664
+ end
3665
+ end
3666
+ # Attribute for field money_services
3667
+ attr_reader :money_services
3668
+
3669
+ def self.inner_class_types
3670
+ @inner_class_types = { money_services: MoneyServices }
3671
+ end
3672
+
3673
+ def self.field_remappings
3674
+ @field_remappings = {}
3675
+ end
3676
+ end
3677
+
3623
3678
  class StatementDetails < ::Stripe::StripeObject
3624
3679
  class Address < ::Stripe::StripeObject
3625
3680
  # City, district, suburb, town, or village.
@@ -3672,6 +3727,8 @@ module Stripe
3672
3727
  attr_reader :mandate_options
3673
3728
  # Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
3674
3729
  attr_reader :network
3730
+ # Attribute for field payment_details
3731
+ attr_reader :payment_details
3675
3732
  # Indicates whether Stripe may synchronously request a real-time card account update for this confirmation. `if_available` allows the update; `never` opts out. Defaults to `if_available` and is omitted from the response unless explicitly set on this confirmation. This does not affect batch Card Account Updater.
3676
3733
  attr_reader :request_card_account_update
3677
3734
  # Request ability to [decrement the authorization](https://docs.stripe.com/payments/decremental-authorization) for this PaymentIntent.
@@ -3716,6 +3773,7 @@ module Stripe
3716
3773
  capture_delay: CaptureDelay,
3717
3774
  installments: Installments,
3718
3775
  mandate_options: MandateOptions,
3776
+ payment_details: PaymentDetails,
3719
3777
  statement_details: StatementDetails,
3720
3778
  }
3721
3779
  end
@@ -3795,6 +3853,43 @@ module Stripe
3795
3853
  end
3796
3854
  end
3797
3855
 
3856
+ class PaymentDetails < ::Stripe::StripeObject
3857
+ class MoneyServices < ::Stripe::StripeObject
3858
+ class AccountFunding < ::Stripe::StripeObject
3859
+ # The category of digital asset being acquired through this account funding transaction.
3860
+ attr_reader :digital_asset_category
3861
+
3862
+ def self.inner_class_types
3863
+ @inner_class_types = {}
3864
+ end
3865
+
3866
+ def self.field_remappings
3867
+ @field_remappings = {}
3868
+ end
3869
+ end
3870
+ # Attribute for field account_funding
3871
+ attr_reader :account_funding
3872
+
3873
+ def self.inner_class_types
3874
+ @inner_class_types = { account_funding: AccountFunding }
3875
+ end
3876
+
3877
+ def self.field_remappings
3878
+ @field_remappings = {}
3879
+ end
3880
+ end
3881
+ # Attribute for field money_services
3882
+ attr_reader :money_services
3883
+
3884
+ def self.inner_class_types
3885
+ @inner_class_types = { money_services: MoneyServices }
3886
+ end
3887
+
3888
+ def self.field_remappings
3889
+ @field_remappings = {}
3890
+ end
3891
+ end
3892
+
3798
3893
  class Routing < ::Stripe::StripeObject
3799
3894
  # Requested routing priority
3800
3895
  attr_reader :requested_priority
@@ -3819,6 +3914,8 @@ module Stripe
3819
3914
  attr_reader :capture_method
3820
3915
  # Fleet prompting data for this payment.
3821
3916
  attr_reader :fleet
3917
+ # Attribute for field payment_details
3918
+ attr_reader :payment_details
3822
3919
  # Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
3823
3920
  attr_reader :request_extended_authorization
3824
3921
  # Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
@@ -3835,6 +3932,7 @@ module Stripe
3835
3932
  aade_data: AadeData,
3836
3933
  capture_delay: CaptureDelay,
3837
3934
  fleet: Fleet,
3935
+ payment_details: PaymentDetails,
3838
3936
  routing: Routing,
3839
3937
  }
3840
3938
  end