stripe 19.1.0 → 19.2.0

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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -0
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +16 -0
  5. data/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
  6. data/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
  7. data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
  8. data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
  9. data/lib/stripe/object_types.rb +1 -0
  10. data/lib/stripe/params/account_create_params.rb +26 -0
  11. data/lib/stripe/params/account_update_params.rb +26 -0
  12. data/lib/stripe/params/balance_settings_update_params.rb +42 -2
  13. data/lib/stripe/params/charge_create_params.rb +4 -1
  14. data/lib/stripe/params/checkout/session_create_params.rb +28 -15
  15. data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
  16. data/lib/stripe/params/invoice_create_preview_params.rb +60 -0
  17. data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
  18. data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
  19. data/lib/stripe/params/payment_intent_create_params.rb +65 -6
  20. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
  21. data/lib/stripe/params/payment_intent_update_params.rb +58 -5
  22. data/lib/stripe/params/payment_link_create_params.rb +30 -1
  23. data/lib/stripe/params/payment_link_update_params.rb +29 -0
  24. data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
  25. data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
  26. data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
  27. data/lib/stripe/params/payment_method_create_params.rb +11 -1
  28. data/lib/stripe/params/payout_create_params.rb +1 -1
  29. data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
  30. data/lib/stripe/params/setup_intent_create_params.rb +18 -2
  31. data/lib/stripe/params/setup_intent_update_params.rb +18 -2
  32. data/lib/stripe/params/subscription_create_params.rb +61 -11
  33. data/lib/stripe/params/subscription_item_create_params.rb +1 -7
  34. data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
  35. data/lib/stripe/params/subscription_item_update_params.rb +1 -7
  36. data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
  37. data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
  38. data/lib/stripe/params/subscription_update_params.rb +62 -8
  39. data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
  40. data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
  41. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
  42. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
  43. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
  44. data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
  45. data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
  46. data/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
  47. data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
  48. data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
  49. data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
  50. data/lib/stripe/params/v2/core/event_destination_create_params.rb +23 -0
  51. data/lib/stripe/params.rb +1342 -614
  52. data/lib/stripe/railtie.rb +8 -0
  53. data/lib/stripe/resources/account.rb +4 -0
  54. data/lib/stripe/resources/balance_settings.rb +42 -2
  55. data/lib/stripe/resources/charge.rb +35 -0
  56. data/lib/stripe/resources/checkout/session.rb +23 -7
  57. data/lib/stripe/resources/confirmation_token.rb +26 -0
  58. data/lib/stripe/resources/discount.rb +2 -2
  59. data/lib/stripe/resources/invoice.rb +2 -0
  60. data/lib/stripe/resources/invoice_item.rb +34 -1
  61. data/lib/stripe/resources/issuing/dispute.rb +1 -1
  62. data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
  63. data/lib/stripe/resources/mandate.rb +13 -0
  64. data/lib/stripe/resources/payment_attempt_record.rb +40 -10
  65. data/lib/stripe/resources/payment_intent.rb +71 -5
  66. data/lib/stripe/resources/payment_link.rb +40 -0
  67. data/lib/stripe/resources/payment_method.rb +26 -0
  68. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  69. data/lib/stripe/resources/payment_record.rb +40 -10
  70. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  71. data/lib/stripe/resources/refund.rb +13 -0
  72. data/lib/stripe/resources/setup_attempt.rb +13 -0
  73. data/lib/stripe/resources/setup_intent.rb +26 -0
  74. data/lib/stripe/resources/subscription.rb +77 -4
  75. data/lib/stripe/resources/subscription_item.rb +2 -0
  76. data/lib/stripe/resources/subscription_schedule.rb +2 -0
  77. data/lib/stripe/resources/terminal/configuration.rb +64 -0
  78. data/lib/stripe/resources/terminal/reader.rb +116 -0
  79. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
  80. data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
  81. data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
  82. data/lib/stripe/resources/v2/core/account.rb +37 -10
  83. data/lib/stripe/resources/v2/core/account_token.rb +1 -1
  84. data/lib/stripe/resources/v2/core/event.rb +1 -0
  85. data/lib/stripe/resources/v2/core/event_destination.rb +24 -0
  86. data/lib/stripe/resources.rb +500 -178
  87. data/lib/stripe/services/payment_intent_service.rb +3 -1
  88. data/lib/stripe/services/subscription_service.rb +2 -2
  89. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
  90. data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
  91. data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
  92. data/lib/stripe/services/v2/commerce_service.rb +15 -0
  93. data/lib/stripe/services/v2/core/account_service.rb +1 -1
  94. data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
  95. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  96. data/lib/stripe/services/v2/core/event_service.rb +2 -1
  97. data/lib/stripe/services/v2_services.rb +2 -1
  98. data/lib/stripe/services.rb +469 -189
  99. data/lib/stripe/version.rb +1 -1
  100. data/lib/stripe.rb +25 -4
  101. data/rbi/stripe.rbi +2785 -253
  102. metadata +14 -2
@@ -0,0 +1,8 @@
1
+ # typed: ignore
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class Railtie < ::Rails::Railtie
6
+ config.eager_load_namespaces << Stripe
7
+ end
8
+ end
@@ -152,6 +152,8 @@ module Stripe
152
152
  attr_reader :bank_transfer_payments
153
153
  # The status of the Billie capability of the account, or whether the account can directly process Billie payments.
154
154
  attr_reader :billie_payments
155
+ # The status of the Bizum capability of the account, or whether the account can directly process Bizum payments.
156
+ attr_reader :bizum_payments
155
157
  # The status of the blik payments capability of the account, or whether the account can directly process blik charges.
156
158
  attr_reader :blik_payments
157
159
  # The status of the boleto payments capability of the account, or whether the account can directly process boleto charges.
@@ -230,6 +232,8 @@ module Stripe
230
232
  attr_reader :samsung_pay_payments
231
233
  # The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
232
234
  attr_reader :satispay_payments
235
+ # The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments.
236
+ attr_reader :scalapay_payments
233
237
  # The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
234
238
  attr_reader :sepa_bank_transfer_payments
235
239
  # The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
@@ -13,6 +13,23 @@ module Stripe
13
13
 
14
14
  class Payments < ::Stripe::StripeObject
15
15
  class Payouts < ::Stripe::StripeObject
16
+ class AutomaticTransferRulesByCurrency < ::Stripe::StripeObject
17
+ # The ID of the FinancialAccount that funds will be transferred to during automatic transfers.
18
+ attr_reader :payout_method
19
+ # The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`.
20
+ attr_reader :transfer_up_to_amount
21
+ # The type of automatic transfer rule.
22
+ attr_reader :type
23
+
24
+ def self.inner_class_types
25
+ @inner_class_types = {}
26
+ end
27
+
28
+ def self.field_remappings
29
+ @field_remappings = {}
30
+ end
31
+ end
32
+
16
33
  class Schedule < ::Stripe::StripeObject
17
34
  # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
18
35
  attr_reader :interval
@@ -29,6 +46,8 @@ module Stripe
29
46
  @field_remappings = {}
30
47
  end
31
48
  end
49
+ # Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount.
50
+ attr_reader :automatic_transfer_rules_by_currency
32
51
  # The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
33
52
  attr_reader :minimum_balance_by_currency
34
53
  # Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation for details.
@@ -39,7 +58,10 @@ module Stripe
39
58
  attr_reader :status
40
59
 
41
60
  def self.inner_class_types
42
- @inner_class_types = { schedule: Schedule }
61
+ @inner_class_types = {
62
+ automatic_transfer_rules_by_currency: AutomaticTransferRulesByCurrency,
63
+ schedule: Schedule,
64
+ }
43
65
  end
44
66
 
45
67
  def self.field_remappings
@@ -48,13 +70,31 @@ module Stripe
48
70
  end
49
71
 
50
72
  class SettlementTiming < ::Stripe::StripeObject
73
+ class StartOfDay < ::Stripe::StripeObject
74
+ # Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](/connect/customized-start-of-day#available-timezones-and-cutoffs).
75
+ attr_reader :hour
76
+ # Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30.
77
+ attr_reader :minutes
78
+ # Timezone for the customized start of day. Must be a [supported customized start of day timezone](/connect/customized-start-of-day#available-timezones-and-cutoffs).
79
+ attr_reader :timezone
80
+
81
+ def self.inner_class_types
82
+ @inner_class_types = {}
83
+ end
84
+
85
+ def self.field_remappings
86
+ @field_remappings = {}
87
+ end
88
+ end
51
89
  # The number of days charge funds are held before becoming available.
52
90
  attr_reader :delay_days
53
91
  # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account.
54
92
  attr_reader :delay_days_override
93
+ # Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](/connect/customized-start-of-day) documentation.
94
+ attr_reader :start_of_day
55
95
 
56
96
  def self.inner_class_types
57
- @inner_class_types = {}
97
+ @inner_class_types = { start_of_day: StartOfDay }
58
98
  end
59
99
 
60
100
  def self.field_remappings
@@ -448,6 +448,19 @@ module Stripe
448
448
  end
449
449
  end
450
450
 
451
+ class Bizum < ::Stripe::StripeObject
452
+ # The Bizum transaction ID associated with this payment.
453
+ attr_reader :transaction_id
454
+
455
+ def self.inner_class_types
456
+ @inner_class_types = {}
457
+ end
458
+
459
+ def self.field_remappings
460
+ @field_remappings = {}
461
+ end
462
+ end
463
+
451
464
  class Blik < ::Stripe::StripeObject
452
465
  # A unique and immutable identifier assigned by BLIK to every buyer.
453
466
  attr_reader :buyer_id
@@ -1719,6 +1732,19 @@ module Stripe
1719
1732
  end
1720
1733
  end
1721
1734
 
1735
+ class Scalapay < ::Stripe::StripeObject
1736
+ # The Scalapay transaction ID associated with this payment.
1737
+ attr_reader :transaction_id
1738
+
1739
+ def self.inner_class_types
1740
+ @inner_class_types = {}
1741
+ end
1742
+
1743
+ def self.field_remappings
1744
+ @field_remappings = {}
1745
+ end
1746
+ end
1747
+
1722
1748
  class SepaCreditTransfer < ::Stripe::StripeObject
1723
1749
  # Name of the bank associated with the bank account.
1724
1750
  attr_reader :bank_name
@@ -1833,6 +1859,9 @@ module Stripe
1833
1859
  end
1834
1860
 
1835
1861
  class Twint < ::Stripe::StripeObject
1862
+ # ID of the multi use Mandate generated by the PaymentIntent
1863
+ attr_reader :mandate
1864
+
1836
1865
  def self.inner_class_types
1837
1866
  @inner_class_types = {}
1838
1867
  end
@@ -1946,6 +1975,8 @@ module Stripe
1946
1975
  attr_reader :bancontact
1947
1976
  # Attribute for field billie
1948
1977
  attr_reader :billie
1978
+ # Attribute for field bizum
1979
+ attr_reader :bizum
1949
1980
  # Attribute for field blik
1950
1981
  attr_reader :blik
1951
1982
  # Attribute for field boleto
@@ -2016,6 +2047,8 @@ module Stripe
2016
2047
  attr_reader :samsung_pay
2017
2048
  # Attribute for field satispay
2018
2049
  attr_reader :satispay
2050
+ # Attribute for field scalapay
2051
+ attr_reader :scalapay
2019
2052
  # Attribute for field sepa_credit_transfer
2020
2053
  attr_reader :sepa_credit_transfer
2021
2054
  # Attribute for field sepa_debit
@@ -2059,6 +2092,7 @@ module Stripe
2059
2092
  bacs_debit: BacsDebit,
2060
2093
  bancontact: Bancontact,
2061
2094
  billie: Billie,
2095
+ bizum: Bizum,
2062
2096
  blik: Blik,
2063
2097
  boleto: Boleto,
2064
2098
  card: Card,
@@ -2094,6 +2128,7 @@ module Stripe
2094
2128
  revolut_pay: RevolutPay,
2095
2129
  samsung_pay: SamsungPay,
2096
2130
  satispay: Satispay,
2131
+ scalapay: Scalapay,
2097
2132
  sepa_credit_transfer: SepaCreditTransfer,
2098
2133
  sepa_debit: SepaDebit,
2099
2134
  sofort: Sofort,
@@ -252,7 +252,7 @@ module Stripe
252
252
  attr_reader :payment_method_reuse_agreement
253
253
  # If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
254
254
  # Session will determine whether to display an option to opt into promotional communication
255
- # from the merchant depending on the customer's locale. Only available to US merchants.
255
+ # from the merchant depending on the customer's locale. Only available to US merchants and US customers.
256
256
  attr_reader :promotions
257
257
  # If set to `required`, it requires customers to accept the terms of service before being able to pay.
258
258
  attr_reader :terms_of_service
@@ -1011,7 +1011,7 @@ module Stripe
1011
1011
  end
1012
1012
 
1013
1013
  class Restrictions < ::Stripe::StripeObject
1014
- # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
1014
+ # The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
1015
1015
  attr_reader :brands_blocked
1016
1016
 
1017
1017
  def self.inner_class_types
@@ -1635,6 +1635,19 @@ module Stripe
1635
1635
  end
1636
1636
  end
1637
1637
 
1638
+ class Scalapay < ::Stripe::StripeObject
1639
+ # Controls when the funds will be captured from the customer's account.
1640
+ attr_reader :capture_method
1641
+
1642
+ def self.inner_class_types
1643
+ @inner_class_types = {}
1644
+ end
1645
+
1646
+ def self.field_remappings
1647
+ @field_remappings = {}
1648
+ end
1649
+ end
1650
+
1638
1651
  class SepaDebit < ::Stripe::StripeObject
1639
1652
  class MandateOptions < ::Stripe::StripeObject
1640
1653
  # 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 'STRIPE'.
@@ -1888,6 +1901,8 @@ module Stripe
1888
1901
  attr_reader :samsung_pay
1889
1902
  # Attribute for field satispay
1890
1903
  attr_reader :satispay
1904
+ # Attribute for field scalapay
1905
+ attr_reader :scalapay
1891
1906
  # Attribute for field sepa_debit
1892
1907
  attr_reader :sepa_debit
1893
1908
  # Attribute for field sofort
@@ -1940,6 +1955,7 @@ module Stripe
1940
1955
  revolut_pay: RevolutPay,
1941
1956
  samsung_pay: SamsungPay,
1942
1957
  satispay: Satispay,
1958
+ scalapay: Scalapay,
1943
1959
  sepa_debit: SepaDebit,
1944
1960
  sofort: Sofort,
1945
1961
  swish: Swish,
@@ -2218,8 +2234,8 @@ module Stripe
2218
2234
  # customer ID, a cart ID, or similar, and can be used to reconcile the
2219
2235
  # Session with your internal systems.
2220
2236
  attr_reader :client_reference_id
2221
- # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
2222
- # For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end.
2237
+ # The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. For `ui_mode: embedded_page`, the client secret is to be used when initializing Stripe.js embedded checkout.
2238
+ # For `ui_mode: elements`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end.
2223
2239
  attr_reader :client_secret
2224
2240
  # Information about the customer collected within the Checkout Session.
2225
2241
  attr_reader :collected_information
@@ -2315,9 +2331,9 @@ module Stripe
2315
2331
  attr_reader :presentment_details
2316
2332
  # The ID of the original expired Checkout Session that triggered the recovery flow.
2317
2333
  attr_reader :recovered_from
2318
- # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2334
+ # This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
2319
2335
  attr_reader :redirect_on_completion
2320
- # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
2336
+ # Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
2321
2337
  attr_reader :return_url
2322
2338
  # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
2323
2339
  attr_reader :saved_payment_method_options
@@ -2346,7 +2362,7 @@ module Stripe
2346
2362
  attr_reader :total_details
2347
2363
  # The UI mode of the Session. Defaults to `hosted_page`.
2348
2364
  attr_reader :ui_mode
2349
- # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
2365
+ # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
2350
2366
  # This value is only present when the session is active.
2351
2367
  attr_reader :url
2352
2368
  # Wallet-specific configuration for this Checkout Session.
@@ -281,6 +281,16 @@ module Stripe
281
281
  end
282
282
  end
283
283
 
284
+ class Bizum < ::Stripe::StripeObject
285
+ def self.inner_class_types
286
+ @inner_class_types = {}
287
+ end
288
+
289
+ def self.field_remappings
290
+ @field_remappings = {}
291
+ end
292
+ end
293
+
284
294
  class Blik < ::Stripe::StripeObject
285
295
  def self.inner_class_types
286
296
  @inner_class_types = {}
@@ -1301,6 +1311,16 @@ module Stripe
1301
1311
  end
1302
1312
  end
1303
1313
 
1314
+ class Scalapay < ::Stripe::StripeObject
1315
+ def self.inner_class_types
1316
+ @inner_class_types = {}
1317
+ end
1318
+
1319
+ def self.field_remappings
1320
+ @field_remappings = {}
1321
+ end
1322
+ end
1323
+
1304
1324
  class SepaDebit < ::Stripe::StripeObject
1305
1325
  class GeneratedFrom < ::Stripe::StripeObject
1306
1326
  # The ID of the Charge that generated this PaymentMethod, if any.
@@ -1507,6 +1527,8 @@ module Stripe
1507
1527
  attr_reader :billie
1508
1528
  # Attribute for field billing_details
1509
1529
  attr_reader :billing_details
1530
+ # Attribute for field bizum
1531
+ attr_reader :bizum
1510
1532
  # Attribute for field blik
1511
1533
  attr_reader :blik
1512
1534
  # Attribute for field boleto
@@ -1581,6 +1603,8 @@ module Stripe
1581
1603
  attr_reader :samsung_pay
1582
1604
  # Attribute for field satispay
1583
1605
  attr_reader :satispay
1606
+ # Attribute for field scalapay
1607
+ attr_reader :scalapay
1584
1608
  # Attribute for field sepa_debit
1585
1609
  attr_reader :sepa_debit
1586
1610
  # Attribute for field sofort
@@ -1615,6 +1639,7 @@ module Stripe
1615
1639
  bancontact: Bancontact,
1616
1640
  billie: Billie,
1617
1641
  billing_details: BillingDetails,
1642
+ bizum: Bizum,
1618
1643
  blik: Blik,
1619
1644
  boleto: Boleto,
1620
1645
  card: Card,
@@ -1650,6 +1675,7 @@ module Stripe
1650
1675
  revolut_pay: RevolutPay,
1651
1676
  samsung_pay: SamsungPay,
1652
1677
  satispay: Satispay,
1678
+ scalapay: Scalapay,
1653
1679
  sepa_debit: SepaDebit,
1654
1680
  sofort: Sofort,
1655
1681
  sunbit: Sunbit,
@@ -26,7 +26,7 @@ module Stripe
26
26
  @field_remappings = {}
27
27
  end
28
28
  end
29
- # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
29
+ # The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Not present for subscription mode.
30
30
  attr_reader :checkout_session
31
31
  # The ID of the customer associated with this discount.
32
32
  attr_reader :customer
@@ -36,7 +36,7 @@ module Stripe
36
36
  attr_reader :deleted
37
37
  # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null.
38
38
  attr_reader :end
39
- # The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array.
39
+ # The ID of the discount object. Discounts can't be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array.
40
40
  attr_reader :id
41
41
  # The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
42
42
  attr_reader :invoice
@@ -898,6 +898,8 @@ module Stripe
898
898
  attr_reader :amount_overpaid
899
899
  # The amount, in cents (or local equivalent), that was paid.
900
900
  attr_reader :amount_paid
901
+ # Amount, in cents (or local equivalent), that was paid on the invoice outside of Stripe.
902
+ attr_reader :amount_paid_off_stripe
901
903
  # The difference between amount_due and amount_paid, in cents (or local equivalent).
902
904
  attr_reader :amount_remaining
903
905
  # This is the sum of all the shipping amounts.
@@ -101,6 +101,37 @@ module Stripe
101
101
  end
102
102
 
103
103
  class ProrationDetails < ::Stripe::StripeObject
104
+ class CreditedItems < ::Stripe::StripeObject
105
+ class InvoiceLineItemDetails < ::Stripe::StripeObject
106
+ # The invoice id for the debited line item(s).
107
+ attr_reader :invoice
108
+ # IDs of the debited invoice line item(s) on the invoice that correspond to the credit proration.
109
+ attr_reader :invoice_line_items
110
+
111
+ def self.inner_class_types
112
+ @inner_class_types = {}
113
+ end
114
+
115
+ def self.field_remappings
116
+ @field_remappings = {}
117
+ end
118
+ end
119
+ # When `type` is `invoice_item`, the invoice item id for the debited invoice item corresponding to this credit proration.
120
+ attr_reader :invoice_item
121
+ # Attribute for field invoice_line_item_details
122
+ attr_reader :invoice_line_item_details
123
+ # Whether the credit references a pending invoice item or one or more invoice line items on an invoice.
124
+ attr_reader :type
125
+
126
+ def self.inner_class_types
127
+ @inner_class_types = { invoice_line_item_details: InvoiceLineItemDetails }
128
+ end
129
+
130
+ def self.field_remappings
131
+ @field_remappings = {}
132
+ end
133
+ end
134
+
104
135
  class DiscountAmount < ::Stripe::StripeObject
105
136
  # The amount, in cents (or local equivalent), of the discount.
106
137
  attr_reader :amount
@@ -115,11 +146,13 @@ module Stripe
115
146
  @field_remappings = {}
116
147
  end
117
148
  end
149
+ # For a credit proration, links to the debit invoice line items or invoice item that the credit applies to.
150
+ attr_reader :credited_items
118
151
  # Discount amounts applied when the proration was created.
119
152
  attr_reader :discount_amounts
120
153
 
121
154
  def self.inner_class_types
122
- @inner_class_types = { discount_amounts: DiscountAmount }
155
+ @inner_class_types = { credited_items: CreditedItems, discount_amounts: DiscountAmount }
123
156
  end
124
157
 
125
158
  def self.field_remappings
@@ -259,7 +259,7 @@ module Stripe
259
259
  attr_reader :status
260
260
  # The transaction being disputed.
261
261
  attr_reader :transaction
262
- # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
262
+ # [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts)
263
263
  attr_reader :treasury
264
264
 
265
265
  # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
@@ -62,7 +62,7 @@ module Stripe
62
62
  @field_remappings = {}
63
63
  end
64
64
  end
65
- # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
65
+ # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale.
66
66
  attr_reader :card_logo
67
67
  # Hash containing carrier text, for use with physical bundles that support carrier text.
68
68
  attr_reader :carrier_text
@@ -301,6 +301,16 @@ module Stripe
301
301
  end
302
302
  end
303
303
 
304
+ class Twint < ::Stripe::StripeObject
305
+ def self.inner_class_types
306
+ @inner_class_types = {}
307
+ end
308
+
309
+ def self.field_remappings
310
+ @field_remappings = {}
311
+ end
312
+ end
313
+
304
314
  class Upi < ::Stripe::StripeObject
305
315
  # Amount to be charged for future payments.
306
316
  attr_reader :amount
@@ -366,6 +376,8 @@ module Stripe
366
376
  attr_reader :revolut_pay
367
377
  # Attribute for field sepa_debit
368
378
  attr_reader :sepa_debit
379
+ # Attribute for field twint
380
+ attr_reader :twint
369
381
  # This mandate corresponds with a specific payment method type. The `payment_method_details` includes an additional hash with the same name and contains mandate information that's specific to that payment method.
370
382
  attr_reader :type
371
383
  # Attribute for field upi
@@ -392,6 +404,7 @@ module Stripe
392
404
  pix: Pix,
393
405
  revolut_pay: RevolutPay,
394
406
  sepa_debit: SepaDebit,
407
+ twint: Twint,
395
408
  upi: Upi,
396
409
  us_bank_account: UsBankAccount,
397
410
  }
@@ -456,6 +456,19 @@ module Stripe
456
456
  end
457
457
  end
458
458
 
459
+ class Bizum < ::Stripe::StripeObject
460
+ # The Bizum transaction ID associated with this payment.
461
+ attr_reader :transaction_id
462
+
463
+ def self.inner_class_types
464
+ @inner_class_types = {}
465
+ end
466
+
467
+ def self.field_remappings
468
+ @field_remappings = {}
469
+ end
470
+ end
471
+
459
472
  class Blik < ::Stripe::StripeObject
460
473
  # A unique and immutable identifier assigned by BLIK to every buyer.
461
474
  attr_reader :buyer_id
@@ -1071,11 +1084,9 @@ module Stripe
1071
1084
  attr_reader :location
1072
1085
  # The payer details for this transaction.
1073
1086
  attr_reader :payer_details
1074
- # The Klarna payment method used for this transaction.
1075
- # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
1087
+ # The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
1076
1088
  attr_reader :payment_method_category
1077
- # Preferred language of the Klarna authorization page that the customer is redirected to.
1078
- # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
1089
+ # Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
1079
1090
  attr_reader :preferred_locale
1080
1091
  # ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
1081
1092
  attr_reader :reader
@@ -1134,8 +1145,7 @@ module Stripe
1134
1145
  end
1135
1146
 
1136
1147
  class Link < ::Stripe::StripeObject
1137
- # Two-letter ISO code representing the funding source country beneath the Link payment.
1138
- # You could use this attribute to get a sense of international fees.
1148
+ # Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees.
1139
1149
  attr_reader :country
1140
1150
 
1141
1151
  def self.inner_class_types
@@ -1263,9 +1273,7 @@ module Stripe
1263
1273
  attr_reader :bank
1264
1274
  # Unique reference for this Przelewy24 payment.
1265
1275
  attr_reader :reference
1266
- # Owner's verified full name. Values are verified or provided by Przelewy24 directly
1267
- # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1268
- # Przelewy24 rarely provides this information so the attribute is usually empty.
1276
+ # Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty.
1269
1277
  attr_reader :verified_name
1270
1278
 
1271
1279
  def self.inner_class_types
@@ -1431,7 +1439,7 @@ module Stripe
1431
1439
  end
1432
1440
  # Attribute for field card
1433
1441
  attr_reader :card
1434
- # funding type of the underlying payment method.
1442
+ # Funding type of the underlying payment method.
1435
1443
  attr_reader :type
1436
1444
 
1437
1445
  def self.inner_class_types
@@ -1484,6 +1492,19 @@ module Stripe
1484
1492
  end
1485
1493
  end
1486
1494
 
1495
+ class Scalapay < ::Stripe::StripeObject
1496
+ # The Scalapay transaction ID associated with this payment.
1497
+ attr_reader :transaction_id
1498
+
1499
+ def self.inner_class_types
1500
+ @inner_class_types = {}
1501
+ end
1502
+
1503
+ def self.field_remappings
1504
+ @field_remappings = {}
1505
+ end
1506
+ end
1507
+
1487
1508
  class SepaCreditTransfer < ::Stripe::StripeObject
1488
1509
  # Name of the bank associated with the bank account.
1489
1510
  attr_reader :bank_name
@@ -1596,6 +1617,9 @@ module Stripe
1596
1617
  end
1597
1618
 
1598
1619
  class Twint < ::Stripe::StripeObject
1620
+ # ID of the multi use Mandate generated by the PaymentIntent
1621
+ attr_reader :mandate
1622
+
1599
1623
  def self.inner_class_types
1600
1624
  @inner_class_types = {}
1601
1625
  end
@@ -1711,6 +1735,8 @@ module Stripe
1711
1735
  attr_reader :billie
1712
1736
  # The billing details associated with the method of payment.
1713
1737
  attr_reader :billing_details
1738
+ # Attribute for field bizum
1739
+ attr_reader :bizum
1714
1740
  # Attribute for field blik
1715
1741
  attr_reader :blik
1716
1742
  # Attribute for field boleto
@@ -1787,6 +1813,8 @@ module Stripe
1787
1813
  attr_reader :samsung_pay
1788
1814
  # Attribute for field satispay
1789
1815
  attr_reader :satispay
1816
+ # Attribute for field scalapay
1817
+ attr_reader :scalapay
1790
1818
  # Attribute for field sepa_credit_transfer
1791
1819
  attr_reader :sepa_credit_transfer
1792
1820
  # Attribute for field sepa_debit
@@ -1831,6 +1859,7 @@ module Stripe
1831
1859
  bancontact: Bancontact,
1832
1860
  billie: Billie,
1833
1861
  billing_details: BillingDetails,
1862
+ bizum: Bizum,
1834
1863
  blik: Blik,
1835
1864
  boleto: Boleto,
1836
1865
  card: Card,
@@ -1867,6 +1896,7 @@ module Stripe
1867
1896
  revolut_pay: RevolutPay,
1868
1897
  samsung_pay: SamsungPay,
1869
1898
  satispay: Satispay,
1899
+ scalapay: Scalapay,
1870
1900
  sepa_credit_transfer: SepaCreditTransfer,
1871
1901
  sepa_debit: SepaDebit,
1872
1902
  sofort: Sofort,