stripe 15.4.0.pre.beta.2 → 15.5.0.pre.beta.1

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 (87) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +61 -5
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +1 -1
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +2 -2
  9. data/lib/stripe/events/{v2_core_account_link_completed_event.rb → v2_core_account_link_returned_event.rb} +2 -2
  10. data/lib/stripe/events/{v2_off_session_payment_requires_capture_event.rb → v2_money_management_payout_method_updated_event.rb} +3 -3
  11. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +1 -1
  12. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +2 -1
  13. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +1 -1
  14. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +1 -1
  15. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +1 -1
  16. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +1 -1
  17. data/lib/stripe/object_types.rb +3 -0
  18. data/lib/stripe/resources/account.rb +5 -5
  19. data/lib/stripe/resources/account_link.rb +3 -1
  20. data/lib/stripe/resources/account_session.rb +51 -0
  21. data/lib/stripe/resources/balance_settings.rb +13 -13
  22. data/lib/stripe/resources/billing/credit_grant.rb +1 -1
  23. data/lib/stripe/resources/billing/meter_usage.rb +23 -0
  24. data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
  25. data/lib/stripe/resources/billing_portal/configuration.rb +46 -2
  26. data/lib/stripe/resources/charge.rb +7 -5
  27. data/lib/stripe/resources/checkout/session.rb +106 -6
  28. data/lib/stripe/resources/confirmation_token.rb +3 -3
  29. data/lib/stripe/resources/customer.rb +1 -1
  30. data/lib/stripe/resources/dispute.rb +10 -1
  31. data/lib/stripe/resources/event.rb +14 -26
  32. data/lib/stripe/resources/fx_quote.rb +6 -4
  33. data/lib/stripe/resources/invoice.rb +101 -8
  34. data/lib/stripe/resources/invoice_item.rb +1 -1
  35. data/lib/stripe/resources/payment_attempt_record.rb +6 -4
  36. data/lib/stripe/resources/payment_intent.rb +815 -4
  37. data/lib/stripe/resources/payment_link.rb +83 -5
  38. data/lib/stripe/resources/payment_method.rb +4 -4
  39. data/lib/stripe/resources/payment_record.rb +6 -4
  40. data/lib/stripe/resources/quote.rb +1 -1
  41. data/lib/stripe/resources/quote_preview_invoice.rb +17 -0
  42. data/lib/stripe/resources/radar/value_list.rb +2 -2
  43. data/lib/stripe/resources/refund.rb +1 -1
  44. data/lib/stripe/resources/review.rb +2 -2
  45. data/lib/stripe/resources/setup_attempt.rb +1 -1
  46. data/lib/stripe/resources/subscription.rb +79 -2
  47. data/lib/stripe/resources/subscription_item.rb +2 -2
  48. data/lib/stripe/resources/subscription_schedule.rb +35 -3
  49. data/lib/stripe/resources/tax/registration.rb +408 -30
  50. data/lib/stripe/resources/terminal/configuration.rb +196 -0
  51. data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
  52. data/lib/stripe/resources/v2/core/account.rb +11 -0
  53. data/lib/stripe/resources/v2/core/account_link.rb +18 -2
  54. data/lib/stripe/resources/v2/money_management/payout_method.rb +2 -0
  55. data/lib/stripe/resources/v2/payments/off_session_payment.rb +40 -23
  56. data/lib/stripe/resources.rb +5 -2
  57. data/lib/stripe/services/account_link_service.rb +3 -1
  58. data/lib/stripe/services/account_service.rb +3 -3
  59. data/lib/stripe/services/account_session_service.rb +34 -0
  60. data/lib/stripe/services/balance_settings_service.rb +10 -10
  61. data/lib/stripe/services/billing/credit_grant_service.rb +1 -1
  62. data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
  63. data/lib/stripe/services/billing_portal/configuration_service.rb +36 -2
  64. data/lib/stripe/services/billing_service.rb +2 -1
  65. data/lib/stripe/services/checkout/session_service.rb +93 -5
  66. data/lib/stripe/services/invoice_item_service.rb +1 -1
  67. data/lib/stripe/services/invoice_service.rb +84 -8
  68. data/lib/stripe/services/payment_intent_service.rb +809 -3
  69. data/lib/stripe/services/payment_link_service.rb +81 -5
  70. data/lib/stripe/services/payment_method_service.rb +1 -1
  71. data/lib/stripe/services/quote_service.rb +1 -1
  72. data/lib/stripe/services/radar/value_list_service.rb +1 -1
  73. data/lib/stripe/services/subscription_item_service.rb +2 -2
  74. data/lib/stripe/services/subscription_schedule_service.rb +35 -3
  75. data/lib/stripe/services/subscription_service.rb +62 -2
  76. data/lib/stripe/services/tax/registration_service.rb +360 -30
  77. data/lib/stripe/services/terminal/configuration_service.rb +152 -0
  78. data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
  79. data/lib/stripe/services/terminal_service.rb +2 -1
  80. data/lib/stripe/services/v2/core/account_link_service.rb +41 -3
  81. data/lib/stripe/services/v2/core/account_service.rb +38 -2
  82. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +34 -19
  83. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +4 -0
  84. data/lib/stripe/services.rb +2 -0
  85. data/lib/stripe/version.rb +1 -1
  86. data/rbi/stripe.rbi +4893 -390
  87. metadata +9 -4
@@ -63,6 +63,159 @@ module Stripe
63
63
  end
64
64
 
65
65
  class CreateParams < Stripe::RequestParams
66
+ class AmountDetails < Stripe::RequestParams
67
+ class LineItem < Stripe::RequestParams
68
+ class PaymentMethodOptions < Stripe::RequestParams
69
+ class Card < Stripe::RequestParams
70
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
71
+ attr_accessor :commodity_code
72
+
73
+ def initialize(commodity_code: nil)
74
+ @commodity_code = commodity_code
75
+ end
76
+ end
77
+
78
+ class CardPresent < Stripe::RequestParams
79
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
80
+ attr_accessor :commodity_code
81
+
82
+ def initialize(commodity_code: nil)
83
+ @commodity_code = commodity_code
84
+ end
85
+ end
86
+
87
+ class Klarna < Stripe::RequestParams
88
+ # URL to an image for the product. Max length, 4096 characters.
89
+ attr_accessor :image_url
90
+ # URL to the product page. Max length, 4096 characters.
91
+ attr_accessor :product_url
92
+ # Reference for the subscription this line item is for.
93
+ attr_accessor :subscription_reference
94
+
95
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
96
+ @image_url = image_url
97
+ @product_url = product_url
98
+ @subscription_reference = subscription_reference
99
+ end
100
+ end
101
+
102
+ class Paypal < Stripe::RequestParams
103
+ # Type of the line item.
104
+ attr_accessor :category
105
+ # Description of the line item.
106
+ attr_accessor :description
107
+ # The Stripe account ID of the connected account that sells the item.
108
+ attr_accessor :sold_by
109
+
110
+ def initialize(category: nil, description: nil, sold_by: nil)
111
+ @category = category
112
+ @description = description
113
+ @sold_by = sold_by
114
+ end
115
+ end
116
+ # This sub-hash contains line item details that are specific to `card` payment method."
117
+ attr_accessor :card
118
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
119
+ attr_accessor :card_present
120
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
121
+ attr_accessor :klarna
122
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
123
+ attr_accessor :paypal
124
+
125
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
126
+ @card = card
127
+ @card_present = card_present
128
+ @klarna = klarna
129
+ @paypal = paypal
130
+ end
131
+ end
132
+
133
+ class Tax < Stripe::RequestParams
134
+ # The total tax on an item. Non-negative integer.
135
+ attr_accessor :total_tax_amount
136
+
137
+ def initialize(total_tax_amount: nil)
138
+ @total_tax_amount = total_tax_amount
139
+ end
140
+ end
141
+ # The amount an item was discounted for. Positive integer.
142
+ attr_accessor :discount_amount
143
+ # Payment method-specific information for line items.
144
+ attr_accessor :payment_method_options
145
+ # Unique identifier of the product. At most 12 characters long.
146
+ attr_accessor :product_code
147
+ # Name of the product. At most 100 characters long.
148
+ attr_accessor :product_name
149
+ # Number of items of the product. Positive integer.
150
+ attr_accessor :quantity
151
+ # Contains information about the tax on the item.
152
+ attr_accessor :tax
153
+ # Cost of the product. Non-negative integer.
154
+ attr_accessor :unit_cost
155
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
156
+ attr_accessor :unit_of_measure
157
+
158
+ def initialize(
159
+ discount_amount: nil,
160
+ payment_method_options: nil,
161
+ product_code: nil,
162
+ product_name: nil,
163
+ quantity: nil,
164
+ tax: nil,
165
+ unit_cost: nil,
166
+ unit_of_measure: nil
167
+ )
168
+ @discount_amount = discount_amount
169
+ @payment_method_options = payment_method_options
170
+ @product_code = product_code
171
+ @product_name = product_name
172
+ @quantity = quantity
173
+ @tax = tax
174
+ @unit_cost = unit_cost
175
+ @unit_of_measure = unit_of_measure
176
+ end
177
+ end
178
+
179
+ class Shipping < Stripe::RequestParams
180
+ # Portion of the amount that is for shipping.
181
+ attr_accessor :amount
182
+ # The postal code that represents the shipping source.
183
+ attr_accessor :from_postal_code
184
+ # The postal code that represents the shipping destination.
185
+ attr_accessor :to_postal_code
186
+
187
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
188
+ @amount = amount
189
+ @from_postal_code = from_postal_code
190
+ @to_postal_code = to_postal_code
191
+ end
192
+ end
193
+
194
+ class Tax < Stripe::RequestParams
195
+ # Total portion of the amount that is for tax.
196
+ attr_accessor :total_tax_amount
197
+
198
+ def initialize(total_tax_amount: nil)
199
+ @total_tax_amount = total_tax_amount
200
+ end
201
+ end
202
+ # The amount an item was discounted for.
203
+ attr_accessor :discount_amount
204
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
205
+ attr_accessor :line_items
206
+ # Contains information about the shipping portion of the amount.
207
+ attr_accessor :shipping
208
+ # Contains information about the tax portion of the amount.
209
+ attr_accessor :tax
210
+
211
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
212
+ @discount_amount = discount_amount
213
+ @line_items = line_items
214
+ @shipping = shipping
215
+ @tax = tax
216
+ end
217
+ end
218
+
66
219
  class AutomaticPaymentMethods < Stripe::RequestParams
67
220
  # Controls whether this PaymentIntent will accept redirect-based payment methods.
68
221
  #
@@ -1947,7 +2100,7 @@ module Stripe
1947
2100
  attr_accessor :capture_method
1948
2101
  # A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
1949
2102
  attr_accessor :cvc_token
1950
- # Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
2103
+ # Installment configuration for payments attempted on this PaymentIntent.
1951
2104
  #
1952
2105
  # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
1953
2106
  attr_accessor :installments
@@ -3502,6 +3655,8 @@ module Stripe
3502
3655
  end
3503
3656
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3504
3657
  attr_accessor :amount
3658
+ # Provides industry-specific information about the amount.
3659
+ attr_accessor :amount_details
3505
3660
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
3506
3661
  attr_accessor :application_fee_amount
3507
3662
  # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
@@ -3602,6 +3757,7 @@ module Stripe
3602
3757
 
3603
3758
  def initialize(
3604
3759
  amount: nil,
3760
+ amount_details: nil,
3605
3761
  application_fee_amount: nil,
3606
3762
  automatic_payment_methods: nil,
3607
3763
  capture_method: nil,
@@ -3640,6 +3796,7 @@ module Stripe
3640
3796
  use_stripe_sdk: nil
3641
3797
  )
3642
3798
  @amount = amount
3799
+ @amount_details = amount_details
3643
3800
  @application_fee_amount = application_fee_amount
3644
3801
  @automatic_payment_methods = automatic_payment_methods
3645
3802
  @capture_method = capture_method
@@ -3692,6 +3849,159 @@ module Stripe
3692
3849
  end
3693
3850
 
3694
3851
  class UpdateParams < Stripe::RequestParams
3852
+ class AmountDetails < Stripe::RequestParams
3853
+ class LineItem < Stripe::RequestParams
3854
+ class PaymentMethodOptions < Stripe::RequestParams
3855
+ class Card < Stripe::RequestParams
3856
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
3857
+ attr_accessor :commodity_code
3858
+
3859
+ def initialize(commodity_code: nil)
3860
+ @commodity_code = commodity_code
3861
+ end
3862
+ end
3863
+
3864
+ class CardPresent < Stripe::RequestParams
3865
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
3866
+ attr_accessor :commodity_code
3867
+
3868
+ def initialize(commodity_code: nil)
3869
+ @commodity_code = commodity_code
3870
+ end
3871
+ end
3872
+
3873
+ class Klarna < Stripe::RequestParams
3874
+ # URL to an image for the product. Max length, 4096 characters.
3875
+ attr_accessor :image_url
3876
+ # URL to the product page. Max length, 4096 characters.
3877
+ attr_accessor :product_url
3878
+ # Reference for the subscription this line item is for.
3879
+ attr_accessor :subscription_reference
3880
+
3881
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
3882
+ @image_url = image_url
3883
+ @product_url = product_url
3884
+ @subscription_reference = subscription_reference
3885
+ end
3886
+ end
3887
+
3888
+ class Paypal < Stripe::RequestParams
3889
+ # Type of the line item.
3890
+ attr_accessor :category
3891
+ # Description of the line item.
3892
+ attr_accessor :description
3893
+ # The Stripe account ID of the connected account that sells the item.
3894
+ attr_accessor :sold_by
3895
+
3896
+ def initialize(category: nil, description: nil, sold_by: nil)
3897
+ @category = category
3898
+ @description = description
3899
+ @sold_by = sold_by
3900
+ end
3901
+ end
3902
+ # This sub-hash contains line item details that are specific to `card` payment method."
3903
+ attr_accessor :card
3904
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
3905
+ attr_accessor :card_present
3906
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
3907
+ attr_accessor :klarna
3908
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
3909
+ attr_accessor :paypal
3910
+
3911
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
3912
+ @card = card
3913
+ @card_present = card_present
3914
+ @klarna = klarna
3915
+ @paypal = paypal
3916
+ end
3917
+ end
3918
+
3919
+ class Tax < Stripe::RequestParams
3920
+ # The total tax on an item. Non-negative integer.
3921
+ attr_accessor :total_tax_amount
3922
+
3923
+ def initialize(total_tax_amount: nil)
3924
+ @total_tax_amount = total_tax_amount
3925
+ end
3926
+ end
3927
+ # The amount an item was discounted for. Positive integer.
3928
+ attr_accessor :discount_amount
3929
+ # Payment method-specific information for line items.
3930
+ attr_accessor :payment_method_options
3931
+ # Unique identifier of the product. At most 12 characters long.
3932
+ attr_accessor :product_code
3933
+ # Name of the product. At most 100 characters long.
3934
+ attr_accessor :product_name
3935
+ # Number of items of the product. Positive integer.
3936
+ attr_accessor :quantity
3937
+ # Contains information about the tax on the item.
3938
+ attr_accessor :tax
3939
+ # Cost of the product. Non-negative integer.
3940
+ attr_accessor :unit_cost
3941
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
3942
+ attr_accessor :unit_of_measure
3943
+
3944
+ def initialize(
3945
+ discount_amount: nil,
3946
+ payment_method_options: nil,
3947
+ product_code: nil,
3948
+ product_name: nil,
3949
+ quantity: nil,
3950
+ tax: nil,
3951
+ unit_cost: nil,
3952
+ unit_of_measure: nil
3953
+ )
3954
+ @discount_amount = discount_amount
3955
+ @payment_method_options = payment_method_options
3956
+ @product_code = product_code
3957
+ @product_name = product_name
3958
+ @quantity = quantity
3959
+ @tax = tax
3960
+ @unit_cost = unit_cost
3961
+ @unit_of_measure = unit_of_measure
3962
+ end
3963
+ end
3964
+
3965
+ class Shipping < Stripe::RequestParams
3966
+ # Portion of the amount that is for shipping.
3967
+ attr_accessor :amount
3968
+ # The postal code that represents the shipping source.
3969
+ attr_accessor :from_postal_code
3970
+ # The postal code that represents the shipping destination.
3971
+ attr_accessor :to_postal_code
3972
+
3973
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
3974
+ @amount = amount
3975
+ @from_postal_code = from_postal_code
3976
+ @to_postal_code = to_postal_code
3977
+ end
3978
+ end
3979
+
3980
+ class Tax < Stripe::RequestParams
3981
+ # Total portion of the amount that is for tax.
3982
+ attr_accessor :total_tax_amount
3983
+
3984
+ def initialize(total_tax_amount: nil)
3985
+ @total_tax_amount = total_tax_amount
3986
+ end
3987
+ end
3988
+ # The amount an item was discounted for.
3989
+ attr_accessor :discount_amount
3990
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
3991
+ attr_accessor :line_items
3992
+ # Contains information about the shipping portion of the amount.
3993
+ attr_accessor :shipping
3994
+ # Contains information about the tax portion of the amount.
3995
+ attr_accessor :tax
3996
+
3997
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
3998
+ @discount_amount = discount_amount
3999
+ @line_items = line_items
4000
+ @shipping = shipping
4001
+ @tax = tax
4002
+ end
4003
+ end
4004
+
3695
4005
  class Hooks < Stripe::RequestParams
3696
4006
  class Inputs < Stripe::RequestParams
3697
4007
  class Tax < Stripe::RequestParams
@@ -5554,7 +5864,7 @@ module Stripe
5554
5864
  attr_accessor :capture_method
5555
5865
  # A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
5556
5866
  attr_accessor :cvc_token
5557
- # Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
5867
+ # Installment configuration for payments attempted on this PaymentIntent.
5558
5868
  #
5559
5869
  # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
5560
5870
  attr_accessor :installments
@@ -7088,6 +7398,8 @@ module Stripe
7088
7398
  end
7089
7399
  # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
7090
7400
  attr_accessor :amount
7401
+ # Provides industry-specific information about the amount.
7402
+ attr_accessor :amount_details
7091
7403
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
7092
7404
  attr_accessor :application_fee_amount
7093
7405
  # Controls when the funds will be captured from the customer's account.
@@ -7159,6 +7471,7 @@ module Stripe
7159
7471
 
7160
7472
  def initialize(
7161
7473
  amount: nil,
7474
+ amount_details: nil,
7162
7475
  application_fee_amount: nil,
7163
7476
  capture_method: nil,
7164
7477
  currency: nil,
@@ -7185,6 +7498,7 @@ module Stripe
7185
7498
  transfer_group: nil
7186
7499
  )
7187
7500
  @amount = amount
7501
+ @amount_details = amount_details
7188
7502
  @application_fee_amount = application_fee_amount
7189
7503
  @capture_method = capture_method
7190
7504
  @currency = currency
@@ -7262,6 +7576,159 @@ module Stripe
7262
7576
  end
7263
7577
 
7264
7578
  class CaptureParams < Stripe::RequestParams
7579
+ class AmountDetails < Stripe::RequestParams
7580
+ class LineItem < Stripe::RequestParams
7581
+ class PaymentMethodOptions < Stripe::RequestParams
7582
+ class Card < Stripe::RequestParams
7583
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
7584
+ attr_accessor :commodity_code
7585
+
7586
+ def initialize(commodity_code: nil)
7587
+ @commodity_code = commodity_code
7588
+ end
7589
+ end
7590
+
7591
+ class CardPresent < Stripe::RequestParams
7592
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
7593
+ attr_accessor :commodity_code
7594
+
7595
+ def initialize(commodity_code: nil)
7596
+ @commodity_code = commodity_code
7597
+ end
7598
+ end
7599
+
7600
+ class Klarna < Stripe::RequestParams
7601
+ # URL to an image for the product. Max length, 4096 characters.
7602
+ attr_accessor :image_url
7603
+ # URL to the product page. Max length, 4096 characters.
7604
+ attr_accessor :product_url
7605
+ # Reference for the subscription this line item is for.
7606
+ attr_accessor :subscription_reference
7607
+
7608
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
7609
+ @image_url = image_url
7610
+ @product_url = product_url
7611
+ @subscription_reference = subscription_reference
7612
+ end
7613
+ end
7614
+
7615
+ class Paypal < Stripe::RequestParams
7616
+ # Type of the line item.
7617
+ attr_accessor :category
7618
+ # Description of the line item.
7619
+ attr_accessor :description
7620
+ # The Stripe account ID of the connected account that sells the item.
7621
+ attr_accessor :sold_by
7622
+
7623
+ def initialize(category: nil, description: nil, sold_by: nil)
7624
+ @category = category
7625
+ @description = description
7626
+ @sold_by = sold_by
7627
+ end
7628
+ end
7629
+ # This sub-hash contains line item details that are specific to `card` payment method."
7630
+ attr_accessor :card
7631
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
7632
+ attr_accessor :card_present
7633
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
7634
+ attr_accessor :klarna
7635
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
7636
+ attr_accessor :paypal
7637
+
7638
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
7639
+ @card = card
7640
+ @card_present = card_present
7641
+ @klarna = klarna
7642
+ @paypal = paypal
7643
+ end
7644
+ end
7645
+
7646
+ class Tax < Stripe::RequestParams
7647
+ # The total tax on an item. Non-negative integer.
7648
+ attr_accessor :total_tax_amount
7649
+
7650
+ def initialize(total_tax_amount: nil)
7651
+ @total_tax_amount = total_tax_amount
7652
+ end
7653
+ end
7654
+ # The amount an item was discounted for. Positive integer.
7655
+ attr_accessor :discount_amount
7656
+ # Payment method-specific information for line items.
7657
+ attr_accessor :payment_method_options
7658
+ # Unique identifier of the product. At most 12 characters long.
7659
+ attr_accessor :product_code
7660
+ # Name of the product. At most 100 characters long.
7661
+ attr_accessor :product_name
7662
+ # Number of items of the product. Positive integer.
7663
+ attr_accessor :quantity
7664
+ # Contains information about the tax on the item.
7665
+ attr_accessor :tax
7666
+ # Cost of the product. Non-negative integer.
7667
+ attr_accessor :unit_cost
7668
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
7669
+ attr_accessor :unit_of_measure
7670
+
7671
+ def initialize(
7672
+ discount_amount: nil,
7673
+ payment_method_options: nil,
7674
+ product_code: nil,
7675
+ product_name: nil,
7676
+ quantity: nil,
7677
+ tax: nil,
7678
+ unit_cost: nil,
7679
+ unit_of_measure: nil
7680
+ )
7681
+ @discount_amount = discount_amount
7682
+ @payment_method_options = payment_method_options
7683
+ @product_code = product_code
7684
+ @product_name = product_name
7685
+ @quantity = quantity
7686
+ @tax = tax
7687
+ @unit_cost = unit_cost
7688
+ @unit_of_measure = unit_of_measure
7689
+ end
7690
+ end
7691
+
7692
+ class Shipping < Stripe::RequestParams
7693
+ # Portion of the amount that is for shipping.
7694
+ attr_accessor :amount
7695
+ # The postal code that represents the shipping source.
7696
+ attr_accessor :from_postal_code
7697
+ # The postal code that represents the shipping destination.
7698
+ attr_accessor :to_postal_code
7699
+
7700
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
7701
+ @amount = amount
7702
+ @from_postal_code = from_postal_code
7703
+ @to_postal_code = to_postal_code
7704
+ end
7705
+ end
7706
+
7707
+ class Tax < Stripe::RequestParams
7708
+ # Total portion of the amount that is for tax.
7709
+ attr_accessor :total_tax_amount
7710
+
7711
+ def initialize(total_tax_amount: nil)
7712
+ @total_tax_amount = total_tax_amount
7713
+ end
7714
+ end
7715
+ # The amount an item was discounted for.
7716
+ attr_accessor :discount_amount
7717
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
7718
+ attr_accessor :line_items
7719
+ # Contains information about the shipping portion of the amount.
7720
+ attr_accessor :shipping
7721
+ # Contains information about the tax portion of the amount.
7722
+ attr_accessor :tax
7723
+
7724
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
7725
+ @discount_amount = discount_amount
7726
+ @line_items = line_items
7727
+ @shipping = shipping
7728
+ @tax = tax
7729
+ end
7730
+ end
7731
+
7265
7732
  class Hooks < Stripe::RequestParams
7266
7733
  class Inputs < Stripe::RequestParams
7267
7734
  class Tax < Stripe::RequestParams
@@ -8000,6 +8467,8 @@ module Stripe
8000
8467
  @amount = amount
8001
8468
  end
8002
8469
  end
8470
+ # Provides industry-specific information about the amount.
8471
+ attr_accessor :amount_details
8003
8472
  # The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided.
8004
8473
  attr_accessor :amount_to_capture
8005
8474
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
@@ -8025,6 +8494,7 @@ module Stripe
8025
8494
  attr_accessor :transfer_data
8026
8495
 
8027
8496
  def initialize(
8497
+ amount_details: nil,
8028
8498
  amount_to_capture: nil,
8029
8499
  application_fee_amount: nil,
8030
8500
  expand: nil,
@@ -8036,6 +8506,7 @@ module Stripe
8036
8506
  statement_descriptor_suffix: nil,
8037
8507
  transfer_data: nil
8038
8508
  )
8509
+ @amount_details = amount_details
8039
8510
  @amount_to_capture = amount_to_capture
8040
8511
  @application_fee_amount = application_fee_amount
8041
8512
  @expand = expand
@@ -8050,6 +8521,159 @@ module Stripe
8050
8521
  end
8051
8522
 
8052
8523
  class ConfirmParams < Stripe::RequestParams
8524
+ class AmountDetails < Stripe::RequestParams
8525
+ class LineItem < Stripe::RequestParams
8526
+ class PaymentMethodOptions < Stripe::RequestParams
8527
+ class Card < Stripe::RequestParams
8528
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
8529
+ attr_accessor :commodity_code
8530
+
8531
+ def initialize(commodity_code: nil)
8532
+ @commodity_code = commodity_code
8533
+ end
8534
+ end
8535
+
8536
+ class CardPresent < Stripe::RequestParams
8537
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
8538
+ attr_accessor :commodity_code
8539
+
8540
+ def initialize(commodity_code: nil)
8541
+ @commodity_code = commodity_code
8542
+ end
8543
+ end
8544
+
8545
+ class Klarna < Stripe::RequestParams
8546
+ # URL to an image for the product. Max length, 4096 characters.
8547
+ attr_accessor :image_url
8548
+ # URL to the product page. Max length, 4096 characters.
8549
+ attr_accessor :product_url
8550
+ # Reference for the subscription this line item is for.
8551
+ attr_accessor :subscription_reference
8552
+
8553
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
8554
+ @image_url = image_url
8555
+ @product_url = product_url
8556
+ @subscription_reference = subscription_reference
8557
+ end
8558
+ end
8559
+
8560
+ class Paypal < Stripe::RequestParams
8561
+ # Type of the line item.
8562
+ attr_accessor :category
8563
+ # Description of the line item.
8564
+ attr_accessor :description
8565
+ # The Stripe account ID of the connected account that sells the item.
8566
+ attr_accessor :sold_by
8567
+
8568
+ def initialize(category: nil, description: nil, sold_by: nil)
8569
+ @category = category
8570
+ @description = description
8571
+ @sold_by = sold_by
8572
+ end
8573
+ end
8574
+ # This sub-hash contains line item details that are specific to `card` payment method."
8575
+ attr_accessor :card
8576
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
8577
+ attr_accessor :card_present
8578
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
8579
+ attr_accessor :klarna
8580
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
8581
+ attr_accessor :paypal
8582
+
8583
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
8584
+ @card = card
8585
+ @card_present = card_present
8586
+ @klarna = klarna
8587
+ @paypal = paypal
8588
+ end
8589
+ end
8590
+
8591
+ class Tax < Stripe::RequestParams
8592
+ # The total tax on an item. Non-negative integer.
8593
+ attr_accessor :total_tax_amount
8594
+
8595
+ def initialize(total_tax_amount: nil)
8596
+ @total_tax_amount = total_tax_amount
8597
+ end
8598
+ end
8599
+ # The amount an item was discounted for. Positive integer.
8600
+ attr_accessor :discount_amount
8601
+ # Payment method-specific information for line items.
8602
+ attr_accessor :payment_method_options
8603
+ # Unique identifier of the product. At most 12 characters long.
8604
+ attr_accessor :product_code
8605
+ # Name of the product. At most 100 characters long.
8606
+ attr_accessor :product_name
8607
+ # Number of items of the product. Positive integer.
8608
+ attr_accessor :quantity
8609
+ # Contains information about the tax on the item.
8610
+ attr_accessor :tax
8611
+ # Cost of the product. Non-negative integer.
8612
+ attr_accessor :unit_cost
8613
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
8614
+ attr_accessor :unit_of_measure
8615
+
8616
+ def initialize(
8617
+ discount_amount: nil,
8618
+ payment_method_options: nil,
8619
+ product_code: nil,
8620
+ product_name: nil,
8621
+ quantity: nil,
8622
+ tax: nil,
8623
+ unit_cost: nil,
8624
+ unit_of_measure: nil
8625
+ )
8626
+ @discount_amount = discount_amount
8627
+ @payment_method_options = payment_method_options
8628
+ @product_code = product_code
8629
+ @product_name = product_name
8630
+ @quantity = quantity
8631
+ @tax = tax
8632
+ @unit_cost = unit_cost
8633
+ @unit_of_measure = unit_of_measure
8634
+ end
8635
+ end
8636
+
8637
+ class Shipping < Stripe::RequestParams
8638
+ # Portion of the amount that is for shipping.
8639
+ attr_accessor :amount
8640
+ # The postal code that represents the shipping source.
8641
+ attr_accessor :from_postal_code
8642
+ # The postal code that represents the shipping destination.
8643
+ attr_accessor :to_postal_code
8644
+
8645
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
8646
+ @amount = amount
8647
+ @from_postal_code = from_postal_code
8648
+ @to_postal_code = to_postal_code
8649
+ end
8650
+ end
8651
+
8652
+ class Tax < Stripe::RequestParams
8653
+ # Total portion of the amount that is for tax.
8654
+ attr_accessor :total_tax_amount
8655
+
8656
+ def initialize(total_tax_amount: nil)
8657
+ @total_tax_amount = total_tax_amount
8658
+ end
8659
+ end
8660
+ # The amount an item was discounted for.
8661
+ attr_accessor :discount_amount
8662
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
8663
+ attr_accessor :line_items
8664
+ # Contains information about the shipping portion of the amount.
8665
+ attr_accessor :shipping
8666
+ # Contains information about the tax portion of the amount.
8667
+ attr_accessor :tax
8668
+
8669
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
8670
+ @discount_amount = discount_amount
8671
+ @line_items = line_items
8672
+ @shipping = shipping
8673
+ @tax = tax
8674
+ end
8675
+ end
8676
+
8053
8677
  class Hooks < Stripe::RequestParams
8054
8678
  class Inputs < Stripe::RequestParams
8055
8679
  class Tax < Stripe::RequestParams
@@ -9920,7 +10544,7 @@ module Stripe
9920
10544
  attr_accessor :capture_method
9921
10545
  # A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation.
9922
10546
  attr_accessor :cvc_token
9923
- # Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
10547
+ # Installment configuration for payments attempted on this PaymentIntent.
9924
10548
  #
9925
10549
  # For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
9926
10550
  attr_accessor :installments
@@ -11452,6 +12076,8 @@ module Stripe
11452
12076
  @tracking_number = tracking_number
11453
12077
  end
11454
12078
  end
12079
+ # Provides industry-specific information about the amount.
12080
+ attr_accessor :amount_details
11455
12081
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
11456
12082
  attr_accessor :application_fee_amount
11457
12083
  # Controls when the funds will be captured from the customer's account.
@@ -11511,6 +12137,7 @@ module Stripe
11511
12137
  attr_accessor :use_stripe_sdk
11512
12138
 
11513
12139
  def initialize(
12140
+ amount_details: nil,
11514
12141
  application_fee_amount: nil,
11515
12142
  capture_method: nil,
11516
12143
  confirmation_token: nil,
@@ -11533,6 +12160,7 @@ module Stripe
11533
12160
  shipping: nil,
11534
12161
  use_stripe_sdk: nil
11535
12162
  )
12163
+ @amount_details = amount_details
11536
12164
  @application_fee_amount = application_fee_amount
11537
12165
  @capture_method = capture_method
11538
12166
  @confirmation_token = confirmation_token
@@ -11627,6 +12255,159 @@ module Stripe
11627
12255
  end
11628
12256
 
11629
12257
  class IncrementAuthorizationParams < Stripe::RequestParams
12258
+ class AmountDetails < Stripe::RequestParams
12259
+ class LineItem < Stripe::RequestParams
12260
+ class PaymentMethodOptions < Stripe::RequestParams
12261
+ class Card < Stripe::RequestParams
12262
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
12263
+ attr_accessor :commodity_code
12264
+
12265
+ def initialize(commodity_code: nil)
12266
+ @commodity_code = commodity_code
12267
+ end
12268
+ end
12269
+
12270
+ class CardPresent < Stripe::RequestParams
12271
+ # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
12272
+ attr_accessor :commodity_code
12273
+
12274
+ def initialize(commodity_code: nil)
12275
+ @commodity_code = commodity_code
12276
+ end
12277
+ end
12278
+
12279
+ class Klarna < Stripe::RequestParams
12280
+ # URL to an image for the product. Max length, 4096 characters.
12281
+ attr_accessor :image_url
12282
+ # URL to the product page. Max length, 4096 characters.
12283
+ attr_accessor :product_url
12284
+ # Reference for the subscription this line item is for.
12285
+ attr_accessor :subscription_reference
12286
+
12287
+ def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
12288
+ @image_url = image_url
12289
+ @product_url = product_url
12290
+ @subscription_reference = subscription_reference
12291
+ end
12292
+ end
12293
+
12294
+ class Paypal < Stripe::RequestParams
12295
+ # Type of the line item.
12296
+ attr_accessor :category
12297
+ # Description of the line item.
12298
+ attr_accessor :description
12299
+ # The Stripe account ID of the connected account that sells the item.
12300
+ attr_accessor :sold_by
12301
+
12302
+ def initialize(category: nil, description: nil, sold_by: nil)
12303
+ @category = category
12304
+ @description = description
12305
+ @sold_by = sold_by
12306
+ end
12307
+ end
12308
+ # This sub-hash contains line item details that are specific to `card` payment method."
12309
+ attr_accessor :card
12310
+ # This sub-hash contains line item details that are specific to `card_present` payment method."
12311
+ attr_accessor :card_present
12312
+ # This sub-hash contains line item details that are specific to `klarna` payment method."
12313
+ attr_accessor :klarna
12314
+ # This sub-hash contains line item details that are specific to `paypal` payment method."
12315
+ attr_accessor :paypal
12316
+
12317
+ def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
12318
+ @card = card
12319
+ @card_present = card_present
12320
+ @klarna = klarna
12321
+ @paypal = paypal
12322
+ end
12323
+ end
12324
+
12325
+ class Tax < Stripe::RequestParams
12326
+ # The total tax on an item. Non-negative integer.
12327
+ attr_accessor :total_tax_amount
12328
+
12329
+ def initialize(total_tax_amount: nil)
12330
+ @total_tax_amount = total_tax_amount
12331
+ end
12332
+ end
12333
+ # The amount an item was discounted for. Positive integer.
12334
+ attr_accessor :discount_amount
12335
+ # Payment method-specific information for line items.
12336
+ attr_accessor :payment_method_options
12337
+ # Unique identifier of the product. At most 12 characters long.
12338
+ attr_accessor :product_code
12339
+ # Name of the product. At most 100 characters long.
12340
+ attr_accessor :product_name
12341
+ # Number of items of the product. Positive integer.
12342
+ attr_accessor :quantity
12343
+ # Contains information about the tax on the item.
12344
+ attr_accessor :tax
12345
+ # Cost of the product. Non-negative integer.
12346
+ attr_accessor :unit_cost
12347
+ # A unit of measure for the line item, such as gallons, feet, meters, etc.
12348
+ attr_accessor :unit_of_measure
12349
+
12350
+ def initialize(
12351
+ discount_amount: nil,
12352
+ payment_method_options: nil,
12353
+ product_code: nil,
12354
+ product_name: nil,
12355
+ quantity: nil,
12356
+ tax: nil,
12357
+ unit_cost: nil,
12358
+ unit_of_measure: nil
12359
+ )
12360
+ @discount_amount = discount_amount
12361
+ @payment_method_options = payment_method_options
12362
+ @product_code = product_code
12363
+ @product_name = product_name
12364
+ @quantity = quantity
12365
+ @tax = tax
12366
+ @unit_cost = unit_cost
12367
+ @unit_of_measure = unit_of_measure
12368
+ end
12369
+ end
12370
+
12371
+ class Shipping < Stripe::RequestParams
12372
+ # Portion of the amount that is for shipping.
12373
+ attr_accessor :amount
12374
+ # The postal code that represents the shipping source.
12375
+ attr_accessor :from_postal_code
12376
+ # The postal code that represents the shipping destination.
12377
+ attr_accessor :to_postal_code
12378
+
12379
+ def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
12380
+ @amount = amount
12381
+ @from_postal_code = from_postal_code
12382
+ @to_postal_code = to_postal_code
12383
+ end
12384
+ end
12385
+
12386
+ class Tax < Stripe::RequestParams
12387
+ # Total portion of the amount that is for tax.
12388
+ attr_accessor :total_tax_amount
12389
+
12390
+ def initialize(total_tax_amount: nil)
12391
+ @total_tax_amount = total_tax_amount
12392
+ end
12393
+ end
12394
+ # The amount an item was discounted for.
12395
+ attr_accessor :discount_amount
12396
+ # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
12397
+ attr_accessor :line_items
12398
+ # Contains information about the shipping portion of the amount.
12399
+ attr_accessor :shipping
12400
+ # Contains information about the tax portion of the amount.
12401
+ attr_accessor :tax
12402
+
12403
+ def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
12404
+ @discount_amount = discount_amount
12405
+ @line_items = line_items
12406
+ @shipping = shipping
12407
+ @tax = tax
12408
+ end
12409
+ end
12410
+
11630
12411
  class Hooks < Stripe::RequestParams
11631
12412
  class Inputs < Stripe::RequestParams
11632
12413
  class Tax < Stripe::RequestParams
@@ -11652,6 +12433,18 @@ module Stripe
11652
12433
  end
11653
12434
  end
11654
12435
 
12436
+ class PaymentDetails < Stripe::RequestParams
12437
+ # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
12438
+ attr_accessor :customer_reference
12439
+ # A unique value assigned by the business to identify the transaction.
12440
+ attr_accessor :order_reference
12441
+
12442
+ def initialize(customer_reference: nil, order_reference: nil)
12443
+ @customer_reference = customer_reference
12444
+ @order_reference = order_reference
12445
+ end
12446
+ end
12447
+
11655
12448
  class PaymentMethodOptions < Stripe::RequestParams
11656
12449
  class Card < Stripe::RequestParams
11657
12450
  # Request partial authorization on this PaymentIntent.
@@ -11679,6 +12472,8 @@ module Stripe
11679
12472
  end
11680
12473
  # The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount.
11681
12474
  attr_accessor :amount
12475
+ # Provides industry-specific information about the amount.
12476
+ attr_accessor :amount_details
11682
12477
  # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
11683
12478
  attr_accessor :application_fee_amount
11684
12479
  # An arbitrary string attached to the object. Often useful for displaying to users.
@@ -11689,6 +12484,8 @@ module Stripe
11689
12484
  attr_accessor :hooks
11690
12485
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
11691
12486
  attr_accessor :metadata
12487
+ # Provides industry-specific information about the charge.
12488
+ attr_accessor :payment_details
11692
12489
  # Payment method-specific configuration for this PaymentIntent.
11693
12490
  attr_accessor :payment_method_options
11694
12491
  # Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -11699,21 +12496,25 @@ module Stripe
11699
12496
 
11700
12497
  def initialize(
11701
12498
  amount: nil,
12499
+ amount_details: nil,
11702
12500
  application_fee_amount: nil,
11703
12501
  description: nil,
11704
12502
  expand: nil,
11705
12503
  hooks: nil,
11706
12504
  metadata: nil,
12505
+ payment_details: nil,
11707
12506
  payment_method_options: nil,
11708
12507
  statement_descriptor: nil,
11709
12508
  transfer_data: nil
11710
12509
  )
11711
12510
  @amount = amount
12511
+ @amount_details = amount_details
11712
12512
  @application_fee_amount = application_fee_amount
11713
12513
  @description = description
11714
12514
  @expand = expand
11715
12515
  @hooks = hooks
11716
12516
  @metadata = metadata
12517
+ @payment_details = payment_details
11717
12518
  @payment_method_options = payment_method_options
11718
12519
  @statement_descriptor = statement_descriptor
11719
12520
  @transfer_data = transfer_data
@@ -11802,6 +12603,7 @@ module Stripe
11802
12603
  # Confirm that your customer intends to pay with current or provided
11803
12604
  # payment method. Upon confirmation, the PaymentIntent will attempt to initiate
11804
12605
  # a payment.
12606
+ #
11805
12607
  # If the selected payment method requires additional authentication steps, the
11806
12608
  # PaymentIntent will transition to the requires_action status and
11807
12609
  # suggest additional actions via next_action. If payment fails,
@@ -11809,18 +12611,22 @@ module Stripe
11809
12611
  # canceled status if the confirmation limit is reached. If
11810
12612
  # payment succeeds, the PaymentIntent will transition to the succeeded
11811
12613
  # status (or requires_capture, if capture_method is set to manual).
12614
+ #
11812
12615
  # If the confirmation_method is automatic, payment may be attempted
11813
12616
  # using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
11814
12617
  # and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
11815
12618
  # After next_actions are handled by the client, no additional
11816
12619
  # confirmation is required to complete the payment.
12620
+ #
11817
12621
  # If the confirmation_method is manual, all payment attempts must be
11818
12622
  # initiated using a secret key.
12623
+ #
11819
12624
  # If any actions are required for the payment, the PaymentIntent will
11820
12625
  # return to the requires_confirmation state
11821
12626
  # after those actions are completed. Your server needs to then
11822
12627
  # explicitly re-confirm the PaymentIntent to initiate the next payment
11823
12628
  # attempt.
12629
+ #
11824
12630
  # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
11825
12631
  # After this limit is reached, any further calls to this endpoint will
11826
12632
  # transition the PaymentIntent to the canceled state.