stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +10 -0
  6. data/lib/stripe/resources/account.rb +230 -0
  7. data/lib/stripe/resources/account_link.rb +9 -0
  8. data/lib/stripe/resources/account_notice.rb +28 -0
  9. data/lib/stripe/resources/account_session.rb +103 -0
  10. data/lib/stripe/resources/apple_pay_domain.rb +13 -0
  11. data/lib/stripe/resources/application.rb +20 -0
  12. data/lib/stripe/resources/application_fee.rb +34 -0
  13. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  14. data/lib/stripe/resources/apps/secret.rb +22 -0
  15. data/lib/stripe/resources/balance.rb +59 -0
  16. data/lib/stripe/resources/balance_transaction.rb +34 -0
  17. data/lib/stripe/resources/bank_account.rb +60 -2
  18. data/lib/stripe/resources/billing/alert.rb +21 -0
  19. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  20. data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
  21. data/lib/stripe/resources/billing/credit_balance_transaction.rb +45 -1
  22. data/lib/stripe/resources/billing/credit_grant.rb +46 -2
  23. data/lib/stripe/resources/billing/meter.rb +49 -7
  24. data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
  25. data/lib/stripe/resources/billing/meter_event.rb +17 -3
  26. data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
  27. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  28. data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
  29. data/lib/stripe/resources/billing_portal/session.rb +61 -0
  30. data/lib/stripe/resources/capability.rb +38 -0
  31. data/lib/stripe/resources/capital/financing_offer.rb +45 -0
  32. data/lib/stripe/resources/capital/financing_summary.rb +17 -0
  33. data/lib/stripe/resources/capital/financing_transaction.rb +29 -0
  34. data/lib/stripe/resources/card.rb +72 -0
  35. data/lib/stripe/resources/cash_balance.rb +14 -0
  36. data/lib/stripe/resources/charge.rb +469 -0
  37. data/lib/stripe/resources/checkout/session.rb +496 -0
  38. data/lib/stripe/resources/climate/order.rb +55 -0
  39. data/lib/stripe/resources/climate/product.rb +24 -0
  40. data/lib/stripe/resources/climate/supplier.rb +18 -0
  41. data/lib/stripe/resources/confirmation_token.rb +297 -0
  42. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  43. data/lib/stripe/resources/country_spec.rb +27 -0
  44. data/lib/stripe/resources/coupon.rb +44 -0
  45. data/lib/stripe/resources/credit_note.rb +91 -0
  46. data/lib/stripe/resources/credit_note_line_item.rb +46 -0
  47. data/lib/stripe/resources/customer.rb +93 -0
  48. data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
  49. data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
  50. data/lib/stripe/resources/customer_session.rb +34 -0
  51. data/lib/stripe/resources/discount.rb +29 -0
  52. data/lib/stripe/resources/dispute.rb +88 -0
  53. data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
  54. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  55. data/lib/stripe/resources/entitlements/feature.rb +15 -0
  56. data/lib/stripe/resources/ephemeral_key.rb +13 -0
  57. data/lib/stripe/resources/event.rb +44 -0
  58. data/lib/stripe/resources/exchange_rate.rb +7 -0
  59. data/lib/stripe/resources/file.rb +23 -0
  60. data/lib/stripe/resources/file_link.rb +19 -0
  61. data/lib/stripe/resources/financial_connections/account.rb +84 -0
  62. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
  63. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  64. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  65. data/lib/stripe/resources/financial_connections/institution.rb +35 -0
  66. data/lib/stripe/resources/financial_connections/session.rb +49 -0
  67. data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
  68. data/lib/stripe/resources/forwarding/request.rb +40 -0
  69. data/lib/stripe/resources/funding_instructions.rb +82 -0
  70. data/lib/stripe/resources/gift_cards/card.rb +37 -0
  71. data/lib/stripe/resources/gift_cards/transaction.rb +39 -0
  72. data/lib/stripe/resources/identity/verification_report.rb +92 -0
  73. data/lib/stripe/resources/identity/verification_session.rb +76 -0
  74. data/lib/stripe/resources/invoice.rb +337 -0
  75. data/lib/stripe/resources/invoice_item.rb +54 -0
  76. data/lib/stripe/resources/invoice_line_item.rb +83 -0
  77. data/lib/stripe/resources/invoice_payment.rb +34 -0
  78. data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
  79. data/lib/stripe/resources/issuing/authorization.rb +129 -0
  80. data/lib/stripe/resources/issuing/card.rb +86 -0
  81. data/lib/stripe/resources/issuing/cardholder.rb +76 -0
  82. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +57 -0
  83. data/lib/stripe/resources/issuing/dispute.rb +65 -0
  84. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +23 -0
  85. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +17 -0
  86. data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
  87. data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
  88. data/lib/stripe/resources/issuing/settlement.rb +49 -0
  89. data/lib/stripe/resources/issuing/token.rb +46 -0
  90. data/lib/stripe/resources/issuing/transaction.rb +106 -0
  91. data/lib/stripe/resources/line_item.rb +50 -0
  92. data/lib/stripe/resources/login_link.rb +7 -0
  93. data/lib/stripe/resources/mandate.rb +78 -0
  94. data/lib/stripe/resources/margin.rb +19 -0
  95. data/lib/stripe/resources/order.rb +202 -0
  96. data/lib/stripe/resources/payment_attempt_record.rb +73 -0
  97. data/lib/stripe/resources/payment_intent.rb +642 -0
  98. data/lib/stripe/resources/payment_link.rb +198 -0
  99. data/lib/stripe/resources/payment_method.rb +368 -0
  100. data/lib/stripe/resources/payment_method_configuration.rb +430 -0
  101. data/lib/stripe/resources/payment_method_domain.rb +57 -0
  102. data/lib/stripe/resources/payment_record.rb +79 -0
  103. data/lib/stripe/resources/payout.rb +56 -0
  104. data/lib/stripe/resources/person.rb +128 -0
  105. data/lib/stripe/resources/plan.rb +52 -0
  106. data/lib/stripe/resources/price.rb +77 -0
  107. data/lib/stripe/resources/product.rb +60 -0
  108. data/lib/stripe/resources/product_feature.rb +12 -0
  109. data/lib/stripe/resources/promotion_code.rb +35 -0
  110. data/lib/stripe/resources/quote.rb +252 -0
  111. data/lib/stripe/resources/quote_line.rb +136 -0
  112. data/lib/stripe/resources/quote_preview_invoice.rb +331 -0
  113. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +159 -0
  114. data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
  115. data/lib/stripe/resources/radar/value_list.rb +23 -0
  116. data/lib/stripe/resources/radar/value_list_item.rb +17 -0
  117. data/lib/stripe/resources/refund.rb +130 -0
  118. data/lib/stripe/resources/reporting/report_run.rb +29 -0
  119. data/lib/stripe/resources/reporting/report_type.rb +19 -0
  120. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  121. data/lib/stripe/resources/reversal.rb +21 -0
  122. data/lib/stripe/resources/review.rb +36 -0
  123. data/lib/stripe/resources/setup_attempt.rb +101 -0
  124. data/lib/stripe/resources/setup_intent.rb +158 -0
  125. data/lib/stripe/resources/shipping_rate.rb +42 -0
  126. data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
  127. data/lib/stripe/resources/source.rb +195 -0
  128. data/lib/stripe/resources/source_mandate_notification.rb +59 -0
  129. data/lib/stripe/resources/source_transaction.rb +48 -0
  130. data/lib/stripe/resources/subscription.rb +214 -0
  131. data/lib/stripe/resources/subscription_item.rb +46 -0
  132. data/lib/stripe/resources/subscription_schedule.rb +153 -0
  133. data/lib/stripe/resources/tax/association.rb +36 -0
  134. data/lib/stripe/resources/tax/calculation.rb +72 -0
  135. data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
  136. data/lib/stripe/resources/tax/form.rb +75 -0
  137. data/lib/stripe/resources/tax/registration.rb +379 -0
  138. data/lib/stripe/resources/tax/settings.rb +33 -0
  139. data/lib/stripe/resources/tax/transaction.rb +68 -0
  140. data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
  141. data/lib/stripe/resources/tax_code.rb +9 -0
  142. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  143. data/lib/stripe/resources/tax_id.rb +30 -0
  144. data/lib/stripe/resources/tax_rate.rb +42 -0
  145. data/lib/stripe/resources/terminal/configuration.rb +107 -0
  146. data/lib/stripe/resources/terminal/connection_token.rb +7 -0
  147. data/lib/stripe/resources/terminal/location.rb +20 -0
  148. data/lib/stripe/resources/terminal/reader.rb +118 -0
  149. data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
  150. data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
  151. data/lib/stripe/resources/token.rb +29 -0
  152. data/lib/stripe/resources/topup.rb +33 -0
  153. data/lib/stripe/resources/transfer.rb +35 -0
  154. data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
  155. data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
  156. data/lib/stripe/resources/treasury/financial_account.rb +57 -0
  157. data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
  158. data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
  159. data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
  160. data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
  161. data/lib/stripe/resources/treasury/received_credit.rb +70 -0
  162. data/lib/stripe/resources/treasury/received_debit.rb +67 -0
  163. data/lib/stripe/resources/treasury/transaction.rb +42 -0
  164. data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
  165. data/lib/stripe/resources/usage_record.rb +13 -0
  166. data/lib/stripe/resources/usage_record_summary.rb +18 -0
  167. data/lib/stripe/resources/v2/amount.rb +9 -0
  168. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  169. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  171. data/lib/stripe/resources/v2/event.rb +21 -0
  172. data/lib/stripe/resources/v2/event_destination.rb +49 -0
  173. data/lib/stripe/resources/webhook_endpoint.rb +27 -0
  174. data/lib/stripe/resources.rb +10 -0
  175. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
  176. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
  177. data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
  178. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
  179. data/lib/stripe/services/billing/meter_event_service.rb +1 -1
  180. data/lib/stripe/services/billing/meter_service.rb +5 -5
  181. data/lib/stripe/stripe_object.rb +5 -0
  182. data/lib/stripe/version.rb +1 -1
  183. data/stripe.gemspec +2 -1
  184. metadata +13 -2
@@ -24,6 +24,648 @@ 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
+
27
669
  # Manually reconcile the remaining amount for a customer_balance PaymentIntent.
28
670
  def apply_customer_balance(params = {}, opts = {})
29
671
  request_stripe_object(