stripe 13.3.0.pre.beta.2 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1394
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_version.rb +1 -1
  6. data/lib/stripe/object_types.rb +0 -32
  7. data/lib/stripe/resources/account.rb +2 -232
  8. data/lib/stripe/resources/account_link.rb +0 -9
  9. data/lib/stripe/resources/account_session.rb +0 -103
  10. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  11. data/lib/stripe/resources/application_fee.rb +2 -36
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  13. data/lib/stripe/resources/apps/secret.rb +2 -24
  14. data/lib/stripe/resources/balance.rb +0 -59
  15. data/lib/stripe/resources/balance_transaction.rb +2 -36
  16. data/lib/stripe/resources/bank_account.rb +3 -61
  17. data/lib/stripe/resources/billing/alert.rb +2 -23
  18. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  19. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -46
  20. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  21. data/lib/stripe/resources/billing/meter.rb +2 -44
  22. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  23. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  24. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  25. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  26. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  27. data/lib/stripe/resources/capability.rb +0 -38
  28. data/lib/stripe/resources/card.rb +1 -73
  29. data/lib/stripe/resources/cash_balance.rb +0 -14
  30. data/lib/stripe/resources/charge.rb +2 -471
  31. data/lib/stripe/resources/checkout/session.rb +2 -498
  32. data/lib/stripe/resources/climate/order.rb +2 -57
  33. data/lib/stripe/resources/climate/product.rb +2 -26
  34. data/lib/stripe/resources/climate/supplier.rb +2 -20
  35. data/lib/stripe/resources/confirmation_token.rb +0 -297
  36. data/lib/stripe/resources/country_spec.rb +2 -29
  37. data/lib/stripe/resources/coupon.rb +2 -46
  38. data/lib/stripe/resources/credit_note.rb +2 -93
  39. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  40. data/lib/stripe/resources/customer.rb +2 -95
  41. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  42. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  43. data/lib/stripe/resources/customer_session.rb +0 -34
  44. data/lib/stripe/resources/discount.rb +0 -29
  45. data/lib/stripe/resources/dispute.rb +2 -90
  46. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  47. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  48. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  49. data/lib/stripe/resources/event.rb +2 -46
  50. data/lib/stripe/resources/exchange_rate.rb +2 -9
  51. data/lib/stripe/resources/file.rb +2 -25
  52. data/lib/stripe/resources/file_link.rb +2 -21
  53. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  54. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  55. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  56. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  57. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  58. data/lib/stripe/resources/forwarding/request.rb +2 -42
  59. data/lib/stripe/resources/funding_instructions.rb +0 -82
  60. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  61. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  62. data/lib/stripe/resources/invoice.rb +2 -420
  63. data/lib/stripe/resources/invoice_item.rb +2 -56
  64. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  65. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  66. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  67. data/lib/stripe/resources/issuing/card.rb +2 -88
  68. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  69. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  70. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  71. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  72. data/lib/stripe/resources/issuing/token.rb +2 -48
  73. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  74. data/lib/stripe/resources/line_item.rb +0 -50
  75. data/lib/stripe/resources/login_link.rb +0 -7
  76. data/lib/stripe/resources/mandate.rb +0 -78
  77. data/lib/stripe/resources/payment_intent.rb +2 -714
  78. data/lib/stripe/resources/payment_link.rb +2 -200
  79. data/lib/stripe/resources/payment_method.rb +2 -370
  80. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  81. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  82. data/lib/stripe/resources/payout.rb +2 -58
  83. data/lib/stripe/resources/person.rb +0 -128
  84. data/lib/stripe/resources/plan.rb +2 -54
  85. data/lib/stripe/resources/price.rb +2 -79
  86. data/lib/stripe/resources/product.rb +2 -62
  87. data/lib/stripe/resources/product_feature.rb +0 -12
  88. data/lib/stripe/resources/promotion_code.rb +2 -37
  89. data/lib/stripe/resources/quote.rb +2 -358
  90. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  91. data/lib/stripe/resources/radar/value_list.rb +2 -25
  92. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  93. data/lib/stripe/resources/refund.rb +2 -132
  94. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  95. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  96. data/lib/stripe/resources/reversal.rb +0 -21
  97. data/lib/stripe/resources/review.rb +2 -38
  98. data/lib/stripe/resources/setup_attempt.rb +2 -103
  99. data/lib/stripe/resources/setup_intent.rb +2 -160
  100. data/lib/stripe/resources/shipping_rate.rb +2 -44
  101. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  102. data/lib/stripe/resources/source.rb +0 -195
  103. data/lib/stripe/resources/source_transaction.rb +0 -48
  104. data/lib/stripe/resources/subscription.rb +2 -216
  105. data/lib/stripe/resources/subscription_item.rb +2 -48
  106. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  107. data/lib/stripe/resources/tax/calculation.rb +0 -72
  108. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  109. data/lib/stripe/resources/tax/registration.rb +2 -381
  110. data/lib/stripe/resources/tax/settings.rb +0 -33
  111. data/lib/stripe/resources/tax/transaction.rb +0 -68
  112. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  113. data/lib/stripe/resources/tax_code.rb +2 -11
  114. data/lib/stripe/resources/tax_id.rb +2 -32
  115. data/lib/stripe/resources/tax_rate.rb +2 -44
  116. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  117. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  118. data/lib/stripe/resources/terminal/location.rb +2 -22
  119. data/lib/stripe/resources/terminal/reader.rb +2 -180
  120. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  121. data/lib/stripe/resources/token.rb +0 -29
  122. data/lib/stripe/resources/topup.rb +2 -35
  123. data/lib/stripe/resources/transfer.rb +2 -37
  124. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  125. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  126. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  127. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  128. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  129. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  130. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  131. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  132. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  133. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  134. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  135. data/lib/stripe/resources/usage_record.rb +0 -13
  136. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  138. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  139. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  140. data/lib/stripe/resources/v2/event.rb +0 -21
  141. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  142. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  143. data/lib/stripe/resources.rb +0 -31
  144. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  145. data/lib/stripe/services/financial_connections_service.rb +1 -2
  146. data/lib/stripe/services/invoice_service.rb +1 -44
  147. data/lib/stripe/services/issuing_service.rb +1 -5
  148. data/lib/stripe/services/payment_intent_service.rb +0 -37
  149. data/lib/stripe/services/quote_service.rb +1 -49
  150. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  153. data/lib/stripe/services/terminal_service.rb +1 -2
  154. data/lib/stripe/services/v1_services.rb +1 -8
  155. data/lib/stripe/services.rb +0 -25
  156. data/lib/stripe/stripe_client.rb +1 -1
  157. data/lib/stripe/stripe_configuration.rb +1 -3
  158. data/lib/stripe/stripe_object.rb +3 -8
  159. data/lib/stripe/util.rb +2 -8
  160. data/lib/stripe/version.rb +1 -1
  161. data/lib/stripe.rb +0 -45
  162. data/stripe.gemspec +1 -2
  163. metadata +4 -62
  164. data/lib/stripe/request_signing_authenticator.rb +0 -79
  165. data/lib/stripe/resources/account_notice.rb +0 -60
  166. data/lib/stripe/resources/application.rb +0 -20
  167. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  168. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  169. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  170. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  171. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  172. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  173. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  174. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  175. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  176. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  177. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  178. data/lib/stripe/resources/invoice_payment.rb +0 -46
  179. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  180. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  181. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  182. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  183. data/lib/stripe/resources/margin.rb +0 -56
  184. data/lib/stripe/resources/order.rb +0 -322
  185. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  186. data/lib/stripe/resources/payment_record.rb +0 -194
  187. data/lib/stripe/resources/quote_line.rb +0 -136
  188. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  189. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  190. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  191. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  192. data/lib/stripe/resources/tax/association.rb +0 -60
  193. data/lib/stripe/resources/tax/form.rb +0 -124
  194. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  195. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  196. data/lib/stripe/resources/v2/amount.rb +0 -9
  197. data/lib/stripe/services/account_notice_service.rb +0 -39
  198. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  199. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  200. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  201. data/lib/stripe/services/capital_service.rb +0 -15
  202. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  203. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  204. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  205. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  206. data/lib/stripe/services/gift_cards_service.rb +0 -14
  207. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  208. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  209. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  210. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  211. data/lib/stripe/services/margin_service.rb +0 -50
  212. data/lib/stripe/services/order_line_item_service.rb +0 -17
  213. data/lib/stripe/services/order_service.rb +0 -78
  214. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  215. data/lib/stripe/services/payment_record_service.rb +0 -78
  216. data/lib/stripe/services/quote_line_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  219. data/lib/stripe/services/tax/association_service.rb +0 -19
  220. data/lib/stripe/services/tax/form_service.rb +0 -37
  221. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -24,648 +24,6 @@ module Stripe
24
24
  "payment_intent"
25
25
  end
26
26
 
27
- class AmountDetails < Stripe::StripeObject
28
- class Tip < Stripe::StripeObject
29
- attr_reader :amount
30
- end
31
- attr_reader :tip
32
- end
33
-
34
- class AsyncWorkflows < Stripe::StripeObject
35
- class Inputs < Stripe::StripeObject
36
- class Tax < Stripe::StripeObject
37
- attr_reader :calculation
38
- end
39
- attr_reader :tax
40
- end
41
- attr_reader :inputs
42
- end
43
-
44
- class AutomaticPaymentMethods < Stripe::StripeObject
45
- attr_reader :allow_redirects, :enabled
46
- end
47
-
48
- class LastPaymentError < Stripe::StripeObject
49
- attr_reader :charge, :code, :decline_code, :doc_url, :message, :network_advice_code, :network_decline_code, :param, :payment_intent, :payment_method, :payment_method_type, :request_log_url, :setup_intent, :source, :type
50
- end
51
-
52
- class NextAction < Stripe::StripeObject
53
- class AlipayHandleRedirect < Stripe::StripeObject
54
- attr_reader :native_data, :native_url, :return_url, :url
55
- end
56
-
57
- class BoletoDisplayDetails < Stripe::StripeObject
58
- attr_reader :expires_at, :hosted_voucher_url, :number, :pdf
59
- end
60
-
61
- class CardAwaitNotification < Stripe::StripeObject
62
- attr_reader :charge_attempt_at, :customer_approval_required
63
- end
64
-
65
- class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject
66
- class QrCode < Stripe::StripeObject
67
- attr_reader :expires_at, :image_url_png, :image_url_svg
68
- end
69
- attr_reader :hosted_instructions_url, :mobile_auth_url, :qr_code
70
- end
71
-
72
- class DisplayBankTransferInstructions < Stripe::StripeObject
73
- class FinancialAddress < Stripe::StripeObject
74
- class Aba < Stripe::StripeObject
75
- class AccountHolderAddress < Stripe::StripeObject
76
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
77
- end
78
-
79
- class BankAddress < Stripe::StripeObject
80
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
81
- end
82
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :routing_number
83
- end
84
-
85
- class Iban < Stripe::StripeObject
86
- class AccountHolderAddress < Stripe::StripeObject
87
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
88
- end
89
-
90
- class BankAddress < Stripe::StripeObject
91
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
92
- end
93
- attr_reader :account_holder_address, :account_holder_name, :bank_address, :bic, :country, :iban
94
- end
95
-
96
- class SortCode < Stripe::StripeObject
97
- class AccountHolderAddress < Stripe::StripeObject
98
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
99
- end
100
-
101
- class BankAddress < Stripe::StripeObject
102
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
103
- end
104
- attr_reader :account_holder_address, :account_holder_name, :account_number, :bank_address, :sort_code
105
- end
106
-
107
- class Spei < Stripe::StripeObject
108
- class AccountHolderAddress < Stripe::StripeObject
109
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
110
- end
111
-
112
- class BankAddress < Stripe::StripeObject
113
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
114
- end
115
- attr_reader :account_holder_address, :account_holder_name, :bank_address, :bank_code, :bank_name, :clabe
116
- end
117
-
118
- class Swift < Stripe::StripeObject
119
- class AccountHolderAddress < Stripe::StripeObject
120
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
121
- end
122
-
123
- class BankAddress < Stripe::StripeObject
124
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
125
- end
126
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_name, :swift_code
127
- end
128
-
129
- class Zengin < Stripe::StripeObject
130
- class AccountHolderAddress < Stripe::StripeObject
131
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
132
- end
133
-
134
- class BankAddress < Stripe::StripeObject
135
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
136
- end
137
- attr_reader :account_holder_address, :account_holder_name, :account_number, :account_type, :bank_address, :bank_code, :bank_name, :branch_code, :branch_name
138
- end
139
- attr_reader :aba, :iban, :sort_code, :spei, :supported_networks, :swift, :type, :zengin
140
- end
141
- attr_reader :amount_remaining, :currency, :financial_addresses, :hosted_instructions_url, :reference, :type
142
- end
143
-
144
- class KonbiniDisplayDetails < Stripe::StripeObject
145
- class Stores < Stripe::StripeObject
146
- class Familymart < Stripe::StripeObject
147
- attr_reader :confirmation_number, :payment_code
148
- end
149
-
150
- class Lawson < Stripe::StripeObject
151
- attr_reader :confirmation_number, :payment_code
152
- end
153
-
154
- class Ministop < Stripe::StripeObject
155
- attr_reader :confirmation_number, :payment_code
156
- end
157
-
158
- class Seicomart < Stripe::StripeObject
159
- attr_reader :confirmation_number, :payment_code
160
- end
161
- attr_reader :familymart, :lawson, :ministop, :seicomart
162
- end
163
- attr_reader :expires_at, :hosted_voucher_url, :stores
164
- end
165
-
166
- class MultibancoDisplayDetails < Stripe::StripeObject
167
- attr_reader :entity, :expires_at, :hosted_voucher_url, :reference
168
- end
169
-
170
- class OxxoDisplayDetails < Stripe::StripeObject
171
- attr_reader :expires_after, :hosted_voucher_url, :number
172
- end
173
-
174
- class PaynowDisplayQrCode < Stripe::StripeObject
175
- attr_reader :data, :hosted_instructions_url, :image_url_png, :image_url_svg
176
- end
177
-
178
- class PixDisplayQrCode < Stripe::StripeObject
179
- attr_reader :data, :expires_at, :hosted_instructions_url, :image_url_png, :image_url_svg
180
- end
181
-
182
- class PromptpayDisplayQrCode < Stripe::StripeObject
183
- attr_reader :data, :hosted_instructions_url, :image_url_png, :image_url_svg
184
- end
185
-
186
- class RedirectToUrl < Stripe::StripeObject
187
- attr_reader :return_url, :url
188
- end
189
-
190
- class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject
191
- class QrCode < Stripe::StripeObject
192
- attr_reader :data, :image_url_png, :image_url_svg
193
- end
194
- attr_reader :hosted_instructions_url, :mobile_auth_url, :qr_code
195
- end
196
-
197
- class VerifyWithMicrodeposits < Stripe::StripeObject
198
- attr_reader :arrival_date, :hosted_verification_url, :microdeposit_type
199
- end
200
-
201
- class WechatPayDisplayQrCode < Stripe::StripeObject
202
- attr_reader :data, :hosted_instructions_url, :image_data_url, :image_url_png, :image_url_svg
203
- end
204
-
205
- class WechatPayRedirectToAndroidApp < Stripe::StripeObject
206
- attr_reader :app_id, :nonce_str, :package, :partner_id, :prepay_id, :sign, :timestamp
207
- end
208
-
209
- class WechatPayRedirectToIosApp < Stripe::StripeObject
210
- attr_reader :native_url
211
- end
212
- attr_reader :alipay_handle_redirect, :boleto_display_details, :card_await_notification, :cashapp_handle_redirect_or_display_qr_code, :display_bank_transfer_instructions, :konbini_display_details, :multibanco_display_details, :oxxo_display_details, :paynow_display_qr_code, :pix_display_qr_code, :promptpay_display_qr_code, :redirect_to_url, :swish_handle_redirect_or_display_qr_code, :type, :use_stripe_sdk, :verify_with_microdeposits, :wechat_pay_display_qr_code, :wechat_pay_redirect_to_android_app, :wechat_pay_redirect_to_ios_app
213
- end
214
-
215
- class PaymentDetails < Stripe::StripeObject
216
- class CarRental < Stripe::StripeObject
217
- class Affiliate < Stripe::StripeObject
218
- attr_reader :name
219
- end
220
-
221
- class Delivery < Stripe::StripeObject
222
- class Recipient < Stripe::StripeObject
223
- attr_reader :email, :name, :phone
224
- end
225
- attr_reader :mode, :recipient
226
- end
227
-
228
- class Driver < Stripe::StripeObject
229
- attr_reader :name
230
- end
231
-
232
- class PickupAddress < Stripe::StripeObject
233
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
234
- end
235
-
236
- class ReturnAddress < Stripe::StripeObject
237
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
238
- end
239
- attr_reader :affiliate, :booking_number, :car_class_code, :car_make, :car_model, :company, :customer_service_phone_number, :days_rented, :delivery, :drivers, :extra_charges, :no_show, :pickup_address, :pickup_at, :rate_amount, :rate_interval, :renter_name, :return_address, :return_at, :tax_exempt
240
- end
241
-
242
- class EventDetails < Stripe::StripeObject
243
- class Address < Stripe::StripeObject
244
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
245
- end
246
-
247
- class Affiliate < Stripe::StripeObject
248
- attr_reader :name
249
- end
250
-
251
- class Delivery < Stripe::StripeObject
252
- class Recipient < Stripe::StripeObject
253
- attr_reader :email, :name, :phone
254
- end
255
- attr_reader :mode, :recipient
256
- end
257
- attr_reader :access_controlled_venue, :address, :affiliate, :company, :delivery, :ends_at, :genre, :name, :starts_at
258
- end
259
-
260
- class Subscription < Stripe::StripeObject
261
- class Affiliate < Stripe::StripeObject
262
- attr_reader :name
263
- end
264
-
265
- class BillingInterval < Stripe::StripeObject
266
- attr_reader :count, :interval
267
- end
268
- attr_reader :affiliate, :auto_renewal, :billing_interval, :ends_at, :name, :starts_at
269
- end
270
- attr_reader :car_rental, :event_details, :subscription
271
- end
272
-
273
- class PaymentMethodConfigurationDetails < Stripe::StripeObject
274
- attr_reader :id, :parent
275
- end
276
-
277
- class PaymentMethodOptions < Stripe::StripeObject
278
- class AcssDebit < Stripe::StripeObject
279
- class MandateOptions < Stripe::StripeObject
280
- attr_reader :custom_mandate_url, :interval_description, :payment_schedule, :transaction_type
281
- end
282
- attr_reader :mandate_options, :setup_future_usage, :verification_method
283
- end
284
-
285
- class Affirm < Stripe::StripeObject
286
- attr_reader :capture_method, :preferred_locale, :setup_future_usage
287
- end
288
-
289
- class AfterpayClearpay < Stripe::StripeObject
290
- attr_reader :capture_method, :reference, :setup_future_usage
291
- end
292
-
293
- class Alipay < Stripe::StripeObject
294
- attr_reader :setup_future_usage
295
- end
296
-
297
- class Alma < Stripe::StripeObject
298
- attr_reader :capture_method
299
- end
300
-
301
- class AmazonPay < Stripe::StripeObject
302
- attr_reader :capture_method, :setup_future_usage
303
- end
304
-
305
- class AuBecsDebit < Stripe::StripeObject
306
- attr_reader :setup_future_usage
307
- end
308
-
309
- class BacsDebit < Stripe::StripeObject
310
- class MandateOptions < Stripe::StripeObject
311
- attr_reader :reference_prefix
312
- end
313
- attr_reader :mandate_options, :setup_future_usage
314
- end
315
-
316
- class Bancontact < Stripe::StripeObject
317
- attr_reader :preferred_language, :setup_future_usage
318
- end
319
-
320
- class Blik < Stripe::StripeObject
321
- attr_reader :setup_future_usage
322
- end
323
-
324
- class Boleto < Stripe::StripeObject
325
- attr_reader :expires_after_days, :setup_future_usage
326
- end
327
-
328
- class Card < Stripe::StripeObject
329
- class Installments < Stripe::StripeObject
330
- class AvailablePlan < Stripe::StripeObject
331
- attr_reader :count, :interval, :type
332
- end
333
-
334
- class Plan < Stripe::StripeObject
335
- attr_reader :count, :interval, :type
336
- end
337
- attr_reader :available_plans, :enabled, :plan
338
- end
339
-
340
- class MandateOptions < Stripe::StripeObject
341
- attr_reader :amount, :amount_type, :description, :end_date, :interval, :interval_count, :reference, :start_date, :supported_types
342
- end
343
-
344
- class StatementDetails < Stripe::StripeObject
345
- class Address < Stripe::StripeObject
346
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
347
- end
348
- attr_reader :address, :phone
349
- end
350
- attr_reader :capture_method, :installments, :mandate_options, :network, :request_decremental_authorization, :request_extended_authorization, :request_incremental_authorization, :request_multicapture, :request_overcapture, :request_partial_authorization, :request_three_d_secure, :require_cvc_recollection, :setup_future_usage, :statement_descriptor_suffix_kana, :statement_descriptor_suffix_kanji, :statement_details
351
- end
352
-
353
- class CardPresent < Stripe::StripeObject
354
- class Routing < Stripe::StripeObject
355
- attr_reader :requested_priority
356
- end
357
- attr_reader :request_extended_authorization, :request_incremental_authorization_support, :routing
358
- end
359
-
360
- class Cashapp < Stripe::StripeObject
361
- attr_reader :capture_method, :setup_future_usage
362
- end
363
-
364
- class CustomerBalance < Stripe::StripeObject
365
- class BankTransfer < Stripe::StripeObject
366
- class EuBankTransfer < Stripe::StripeObject
367
- attr_reader :country
368
- end
369
- attr_reader :eu_bank_transfer, :requested_address_types, :type
370
- end
371
- attr_reader :bank_transfer, :funding_type, :setup_future_usage
372
- end
373
-
374
- class Eps < Stripe::StripeObject
375
- attr_reader :setup_future_usage
376
- end
377
-
378
- class Fpx < Stripe::StripeObject
379
- attr_reader :setup_future_usage
380
- end
381
-
382
- class Giropay < Stripe::StripeObject
383
- attr_reader :setup_future_usage
384
- end
385
-
386
- class Gopay < Stripe::StripeObject
387
- attr_reader :setup_future_usage
388
- end
389
-
390
- class Grabpay < Stripe::StripeObject
391
- attr_reader :setup_future_usage
392
- end
393
-
394
- class IdBankTransfer < Stripe::StripeObject
395
- attr_reader :expires_after, :expires_at, :setup_future_usage
396
- end
397
-
398
- class Ideal < Stripe::StripeObject
399
- attr_reader :setup_future_usage
400
- end
401
-
402
- class InteracPresent < Stripe::StripeObject; end
403
-
404
- class KakaoPay < Stripe::StripeObject
405
- attr_reader :capture_method, :setup_future_usage
406
- end
407
-
408
- class Klarna < Stripe::StripeObject
409
- attr_reader :capture_method, :preferred_locale, :setup_future_usage
410
- end
411
-
412
- class Konbini < Stripe::StripeObject
413
- attr_reader :confirmation_number, :expires_after_days, :expires_at, :product_description, :setup_future_usage
414
- end
415
-
416
- class KrCard < Stripe::StripeObject
417
- attr_reader :capture_method, :setup_future_usage
418
- end
419
-
420
- class Link < Stripe::StripeObject
421
- attr_reader :capture_method, :persistent_token, :setup_future_usage
422
- end
423
-
424
- class MbWay < Stripe::StripeObject
425
- attr_reader :setup_future_usage
426
- end
427
-
428
- class Mobilepay < Stripe::StripeObject
429
- attr_reader :capture_method, :setup_future_usage
430
- end
431
-
432
- class Multibanco < Stripe::StripeObject
433
- attr_reader :setup_future_usage
434
- end
435
-
436
- class NaverPay < Stripe::StripeObject
437
- attr_reader :capture_method
438
- end
439
-
440
- class Oxxo < Stripe::StripeObject
441
- attr_reader :expires_after_days, :setup_future_usage
442
- end
443
-
444
- class P24 < Stripe::StripeObject
445
- attr_reader :setup_future_usage
446
- end
447
-
448
- class Payco < Stripe::StripeObject
449
- attr_reader :capture_method
450
- end
451
-
452
- class Paynow < Stripe::StripeObject
453
- attr_reader :setup_future_usage
454
- end
455
-
456
- class Paypal < Stripe::StripeObject
457
- class LineItem < Stripe::StripeObject
458
- class Tax < Stripe::StripeObject
459
- attr_reader :amount, :behavior
460
- end
461
- attr_reader :category, :description, :name, :quantity, :sku, :sold_by, :tax, :unit_amount
462
- end
463
- attr_reader :capture_method, :line_items, :preferred_locale, :reference, :reference_id, :setup_future_usage, :subsellers
464
- end
465
-
466
- class Payto < Stripe::StripeObject
467
- class MandateOptions < Stripe::StripeObject
468
- attr_reader :amount, :amount_type, :end_date, :payment_schedule, :payments_per_period, :purpose
469
- end
470
- attr_reader :mandate_options, :setup_future_usage
471
- end
472
-
473
- class Pix < Stripe::StripeObject
474
- attr_reader :expires_after_seconds, :expires_at, :setup_future_usage
475
- end
476
-
477
- class Promptpay < Stripe::StripeObject
478
- attr_reader :setup_future_usage
479
- end
480
-
481
- class Qris < Stripe::StripeObject
482
- attr_reader :setup_future_usage
483
- end
484
-
485
- class Rechnung < Stripe::StripeObject; end
486
-
487
- class RevolutPay < Stripe::StripeObject
488
- attr_reader :capture_method, :setup_future_usage
489
- end
490
-
491
- class SamsungPay < Stripe::StripeObject
492
- attr_reader :capture_method
493
- end
494
-
495
- class SepaDebit < Stripe::StripeObject
496
- class MandateOptions < Stripe::StripeObject
497
- attr_reader :reference_prefix
498
- end
499
- attr_reader :mandate_options, :setup_future_usage
500
- end
501
-
502
- class Shopeepay < Stripe::StripeObject
503
- attr_reader :setup_future_usage
504
- end
505
-
506
- class Sofort < Stripe::StripeObject
507
- attr_reader :preferred_language, :setup_future_usage
508
- end
509
-
510
- class Swish < Stripe::StripeObject
511
- attr_reader :reference, :setup_future_usage
512
- end
513
-
514
- class Twint < Stripe::StripeObject
515
- attr_reader :setup_future_usage
516
- end
517
-
518
- class UsBankAccount < Stripe::StripeObject
519
- class FinancialConnections < Stripe::StripeObject
520
- class Filters < Stripe::StripeObject
521
- attr_reader :account_subcategories, :institution
522
- end
523
-
524
- class ManualEntry < Stripe::StripeObject
525
- attr_reader :mode
526
- end
527
- attr_reader :filters, :manual_entry, :permissions, :prefetch, :return_url
528
- end
529
-
530
- class MandateOptions < Stripe::StripeObject
531
- attr_reader :collection_method
532
- end
533
- attr_reader :financial_connections, :mandate_options, :preferred_settlement_speed, :setup_future_usage, :verification_method
534
- end
535
-
536
- class WechatPay < Stripe::StripeObject
537
- attr_reader :app_id, :client, :setup_future_usage
538
- end
539
-
540
- class Zip < Stripe::StripeObject
541
- attr_reader :setup_future_usage
542
- end
543
- attr_reader :acss_debit, :affirm, :afterpay_clearpay, :alipay, :alma, :amazon_pay, :au_becs_debit, :bacs_debit, :bancontact, :blik, :boleto, :card, :card_present, :cashapp, :customer_balance, :eps, :fpx, :giropay, :gopay, :grabpay, :id_bank_transfer, :ideal, :interac_present, :kakao_pay, :klarna, :konbini, :kr_card, :link, :mb_way, :mobilepay, :multibanco, :naver_pay, :oxxo, :p24, :payco, :paynow, :paypal, :payto, :pix, :promptpay, :qris, :rechnung, :revolut_pay, :samsung_pay, :sepa_debit, :shopeepay, :sofort, :swish, :twint, :us_bank_account, :wechat_pay, :zip
544
- end
545
-
546
- class Processing < Stripe::StripeObject
547
- class Card < Stripe::StripeObject
548
- class CustomerNotification < Stripe::StripeObject
549
- attr_reader :approval_requested, :completes_at
550
- end
551
- attr_reader :customer_notification
552
- end
553
- attr_reader :card, :type
554
- end
555
-
556
- class Shipping < Stripe::StripeObject
557
- class Address < Stripe::StripeObject
558
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
559
- end
560
- attr_reader :address, :carrier, :name, :phone, :tracking_number
561
- end
562
-
563
- class TransferData < Stripe::StripeObject
564
- attr_reader :amount, :destination
565
- end
566
- # 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).
567
- attr_reader :amount
568
- # Amount that can be captured from this PaymentIntent.
569
- attr_reader :amount_capturable
570
- # Attribute for field amount_details
571
- attr_reader :amount_details
572
- # Amount that this PaymentIntent collects.
573
- attr_reader :amount_received
574
- # ID of the Connect application that created the PaymentIntent.
575
- attr_reader :application
576
- # 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 payment amount. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
577
- attr_reader :application_fee_amount
578
- # Attribute for field async_workflows
579
- attr_reader :async_workflows
580
- # Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
581
- attr_reader :automatic_payment_methods
582
- # Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
583
- attr_reader :canceled_at
584
- # Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, or `automatic`).
585
- attr_reader :cancellation_reason
586
- # Controls when the funds will be captured from the customer's account.
587
- attr_reader :capture_method
588
- # The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
589
- #
590
- # The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
591
- #
592
- # Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment?ui=elements) and learn about how `client_secret` should be handled.
593
- attr_reader :client_secret
594
- # Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment.
595
- attr_reader :confirmation_method
596
- # Time at which the object was created. Measured in seconds since the Unix epoch.
597
- attr_reader :created
598
- # 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).
599
- attr_reader :currency
600
- # ID of the Customer this PaymentIntent belongs to, if one exists.
601
- #
602
- # Payment methods attached to other Customers cannot be used with this PaymentIntent.
603
- #
604
- # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
605
- attr_reader :customer
606
- # An arbitrary string attached to the object. Often useful for displaying to users.
607
- attr_reader :description
608
- # Unique identifier for the object.
609
- attr_reader :id
610
- # ID of the invoice that created this PaymentIntent, if it exists.
611
- attr_reader :invoice
612
- # The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
613
- attr_reader :last_payment_error
614
- # ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
615
- attr_reader :latest_charge
616
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
617
- attr_reader :livemode
618
- # 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. Learn more about [storing information in metadata](https://stripe.com/docs/payments/payment-intents/creating-payment-intents#storing-information-in-metadata).
619
- attr_reader :metadata
620
- # If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
621
- attr_reader :next_action
622
- # String representing the object's type. Objects of the same type share the same value.
623
- attr_reader :object
624
- # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
625
- attr_reader :on_behalf_of
626
- # Attribute for field payment_details
627
- attr_reader :payment_details
628
- # ID of the payment method used in this PaymentIntent.
629
- attr_reader :payment_method
630
- # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
631
- attr_reader :payment_method_configuration_details
632
- # Payment-method-specific configuration for this PaymentIntent.
633
- attr_reader :payment_method_options
634
- # The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
635
- attr_reader :payment_method_types
636
- # If present, this property tells you about the processing state of the payment.
637
- attr_reader :processing
638
- # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
639
- attr_reader :receipt_email
640
- # ID of the review associated with this PaymentIntent, if any.
641
- attr_reader :review
642
- # Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
643
- attr_reader :secret_key_confirmation
644
- # Indicates that you intend to make future payments with this PaymentIntent's payment method.
645
- #
646
- # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
647
- #
648
- # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
649
- #
650
- # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
651
- attr_reader :setup_future_usage
652
- # Shipping information for this PaymentIntent.
653
- attr_reader :shipping
654
- # This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied.
655
- attr_reader :source
656
- # Text that appears on the customer's statement as the statement descriptor for a non-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).
657
- #
658
- # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
659
- attr_reader :statement_descriptor
660
- # Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
661
- attr_reader :statement_descriptor_suffix
662
- # Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/docs/payments/intents#intent-statuses).
663
- attr_reader :status
664
- # The data that automatically creates a Transfer after the payment finalizes. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
665
- attr_reader :transfer_data
666
- # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers).
667
- attr_reader :transfer_group
668
-
669
27
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
670
28
  def apply_customer_balance(params = {}, opts = {})
671
29
  request_stripe_object(
@@ -824,56 +182,6 @@ module Stripe
824
182
  request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
825
183
  end
826
184
 
827
- # Perform a decremental authorization on an eligible
828
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
829
- # PaymentIntent's status must be requires_capture and
830
- # [decremental_authorization.status](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
831
- # must be available.
832
- #
833
- # Decremental authorizations decrease the authorized amount on your customer's card
834
- # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
835
- #
836
- # After decrement, the PaymentIntent object
837
- # returns with the updated
838
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
839
- # The PaymentIntent will now be capturable up to the new authorized amount.
840
- #
841
- # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
842
- # After it's fully captured, a PaymentIntent can no longer be decremented.
843
- def decrement_authorization(params = {}, opts = {})
844
- request_stripe_object(
845
- method: :post,
846
- path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
847
- params: params,
848
- opts: opts
849
- )
850
- end
851
-
852
- # Perform a decremental authorization on an eligible
853
- # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
854
- # PaymentIntent's status must be requires_capture and
855
- # [decremental_authorization.status](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
856
- # must be available.
857
- #
858
- # Decremental authorizations decrease the authorized amount on your customer's card
859
- # to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
860
- #
861
- # After decrement, the PaymentIntent object
862
- # returns with the updated
863
- # [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
864
- # The PaymentIntent will now be capturable up to the new authorized amount.
865
- #
866
- # Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
867
- # After it's fully captured, a PaymentIntent can no longer be decremented.
868
- def self.decrement_authorization(intent, params = {}, opts = {})
869
- request_stripe_object(
870
- method: :post,
871
- path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
872
- params: params,
873
- opts: opts
874
- )
875
- end
876
-
877
185
  # Perform an incremental authorization on an eligible
878
186
  # [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
879
187
  # PaymentIntent's status must be requires_capture and
@@ -941,8 +249,8 @@ module Stripe
941
249
  end
942
250
 
943
251
  # Returns a list of PaymentIntents.
944
- def self.list(filters = {}, opts = {})
945
- request_stripe_object(method: :get, path: "/v1/payment_intents", params: filters, opts: opts)
252
+ def self.list(params = {}, opts = {})
253
+ request_stripe_object(method: :get, path: "/v1/payment_intents", params: params, opts: opts)
946
254
  end
947
255
 
948
256
  def self.search(params = {}, opts = {})
@@ -958,26 +266,6 @@ module Stripe
958
266
  search(params, opts).auto_paging_each(&blk)
959
267
  end
960
268
 
961
- # Trigger an external action on a PaymentIntent.
962
- def trigger_action(params = {}, opts = {})
963
- request_stripe_object(
964
- method: :post,
965
- path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
966
- params: params,
967
- opts: opts
968
- )
969
- end
970
-
971
- # Trigger an external action on a PaymentIntent.
972
- def self.trigger_action(intent, params = {}, opts = {})
973
- request_stripe_object(
974
- method: :post,
975
- path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
976
- params: params,
977
- opts: opts
978
- )
979
- end
980
-
981
269
  # Updates properties on a PaymentIntent object without confirming.
982
270
  #
983
271
  # Depending on which properties you update, you might need to confirm the