stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +28 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  6. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  11. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  15. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  16. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  17. data/lib/stripe/object_types.rb +5 -0
  18. data/lib/stripe/params/account_session_create_params.rb +200 -0
  19. data/lib/stripe/params/checkout/session_create_params.rb +46 -1
  20. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  21. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  22. data/lib/stripe/params/customer_update_params.rb +55 -0
  23. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  24. data/lib/stripe/params/invoice_create_params.rb +8 -1
  25. data/lib/stripe/params/invoice_update_params.rb +8 -1
  26. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
  27. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  28. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  31. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  32. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  33. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  34. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  35. data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
  36. data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
  37. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  39. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  40. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  41. data/lib/stripe/params/quote_create_params.rb +1 -1
  42. data/lib/stripe/params/quote_update_params.rb +1 -1
  43. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
  44. data/lib/stripe/params/refund_create_params.rb +4 -0
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
  46. data/lib/stripe/params/setup_intent_create_params.rb +50 -1
  47. data/lib/stripe/params/setup_intent_update_params.rb +34 -1
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  49. data/lib/stripe/params/subscription_create_params.rb +4 -0
  50. data/lib/stripe/params/subscription_list_params.rb +5 -1
  51. data/lib/stripe/params/subscription_update_params.rb +4 -0
  52. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  53. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  54. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  55. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  56. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  57. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  58. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  59. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  60. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  61. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  62. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  65. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  66. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  67. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  68. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  69. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  70. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  71. data/lib/stripe/params.rb +27 -0
  72. data/lib/stripe/resources/account_session.rb +81 -0
  73. data/lib/stripe/resources/apps/install.rb +1 -1
  74. data/lib/stripe/resources/balance_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +373 -5
  76. data/lib/stripe/resources/checkout/session.rb +32 -0
  77. data/lib/stripe/resources/confirmation_token.rb +103 -3
  78. data/lib/stripe/resources/coupon.rb +6 -3
  79. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  80. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  81. data/lib/stripe/resources/invoice.rb +3 -0
  82. data/lib/stripe/resources/mandate.rb +16 -0
  83. data/lib/stripe/resources/payment_attempt_record.rb +151 -2
  84. data/lib/stripe/resources/payment_intent.rb +126 -2
  85. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  86. data/lib/stripe/resources/payment_method.rb +103 -3
  87. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  88. data/lib/stripe/resources/payment_record.rb +151 -2
  89. data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
  90. data/lib/stripe/resources/refund.rb +38 -0
  91. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  92. data/lib/stripe/resources/reserve/hold.rb +2 -2
  93. data/lib/stripe/resources/reserve/plan.rb +1 -1
  94. data/lib/stripe/resources/reserve/release.rb +1 -1
  95. data/lib/stripe/resources/setup_attempt.rb +21 -2
  96. data/lib/stripe/resources/setup_intent.rb +38 -2
  97. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  98. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  99. data/lib/stripe/resources/subscription.rb +3 -1
  100. data/lib/stripe/resources/tax/certificate.rb +81 -0
  101. data/lib/stripe/resources/tax/form.rb +11 -0
  102. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  103. data/lib/stripe/resources/terminal/reader.rb +18 -1
  104. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  105. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  106. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  107. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  108. data/lib/stripe/resources/v2/core/event.rb +1 -1
  109. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  110. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  111. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  112. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  113. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  114. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  116. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  117. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  118. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  119. data/lib/stripe/resources.rb +46 -0
  120. data/lib/stripe/services/apps/install_service.rb +1 -1
  121. data/lib/stripe/services/checkout/session_service.rb +2 -0
  122. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  123. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  124. data/lib/stripe/services/reserve/release_service.rb +2 -2
  125. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  126. data/lib/stripe/services/tax/form_service.rb +11 -0
  127. data/lib/stripe/services/tax_service.rb +2 -1
  128. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  129. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  130. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  131. data/lib/stripe/services/v2/extend_service.rb +2 -1
  132. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  133. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  134. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  135. data/lib/stripe/services.rb +11 -0
  136. data/lib/stripe/stripe_event_notification_handler.rb +28 -0
  137. data/lib/stripe/stripe_service.rb +13 -9
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe/webhook.rb +68 -3
  140. data/lib/stripe/workload_identity_exchange.rb +2 -2
  141. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  142. data/rbi/stripe.rbi +5856 -213
  143. metadata +32 -2
@@ -40,6 +40,16 @@ module Stripe
40
40
  end
41
41
  end
42
42
 
43
+ class AeonPay < ::Stripe::StripeObject
44
+ def self.inner_class_types
45
+ @inner_class_types = {}
46
+ end
47
+
48
+ def self.field_remappings
49
+ @field_remappings = {}
50
+ end
51
+ end
52
+
43
53
  class Affirm < ::Stripe::StripeObject
44
54
  def self.inner_class_types
45
55
  @inner_class_types = {}
@@ -107,6 +117,16 @@ module Stripe
107
117
  end
108
118
  end
109
119
 
120
+ class AuPay < ::Stripe::StripeObject
121
+ def self.inner_class_types
122
+ @inner_class_types = {}
123
+ end
124
+
125
+ def self.field_remappings
126
+ @field_remappings = {}
127
+ end
128
+ end
129
+
110
130
  class BacsDebit < ::Stripe::StripeObject
111
131
  # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
112
132
  attr_reader :fingerprint
@@ -243,9 +263,9 @@ module Stripe
243
263
  end
244
264
 
245
265
  class Checks < ::Stripe::StripeObject
246
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
266
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
247
267
  attr_reader :address_line1_check
248
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
268
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
249
269
  attr_reader :address_postal_code_check
250
270
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
251
271
  attr_reader :cvc_check
@@ -262,6 +282,35 @@ module Stripe
262
282
  class GeneratedFrom < ::Stripe::StripeObject
263
283
  class PaymentMethodDetails < ::Stripe::StripeObject
264
284
  class CardPresent < ::Stripe::StripeObject
285
+ class Fleet < ::Stripe::StripeObject
286
+ class TransactionDatum < ::Stripe::StripeObject
287
+ # The prompt that the Terminal SDK displays to collect this Fleet value.
288
+ attr_reader :prompt
289
+ # Whether the collected value is printed on the receipt.
290
+ attr_reader :receipt_behavior
291
+ # The value collected for this Fleet prompt.
292
+ attr_reader :value
293
+
294
+ def self.inner_class_types
295
+ @inner_class_types = {}
296
+ end
297
+
298
+ def self.field_remappings
299
+ @field_remappings = {}
300
+ end
301
+ end
302
+ # Fleet prompts and values collected for this transaction.
303
+ attr_reader :transaction_data
304
+
305
+ def self.inner_class_types
306
+ @inner_class_types = { transaction_data: TransactionDatum }
307
+ end
308
+
309
+ def self.field_remappings
310
+ @field_remappings = {}
311
+ end
312
+ end
313
+
265
314
  class Multicapture < ::Stripe::StripeObject
266
315
  # Indicates whether or not multiple captures are supported.
267
316
  attr_reader :status
@@ -304,6 +353,20 @@ module Stripe
304
353
  end
305
354
 
306
355
  class Receipt < ::Stripe::StripeObject
356
+ class CardholderMessage < ::Stripe::StripeObject
357
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
358
+ attr_reader :destinations
359
+ # The message from the card issuer, such as the remaining balance.
360
+ attr_reader :value
361
+
362
+ def self.inner_class_types
363
+ @inner_class_types = {}
364
+ end
365
+
366
+ def self.field_remappings
367
+ @field_remappings = {}
368
+ end
369
+ end
307
370
  # The type of account being debited or credited
308
371
  attr_reader :account_type
309
372
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -314,6 +377,8 @@ module Stripe
314
377
  attr_reader :authorization_code
315
378
  # EMV tag 8A. A code returned by the card issuer.
316
379
  attr_reader :authorization_response_code
380
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
381
+ attr_reader :cardholder_message
317
382
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
318
383
  attr_reader :cardholder_verification_method
319
384
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -324,7 +389,7 @@ module Stripe
324
389
  attr_reader :transaction_status_information
325
390
 
326
391
  def self.inner_class_types
327
- @inner_class_types = {}
392
+ @inner_class_types = { cardholder_message: CardholderMessage }
328
393
  end
329
394
 
330
395
  def self.field_remappings
@@ -368,6 +433,8 @@ module Stripe
368
433
  #
369
434
  # *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.*
370
435
  attr_reader :fingerprint
436
+ # Attribute for field fleet
437
+ attr_reader :fleet
371
438
  # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
372
439
  attr_reader :funding
373
440
  # 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.
@@ -411,6 +478,7 @@ module Stripe
411
478
 
412
479
  def self.inner_class_types
413
480
  @inner_class_types = {
481
+ fleet: Fleet,
414
482
  multicapture: Multicapture,
415
483
  offline: Offline,
416
484
  reauthorization: Reauthorization,
@@ -923,6 +991,16 @@ module Stripe
923
991
  end
924
992
  end
925
993
 
994
+ class Dbarai < ::Stripe::StripeObject
995
+ def self.inner_class_types
996
+ @inner_class_types = {}
997
+ end
998
+
999
+ def self.field_remappings
1000
+ @field_remappings = {}
1001
+ end
1002
+ end
1003
+
926
1004
  class Eps < ::Stripe::StripeObject
927
1005
  # 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`.
928
1006
  attr_reader :bank
@@ -1190,6 +1268,16 @@ module Stripe
1190
1268
  end
1191
1269
  end
1192
1270
 
1271
+ class Merpay < ::Stripe::StripeObject
1272
+ def self.inner_class_types
1273
+ @inner_class_types = {}
1274
+ end
1275
+
1276
+ def self.field_remappings
1277
+ @field_remappings = {}
1278
+ end
1279
+ end
1280
+
1193
1281
  class Mobilepay < ::Stripe::StripeObject
1194
1282
  def self.inner_class_types
1195
1283
  @inner_class_types = {}
@@ -1753,6 +1841,8 @@ module Stripe
1753
1841
  end
1754
1842
  # Attribute for field acss_debit
1755
1843
  attr_reader :acss_debit
1844
+ # Attribute for field aeon_pay
1845
+ attr_reader :aeon_pay
1756
1846
  # Attribute for field affirm
1757
1847
  attr_reader :affirm
1758
1848
  # Attribute for field afterpay_clearpay
@@ -1767,6 +1857,8 @@ module Stripe
1767
1857
  attr_reader :amazon_pay
1768
1858
  # Attribute for field au_becs_debit
1769
1859
  attr_reader :au_becs_debit
1860
+ # Attribute for field au_pay
1861
+ attr_reader :au_pay
1770
1862
  # Attribute for field bacs_debit
1771
1863
  attr_reader :bacs_debit
1772
1864
  # Attribute for field bancontact
@@ -1801,6 +1893,8 @@ module Stripe
1801
1893
  attr_reader :customer_account
1802
1894
  # Attribute for field customer_balance
1803
1895
  attr_reader :customer_balance
1896
+ # Attribute for field dbarai
1897
+ attr_reader :dbarai
1804
1898
  # Attribute for field eps
1805
1899
  attr_reader :eps
1806
1900
  # Attribute for field fpx
@@ -1839,6 +1933,8 @@ module Stripe
1839
1933
  attr_reader :livemode
1840
1934
  # Attribute for field mb_way
1841
1935
  attr_reader :mb_way
1936
+ # Attribute for field merpay
1937
+ attr_reader :merpay
1842
1938
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1843
1939
  attr_reader :metadata
1844
1940
  # Attribute for field mobilepay
@@ -2035,12 +2131,14 @@ module Stripe
2035
2131
  def self.inner_class_types
2036
2132
  @inner_class_types = {
2037
2133
  acss_debit: AcssDebit,
2134
+ aeon_pay: AeonPay,
2038
2135
  affirm: Affirm,
2039
2136
  afterpay_clearpay: AfterpayClearpay,
2040
2137
  alipay: Alipay,
2041
2138
  alma: Alma,
2042
2139
  amazon_pay: AmazonPay,
2043
2140
  au_becs_debit: AuBecsDebit,
2141
+ au_pay: AuPay,
2044
2142
  bacs_debit: BacsDebit,
2045
2143
  bancontact: Bancontact,
2046
2144
  billie: Billie,
@@ -2055,6 +2153,7 @@ module Stripe
2055
2153
  crypto: Crypto,
2056
2154
  custom: Custom,
2057
2155
  customer_balance: CustomerBalance,
2156
+ dbarai: Dbarai,
2058
2157
  eps: Eps,
2059
2158
  fpx: Fpx,
2060
2159
  getflex: Getflex,
@@ -2071,6 +2170,7 @@ module Stripe
2071
2170
  kr_card: KrCard,
2072
2171
  link: Link,
2073
2172
  mb_way: MbWay,
2173
+ merpay: Merpay,
2074
2174
  mobilepay: Mobilepay,
2075
2175
  multibanco: Multibanco,
2076
2176
  naver_pay: NaverPay,
@@ -1545,6 +1545,37 @@ module Stripe
1545
1545
  end
1546
1546
  end
1547
1547
 
1548
+ class RakutenPay < ::Stripe::StripeObject
1549
+ class DisplayPreference < ::Stripe::StripeObject
1550
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1551
+ attr_reader :overridable
1552
+ # The account's display preference.
1553
+ attr_reader :preference
1554
+ # The effective display preference value.
1555
+ attr_reader :value
1556
+
1557
+ def self.inner_class_types
1558
+ @inner_class_types = {}
1559
+ end
1560
+
1561
+ def self.field_remappings
1562
+ @field_remappings = {}
1563
+ end
1564
+ end
1565
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1566
+ attr_reader :available
1567
+ # Attribute for field display_preference
1568
+ attr_reader :display_preference
1569
+
1570
+ def self.inner_class_types
1571
+ @inner_class_types = { display_preference: DisplayPreference }
1572
+ end
1573
+
1574
+ def self.field_remappings
1575
+ @field_remappings = {}
1576
+ end
1577
+ end
1578
+
1548
1579
  class RevolutPay < ::Stripe::StripeObject
1549
1580
  class DisplayPreference < ::Stripe::StripeObject
1550
1581
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -1855,6 +1886,37 @@ module Stripe
1855
1886
  end
1856
1887
  end
1857
1888
 
1889
+ class TossPay < ::Stripe::StripeObject
1890
+ class DisplayPreference < ::Stripe::StripeObject
1891
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1892
+ attr_reader :overridable
1893
+ # The account's display preference.
1894
+ attr_reader :preference
1895
+ # The effective display preference value.
1896
+ attr_reader :value
1897
+
1898
+ def self.inner_class_types
1899
+ @inner_class_types = {}
1900
+ end
1901
+
1902
+ def self.field_remappings
1903
+ @field_remappings = {}
1904
+ end
1905
+ end
1906
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1907
+ attr_reader :available
1908
+ # Attribute for field display_preference
1909
+ attr_reader :display_preference
1910
+
1911
+ def self.inner_class_types
1912
+ @inner_class_types = { display_preference: DisplayPreference }
1913
+ end
1914
+
1915
+ def self.field_remappings
1916
+ @field_remappings = {}
1917
+ end
1918
+ end
1919
+
1858
1920
  class Twint < ::Stripe::StripeObject
1859
1921
  class DisplayPreference < ::Stripe::StripeObject
1860
1922
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -2154,6 +2216,8 @@ module Stripe
2154
2216
  attr_reader :promptpay
2155
2217
  # Attribute for field qris
2156
2218
  attr_reader :qris
2219
+ # Attribute for field rakuten_pay
2220
+ attr_reader :rakuten_pay
2157
2221
  # Attribute for field revolut_pay
2158
2222
  attr_reader :revolut_pay
2159
2223
  # Attribute for field samsung_pay
@@ -2174,6 +2238,8 @@ module Stripe
2174
2238
  attr_reader :sunbit
2175
2239
  # Attribute for field swish
2176
2240
  attr_reader :swish
2241
+ # Attribute for field toss_pay
2242
+ attr_reader :toss_pay
2177
2243
  # Attribute for field twint
2178
2244
  attr_reader :twint
2179
2245
  # Attribute for field upi
@@ -2268,6 +2334,7 @@ module Stripe
2268
2334
  pix: Pix,
2269
2335
  promptpay: Promptpay,
2270
2336
  qris: Qris,
2337
+ rakuten_pay: RakutenPay,
2271
2338
  revolut_pay: RevolutPay,
2272
2339
  samsung_pay: SamsungPay,
2273
2340
  satispay: Satispay,
@@ -2278,6 +2345,7 @@ module Stripe
2278
2345
  sofort: Sofort,
2279
2346
  sunbit: Sunbit,
2280
2347
  swish: Swish,
2348
+ toss_pay: TossPay,
2281
2349
  twint: Twint,
2282
2350
  upi: Upi,
2283
2351
  us_bank_account: UsBankAccount,
@@ -139,6 +139,50 @@ module Stripe
139
139
  end
140
140
  end
141
141
 
142
+ class DisputeDetails < ::Stripe::StripeObject
143
+ class Reinstated < ::Stripe::StripeObject
144
+ # 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).
145
+ attr_reader :currency
146
+ # 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.
147
+ attr_reader :value
148
+
149
+ def self.inner_class_types
150
+ @inner_class_types = {}
151
+ end
152
+
153
+ def self.field_remappings
154
+ @field_remappings = {}
155
+ end
156
+ end
157
+
158
+ class Withdrawn < ::Stripe::StripeObject
159
+ # 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).
160
+ attr_reader :currency
161
+ # 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.
162
+ attr_reader :value
163
+
164
+ def self.inner_class_types
165
+ @inner_class_types = {}
166
+ end
167
+
168
+ def self.field_remappings
169
+ @field_remappings = {}
170
+ end
171
+ end
172
+ # 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.
173
+ attr_reader :reinstated
174
+ # 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.
175
+ attr_reader :withdrawn
176
+
177
+ def self.inner_class_types
178
+ @inner_class_types = { reinstated: Reinstated, withdrawn: Withdrawn }
179
+ end
180
+
181
+ def self.field_remappings
182
+ @field_remappings = {}
183
+ end
184
+ end
185
+
142
186
  class PaymentMethodDetails < ::Stripe::StripeObject
143
187
  class AchCreditTransfer < ::Stripe::StripeObject
144
188
  # Account number to transfer funds to.
@@ -207,6 +251,16 @@ module Stripe
207
251
  end
208
252
  end
209
253
 
254
+ class AeonPay < ::Stripe::StripeObject
255
+ def self.inner_class_types
256
+ @inner_class_types = {}
257
+ end
258
+
259
+ def self.field_remappings
260
+ @field_remappings = {}
261
+ end
262
+ end
263
+
210
264
  class Affirm < ::Stripe::StripeObject
211
265
  # ID of the location that this reader is assigned to.
212
266
  attr_reader :location
@@ -357,6 +411,16 @@ module Stripe
357
411
  end
358
412
  end
359
413
 
414
+ class AuPay < ::Stripe::StripeObject
415
+ def self.inner_class_types
416
+ @inner_class_types = {}
417
+ end
418
+
419
+ def self.field_remappings
420
+ @field_remappings = {}
421
+ end
422
+ end
423
+
360
424
  class BacsDebit < ::Stripe::StripeObject
361
425
  # Estimated date to debit the customer's bank account. A date string in YYYY-MM-DD format.
362
426
  attr_reader :expected_debit_date
@@ -504,7 +568,7 @@ module Stripe
504
568
  class Checks < ::Stripe::StripeObject
505
569
  # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
506
570
  attr_reader :address_line1_check
507
- # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
571
+ # If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
508
572
  attr_reader :address_postal_code_check
509
573
  # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
510
574
  attr_reader :cvc_check
@@ -702,6 +766,35 @@ module Stripe
702
766
  end
703
767
 
704
768
  class CardPresent < ::Stripe::StripeObject
769
+ class Fleet < ::Stripe::StripeObject
770
+ class TransactionDatum < ::Stripe::StripeObject
771
+ # The prompt that the Terminal SDK displays to collect this Fleet value.
772
+ attr_reader :prompt
773
+ # Whether the collected value is printed on the receipt.
774
+ attr_reader :receipt_behavior
775
+ # The value collected for this Fleet prompt.
776
+ attr_reader :value
777
+
778
+ def self.inner_class_types
779
+ @inner_class_types = {}
780
+ end
781
+
782
+ def self.field_remappings
783
+ @field_remappings = {}
784
+ end
785
+ end
786
+ # Fleet prompts and values collected for this transaction.
787
+ attr_reader :transaction_data
788
+
789
+ def self.inner_class_types
790
+ @inner_class_types = { transaction_data: TransactionDatum }
791
+ end
792
+
793
+ def self.field_remappings
794
+ @field_remappings = {}
795
+ end
796
+ end
797
+
705
798
  class Multicapture < ::Stripe::StripeObject
706
799
  # Indicates whether or not multiple captures are supported.
707
800
  attr_reader :status
@@ -744,6 +837,20 @@ module Stripe
744
837
  end
745
838
 
746
839
  class Receipt < ::Stripe::StripeObject
840
+ class CardholderMessage < ::Stripe::StripeObject
841
+ # Where the message must be printed or displayed. An empty list means the message must not be shown.
842
+ attr_reader :destinations
843
+ # The message from the card issuer, such as the remaining balance.
844
+ attr_reader :value
845
+
846
+ def self.inner_class_types
847
+ @inner_class_types = {}
848
+ end
849
+
850
+ def self.field_remappings
851
+ @field_remappings = {}
852
+ end
853
+ end
747
854
  # The type of account being debited or credited
748
855
  attr_reader :account_type
749
856
  # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
@@ -754,6 +861,8 @@ module Stripe
754
861
  attr_reader :authorization_code
755
862
  # EMV tag 8A. A code returned by the card issuer.
756
863
  attr_reader :authorization_response_code
864
+ # A message from the card issuer to show to the cardholder, and where it must be shown.
865
+ attr_reader :cardholder_message
757
866
  # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
758
867
  attr_reader :cardholder_verification_method
759
868
  # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
@@ -764,7 +873,7 @@ module Stripe
764
873
  attr_reader :transaction_status_information
765
874
 
766
875
  def self.inner_class_types
767
- @inner_class_types = {}
876
+ @inner_class_types = { cardholder_message: CardholderMessage }
768
877
  end
769
878
 
770
879
  def self.field_remappings
@@ -808,6 +917,8 @@ module Stripe
808
917
  #
809
918
  # *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.*
810
919
  attr_reader :fingerprint
920
+ # Attribute for field fleet
921
+ attr_reader :fleet
811
922
  # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
812
923
  attr_reader :funding
813
924
  # 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.
@@ -851,6 +962,7 @@ module Stripe
851
962
 
852
963
  def self.inner_class_types
853
964
  @inner_class_types = {
965
+ fleet: Fleet,
854
966
  multicapture: Multicapture,
855
967
  offline: Offline,
856
968
  reauthorization: Reauthorization,
@@ -939,6 +1051,16 @@ module Stripe
939
1051
  end
940
1052
  end
941
1053
 
1054
+ class Dbarai < ::Stripe::StripeObject
1055
+ def self.inner_class_types
1056
+ @inner_class_types = {}
1057
+ end
1058
+
1059
+ def self.field_remappings
1060
+ @field_remappings = {}
1061
+ end
1062
+ end
1063
+
942
1064
  class Eps < ::Stripe::StripeObject
943
1065
  # 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`
944
1066
  attr_reader :bank
@@ -1324,6 +1446,16 @@ module Stripe
1324
1446
  end
1325
1447
  end
1326
1448
 
1449
+ class Merpay < ::Stripe::StripeObject
1450
+ def self.inner_class_types
1451
+ @inner_class_types = {}
1452
+ end
1453
+
1454
+ def self.field_remappings
1455
+ @field_remappings = {}
1456
+ end
1457
+ end
1458
+
1327
1459
  class Mobilepay < ::Stripe::StripeObject
1328
1460
  class Card < ::Stripe::StripeObject
1329
1461
  # Brand of the card used in the transaction
@@ -1603,6 +1735,8 @@ module Stripe
1603
1735
  end
1604
1736
 
1605
1737
  class Paypay < ::Stripe::StripeObject
1738
+ # Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
1739
+ attr_reader :fingerprint
1606
1740
  # ID of the multi-use Mandate created by, or used to make, this PayPay payment.
1607
1741
  attr_reader :mandate
1608
1742
 
@@ -2077,6 +2211,8 @@ module Stripe
2077
2211
  attr_reader :ach_debit
2078
2212
  # Attribute for field acss_debit
2079
2213
  attr_reader :acss_debit
2214
+ # Attribute for field aeon_pay
2215
+ attr_reader :aeon_pay
2080
2216
  # Attribute for field affirm
2081
2217
  attr_reader :affirm
2082
2218
  # Attribute for field afterpay_clearpay
@@ -2089,6 +2225,8 @@ module Stripe
2089
2225
  attr_reader :amazon_pay
2090
2226
  # Attribute for field au_becs_debit
2091
2227
  attr_reader :au_becs_debit
2228
+ # Attribute for field au_pay
2229
+ attr_reader :au_pay
2092
2230
  # Attribute for field bacs_debit
2093
2231
  attr_reader :bacs_debit
2094
2232
  # Attribute for field bancontact
@@ -2119,6 +2257,8 @@ module Stripe
2119
2257
  attr_reader :custom
2120
2258
  # Attribute for field customer_balance
2121
2259
  attr_reader :customer_balance
2260
+ # Attribute for field dbarai
2261
+ attr_reader :dbarai
2122
2262
  # Attribute for field eps
2123
2263
  attr_reader :eps
2124
2264
  # Attribute for field fpx
@@ -2151,6 +2291,8 @@ module Stripe
2151
2291
  attr_reader :link
2152
2292
  # Attribute for field mb_way
2153
2293
  attr_reader :mb_way
2294
+ # Attribute for field merpay
2295
+ attr_reader :merpay
2154
2296
  # Attribute for field mobilepay
2155
2297
  attr_reader :mobilepay
2156
2298
  # Attribute for field momo
@@ -2243,12 +2385,14 @@ module Stripe
2243
2385
  ach_credit_transfer: AchCreditTransfer,
2244
2386
  ach_debit: AchDebit,
2245
2387
  acss_debit: AcssDebit,
2388
+ aeon_pay: AeonPay,
2246
2389
  affirm: Affirm,
2247
2390
  afterpay_clearpay: AfterpayClearpay,
2248
2391
  alipay: Alipay,
2249
2392
  alma: Alma,
2250
2393
  amazon_pay: AmazonPay,
2251
2394
  au_becs_debit: AuBecsDebit,
2395
+ au_pay: AuPay,
2252
2396
  bacs_debit: BacsDebit,
2253
2397
  bancontact: Bancontact,
2254
2398
  billie: Billie,
@@ -2263,6 +2407,7 @@ module Stripe
2263
2407
  crypto: Crypto,
2264
2408
  custom: Custom,
2265
2409
  customer_balance: CustomerBalance,
2410
+ dbarai: Dbarai,
2266
2411
  eps: Eps,
2267
2412
  fpx: Fpx,
2268
2413
  getflex: Getflex,
@@ -2279,6 +2424,7 @@ module Stripe
2279
2424
  kr_card: KrCard,
2280
2425
  link: Link,
2281
2426
  mb_way: MbWay,
2427
+ merpay: Merpay,
2282
2428
  mobilepay: Mobilepay,
2283
2429
  momo: Momo,
2284
2430
  multibanco: Multibanco,
@@ -2468,6 +2614,8 @@ module Stripe
2468
2614
  attr_reader :customer_presence
2469
2615
  # An arbitrary string attached to the object. Often useful for displaying to users.
2470
2616
  attr_reader :description
2617
+ # Summary information about disputes associated with this Payment Record.
2618
+ attr_reader :dispute_details
2471
2619
  # Unique identifier for the object.
2472
2620
  attr_reader :id
2473
2621
  # ID of the latest Payment Attempt Record attached to this Payment Record.
@@ -2679,6 +2827,7 @@ module Stripe
2679
2827
  amount_refunded: AmountRefunded,
2680
2828
  amount_requested: AmountRequested,
2681
2829
  customer_details: CustomerDetails,
2830
+ dispute_details: DisputeDetails,
2682
2831
  payment_method_details: PaymentMethodDetails,
2683
2832
  processor_details: ProcessorDetails,
2684
2833
  shipping_details: ShippingDetails,