stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.2

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 (229) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +6 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/resources/account.rb +443 -0
  7. data/lib/stripe/resources/account_link.rb +8 -0
  8. data/lib/stripe/resources/account_notice.rb +24 -0
  9. data/lib/stripe/resources/account_session.rb +435 -10
  10. data/lib/stripe/resources/apple_pay_domain.rb +8 -0
  11. data/lib/stripe/resources/application.rb +8 -0
  12. data/lib/stripe/resources/application_fee.rb +16 -0
  13. data/lib/stripe/resources/application_fee_refund.rb +8 -0
  14. data/lib/stripe/resources/apps/secret.rb +16 -0
  15. data/lib/stripe/resources/balance.rb +159 -0
  16. data/lib/stripe/resources/balance_settings.rb +40 -0
  17. data/lib/stripe/resources/balance_transaction.rb +16 -0
  18. data/lib/stripe/resources/bank_account.rb +40 -0
  19. data/lib/stripe/resources/billing/alert.rb +75 -0
  20. data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
  21. data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
  22. data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
  23. data/lib/stripe/resources/billing/credit_grant.rb +72 -0
  24. data/lib/stripe/resources/billing/meter.rb +45 -0
  25. data/lib/stripe/resources/billing/meter_event.rb +8 -0
  26. data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
  27. data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
  28. data/lib/stripe/resources/billing/meter_usage.rb +8 -0
  29. data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
  30. data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
  31. data/lib/stripe/resources/billing_portal/session.rb +101 -0
  32. data/lib/stripe/resources/capability.rb +56 -0
  33. data/lib/stripe/resources/capital/financing_offer.rb +24 -0
  34. data/lib/stripe/resources/capital/financing_summary.rb +24 -0
  35. data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
  36. data/lib/stripe/resources/card.rb +16 -0
  37. data/lib/stripe/resources/cash_balance.rb +16 -0
  38. data/lib/stripe/resources/charge.rb +1052 -16
  39. data/lib/stripe/resources/checkout/session.rb +950 -0
  40. data/lib/stripe/resources/climate/order.rb +32 -0
  41. data/lib/stripe/resources/climate/product.rb +16 -0
  42. data/lib/stripe/resources/climate/supplier.rb +16 -0
  43. data/lib/stripe/resources/confirmation_token.rb +960 -38
  44. data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
  45. data/lib/stripe/resources/country_spec.rb +32 -0
  46. data/lib/stripe/resources/coupon.rb +36 -0
  47. data/lib/stripe/resources/credit_note.rb +70 -0
  48. data/lib/stripe/resources/credit_note_line_item.rb +53 -0
  49. data/lib/stripe/resources/customer.rb +77 -0
  50. data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
  51. data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
  52. data/lib/stripe/resources/customer_session.rb +52 -0
  53. data/lib/stripe/resources/discount.rb +8 -0
  54. data/lib/stripe/resources/dispute.rb +166 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
  56. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
  57. data/lib/stripe/resources/entitlements/feature.rb +8 -0
  58. data/lib/stripe/resources/ephemeral_key.rb +8 -0
  59. data/lib/stripe/resources/event.rb +56 -0
  60. data/lib/stripe/resources/exchange_rate.rb +8 -0
  61. data/lib/stripe/resources/file.rb +8 -0
  62. data/lib/stripe/resources/file_link.rb +8 -0
  63. data/lib/stripe/resources/financial_connections/account.rb +79 -0
  64. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
  65. data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
  66. data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
  67. data/lib/stripe/resources/financial_connections/institution.rb +53 -0
  68. data/lib/stripe/resources/financial_connections/session.rb +63 -1
  69. data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
  70. data/lib/stripe/resources/forwarding/request.rb +52 -0
  71. data/lib/stripe/resources/funding_instructions.rb +193 -0
  72. data/lib/stripe/resources/fx_quote.rb +48 -0
  73. data/lib/stripe/resources/identity/verification_report.rb +166 -1
  74. data/lib/stripe/resources/identity/verification_session.rb +126 -1
  75. data/lib/stripe/resources/invoice.rb +441 -3
  76. data/lib/stripe/resources/invoice_item.rb +88 -0
  77. data/lib/stripe/resources/invoice_line_item.rb +186 -0
  78. data/lib/stripe/resources/invoice_payment.rb +24 -0
  79. data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
  80. data/lib/stripe/resources/issuing/authorization.rb +177 -0
  81. data/lib/stripe/resources/issuing/card.rb +96 -0
  82. data/lib/stripe/resources/issuing/cardholder.rb +110 -0
  83. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
  84. data/lib/stripe/resources/issuing/dispute.rb +97 -0
  85. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
  86. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
  87. data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
  88. data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
  89. data/lib/stripe/resources/issuing/settlement.rb +8 -0
  90. data/lib/stripe/resources/issuing/token.rb +61 -0
  91. data/lib/stripe/resources/issuing/transaction.rb +151 -0
  92. data/lib/stripe/resources/line_item.rb +54 -0
  93. data/lib/stripe/resources/login_link.rb +8 -0
  94. data/lib/stripe/resources/mandate.rb +242 -11
  95. data/lib/stripe/resources/margin.rb +8 -0
  96. data/lib/stripe/resources/order.rb +348 -0
  97. data/lib/stripe/resources/payment_attempt_record.rb +890 -11
  98. data/lib/stripe/resources/payment_intent.rb +1405 -3
  99. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
  100. data/lib/stripe/resources/payment_link.rb +337 -0
  101. data/lib/stripe/resources/payment_method.rb +884 -38
  102. data/lib/stripe/resources/payment_method_configuration.rb +961 -0
  103. data/lib/stripe/resources/payment_method_domain.rb +111 -0
  104. data/lib/stripe/resources/payment_record.rb +890 -11
  105. data/lib/stripe/resources/payout.rb +16 -0
  106. data/lib/stripe/resources/person.rb +180 -0
  107. data/lib/stripe/resources/plan.rb +24 -0
  108. data/lib/stripe/resources/price.rb +79 -0
  109. data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
  110. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
  111. data/lib/stripe/resources/product.rb +27 -0
  112. data/lib/stripe/resources/product_feature.rb +8 -0
  113. data/lib/stripe/resources/promotion_code.rb +24 -0
  114. data/lib/stripe/resources/quote.rb +432 -0
  115. data/lib/stripe/resources/quote_line.rb +247 -0
  116. data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
  117. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
  118. data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
  119. data/lib/stripe/resources/radar/value_list.rb +8 -0
  120. data/lib/stripe/resources/radar/value_list_item.rb +8 -0
  121. data/lib/stripe/resources/refund.rb +380 -19
  122. data/lib/stripe/resources/reporting/report_run.rb +16 -0
  123. data/lib/stripe/resources/reporting/report_type.rb +8 -0
  124. data/lib/stripe/resources/reserve_transaction.rb +8 -0
  125. data/lib/stripe/resources/reversal.rb +8 -0
  126. data/lib/stripe/resources/review.rb +24 -0
  127. data/lib/stripe/resources/setup_attempt.rb +331 -20
  128. data/lib/stripe/resources/setup_intent.rb +293 -2
  129. data/lib/stripe/resources/shipping_rate.rb +48 -0
  130. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  131. data/lib/stripe/resources/source.rb +274 -0
  132. data/lib/stripe/resources/source_mandate_notification.rb +32 -0
  133. data/lib/stripe/resources/source_transaction.rb +54 -0
  134. data/lib/stripe/resources/subscription.rb +318 -3
  135. data/lib/stripe/resources/subscription_item.rb +24 -0
  136. data/lib/stripe/resources/subscription_schedule.rb +314 -0
  137. data/lib/stripe/resources/tax/association.rb +32 -0
  138. data/lib/stripe/resources/tax/calculation.rb +109 -0
  139. data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
  140. data/lib/stripe/resources/tax/form.rb +107 -0
  141. data/lib/stripe/resources/tax/registration.rb +1232 -0
  142. data/lib/stripe/resources/tax/settings.rb +61 -1
  143. data/lib/stripe/resources/tax/transaction.rb +93 -0
  144. data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
  145. data/lib/stripe/resources/tax_code.rb +8 -0
  146. data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
  147. data/lib/stripe/resources/tax_id.rb +24 -0
  148. data/lib/stripe/resources/tax_rate.rb +16 -0
  149. data/lib/stripe/resources/terminal/configuration.rb +299 -0
  150. data/lib/stripe/resources/terminal/connection_token.rb +8 -0
  151. data/lib/stripe/resources/terminal/location.rb +16 -0
  152. data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
  153. data/lib/stripe/resources/terminal/reader.rb +241 -0
  154. data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
  155. data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
  156. data/lib/stripe/resources/token.rb +8 -0
  157. data/lib/stripe/resources/topup.rb +8 -0
  158. data/lib/stripe/resources/transfer.rb +8 -0
  159. data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
  160. data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
  161. data/lib/stripe/resources/treasury/financial_account.rb +61 -0
  162. data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
  163. data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
  164. data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
  165. data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
  166. data/lib/stripe/resources/treasury/received_credit.rb +97 -0
  167. data/lib/stripe/resources/treasury/received_debit.rb +89 -0
  168. data/lib/stripe/resources/treasury/transaction.rb +36 -0
  169. data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
  170. data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
  171. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
  172. data/lib/stripe/resources/v2/billing/cadence.rb +141 -0
  173. data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
  174. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
  175. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
  176. data/lib/stripe/resources/v2/billing/intent.rb +27 -0
  177. data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
  178. data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
  179. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
  180. data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
  181. data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
  182. data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
  183. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
  184. data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
  185. data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
  186. data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
  187. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
  188. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +27 -0
  189. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
  190. data/lib/stripe/resources/v2/billing/profile.rb +8 -0
  191. data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
  192. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
  193. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +27 -0
  194. data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
  195. data/lib/stripe/resources/v2/billing/service_action.rb +115 -0
  196. data/lib/stripe/resources/v2/core/account.rb +1900 -0
  197. data/lib/stripe/resources/v2/core/account_link.rb +51 -0
  198. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +24 -0
  199. data/lib/stripe/resources/v2/core/person.rb +201 -0
  200. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
  201. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
  202. data/lib/stripe/resources/v2/event.rb +24 -0
  203. data/lib/stripe/resources/v2/event_destination.rb +44 -0
  204. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
  205. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
  206. data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
  207. data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
  208. data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
  209. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
  210. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
  211. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
  212. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
  213. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
  214. data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
  215. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
  216. data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
  217. data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
  218. data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
  219. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
  220. data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
  221. data/lib/stripe/resources/v2/reporting/report.rb +52 -0
  222. data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
  223. data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
  224. data/lib/stripe/resources/webhook_endpoint.rb +8 -0
  225. data/lib/stripe/stripe_object.rb +25 -1
  226. data/lib/stripe/util.rb +9 -5
  227. data/lib/stripe/version.rb +1 -1
  228. data/rbi/stripe.rbi +280174 -0
  229. metadata +3 -2
@@ -42,6 +42,14 @@ module Stripe
42
42
  attr_reader :currency
43
43
  # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
44
44
  attr_reader :fiscal_year_end
45
+
46
+ def self.inner_class_types
47
+ @inner_class_types = {}
48
+ end
49
+
50
+ def self.field_remappings
51
+ @field_remappings = {}
52
+ end
45
53
  end
46
54
 
47
55
  class MonthlyEstimatedRevenue < Stripe::StripeObject
@@ -49,6 +57,14 @@ module Stripe
49
57
  attr_reader :amount
50
58
  # 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).
51
59
  attr_reader :currency
60
+
61
+ def self.inner_class_types
62
+ @inner_class_types = {}
63
+ end
64
+
65
+ def self.field_remappings
66
+ @field_remappings = {}
67
+ end
52
68
  end
53
69
 
54
70
  class SupportAddress < Stripe::StripeObject
@@ -64,6 +80,14 @@ module Stripe
64
80
  attr_reader :postal_code
65
81
  # State, county, province, or region.
66
82
  attr_reader :state
83
+
84
+ def self.inner_class_types
85
+ @inner_class_types = {}
86
+ end
87
+
88
+ def self.field_remappings
89
+ @field_remappings = {}
90
+ end
67
91
  end
68
92
  # The applicant's gross annual revenue for its preceding fiscal year.
69
93
  attr_reader :annual_revenue
@@ -89,6 +113,18 @@ module Stripe
89
113
  attr_reader :support_url
90
114
  # The business's publicly available website.
91
115
  attr_reader :url
116
+
117
+ def self.inner_class_types
118
+ @inner_class_types = {
119
+ annual_revenue: AnnualRevenue,
120
+ monthly_estimated_revenue: MonthlyEstimatedRevenue,
121
+ support_address: SupportAddress,
122
+ }
123
+ end
124
+
125
+ def self.field_remappings
126
+ @field_remappings = {}
127
+ end
92
128
  end
93
129
 
94
130
  class Capabilities < Stripe::StripeObject
@@ -238,6 +274,14 @@ module Stripe
238
274
  attr_reader :us_bank_transfer_payments
239
275
  # The status of the Zip capability of the account, or whether the account can directly process Zip charges.
240
276
  attr_reader :zip_payments
277
+
278
+ def self.inner_class_types
279
+ @inner_class_types = {}
280
+ end
281
+
282
+ def self.field_remappings
283
+ @field_remappings = {}
284
+ end
241
285
  end
242
286
 
243
287
  class Company < Stripe::StripeObject
@@ -254,6 +298,14 @@ module Stripe
254
298
  attr_reader :postal_code
255
299
  # State, county, province, or region.
256
300
  attr_reader :state
301
+
302
+ def self.inner_class_types
303
+ @inner_class_types = {}
304
+ end
305
+
306
+ def self.field_remappings
307
+ @field_remappings = {}
308
+ end
257
309
  end
258
310
 
259
311
  class AddressKana < Stripe::StripeObject
@@ -271,6 +323,14 @@ module Stripe
271
323
  attr_reader :state
272
324
  # Town/cho-me.
273
325
  attr_reader :town
326
+
327
+ def self.inner_class_types
328
+ @inner_class_types = {}
329
+ end
330
+
331
+ def self.field_remappings
332
+ @field_remappings = {}
333
+ end
274
334
  end
275
335
 
276
336
  class AddressKanji < Stripe::StripeObject
@@ -288,6 +348,14 @@ module Stripe
288
348
  attr_reader :state
289
349
  # Town/cho-me.
290
350
  attr_reader :town
351
+
352
+ def self.inner_class_types
353
+ @inner_class_types = {}
354
+ end
355
+
356
+ def self.field_remappings
357
+ @field_remappings = {}
358
+ end
291
359
  end
292
360
 
293
361
  class DirectorshipDeclaration < Stripe::StripeObject
@@ -297,6 +365,14 @@ module Stripe
297
365
  attr_reader :ip
298
366
  # The user-agent string from the browser where the directorship declaration attestation was made.
299
367
  attr_reader :user_agent
368
+
369
+ def self.inner_class_types
370
+ @inner_class_types = {}
371
+ end
372
+
373
+ def self.field_remappings
374
+ @field_remappings = {}
375
+ end
300
376
  end
301
377
 
302
378
  class OwnershipDeclaration < Stripe::StripeObject
@@ -306,6 +382,14 @@ module Stripe
306
382
  attr_reader :ip
307
383
  # The user-agent string from the browser where the beneficial owner attestation was made.
308
384
  attr_reader :user_agent
385
+
386
+ def self.inner_class_types
387
+ @inner_class_types = {}
388
+ end
389
+
390
+ def self.field_remappings
391
+ @field_remappings = {}
392
+ end
309
393
  end
310
394
 
311
395
  class RegistrationDate < Stripe::StripeObject
@@ -315,6 +399,14 @@ module Stripe
315
399
  attr_reader :month
316
400
  # The four-digit year of registration.
317
401
  attr_reader :year
402
+
403
+ def self.inner_class_types
404
+ @inner_class_types = {}
405
+ end
406
+
407
+ def self.field_remappings
408
+ @field_remappings = {}
409
+ end
318
410
  end
319
411
 
320
412
  class Verification < Stripe::StripeObject
@@ -327,9 +419,25 @@ module Stripe
327
419
  attr_reader :details_code
328
420
  # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
329
421
  attr_reader :front
422
+
423
+ def self.inner_class_types
424
+ @inner_class_types = {}
425
+ end
426
+
427
+ def self.field_remappings
428
+ @field_remappings = {}
429
+ end
330
430
  end
331
431
  # Attribute for field document
332
432
  attr_reader :document
433
+
434
+ def self.inner_class_types
435
+ @inner_class_types = { document: Document }
436
+ end
437
+
438
+ def self.field_remappings
439
+ @field_remappings = {}
440
+ end
333
441
  end
334
442
  # Attribute for field address
335
443
  attr_reader :address
@@ -373,6 +481,22 @@ module Stripe
373
481
  attr_reader :vat_id_provided
374
482
  # Information on the verification state of the company.
375
483
  attr_reader :verification
484
+
485
+ def self.inner_class_types
486
+ @inner_class_types = {
487
+ address: Address,
488
+ address_kana: AddressKana,
489
+ address_kanji: AddressKanji,
490
+ directorship_declaration: DirectorshipDeclaration,
491
+ ownership_declaration: OwnershipDeclaration,
492
+ registration_date: RegistrationDate,
493
+ verification: Verification,
494
+ }
495
+ end
496
+
497
+ def self.field_remappings
498
+ @field_remappings = {}
499
+ end
376
500
  end
377
501
 
378
502
  class Controller < Stripe::StripeObject
@@ -383,26 +507,66 @@ module Stripe
383
507
  attr_reader :onboarding_owner
384
508
  # `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
385
509
  attr_reader :pricing_controls
510
+
511
+ def self.inner_class_types
512
+ @inner_class_types = {}
513
+ end
514
+
515
+ def self.field_remappings
516
+ @field_remappings = {}
517
+ end
386
518
  end
387
519
 
388
520
  class Dashboard < Stripe::StripeObject
389
521
  # Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
390
522
  attr_reader :type
523
+
524
+ def self.inner_class_types
525
+ @inner_class_types = {}
526
+ end
527
+
528
+ def self.field_remappings
529
+ @field_remappings = {}
530
+ end
391
531
  end
392
532
 
393
533
  class Fees < Stripe::StripeObject
394
534
  # A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
395
535
  attr_reader :payer
536
+
537
+ def self.inner_class_types
538
+ @inner_class_types = {}
539
+ end
540
+
541
+ def self.field_remappings
542
+ @field_remappings = {}
543
+ end
396
544
  end
397
545
 
398
546
  class Losses < Stripe::StripeObject
399
547
  # A value indicating who is liable when this account can't pay back negative balances from payments.
400
548
  attr_reader :payments
549
+
550
+ def self.inner_class_types
551
+ @inner_class_types = {}
552
+ end
553
+
554
+ def self.field_remappings
555
+ @field_remappings = {}
556
+ end
401
557
  end
402
558
 
403
559
  class StripeDashboard < Stripe::StripeObject
404
560
  # A value indicating the Stripe dashboard this account has access to independent of the Connect application.
405
561
  attr_reader :type
562
+
563
+ def self.inner_class_types
564
+ @inner_class_types = {}
565
+ end
566
+
567
+ def self.field_remappings
568
+ @field_remappings = {}
569
+ end
406
570
  end
407
571
  # Attribute for field application
408
572
  attr_reader :application
@@ -420,6 +584,20 @@ module Stripe
420
584
  attr_reader :stripe_dashboard
421
585
  # The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself.
422
586
  attr_reader :type
587
+
588
+ def self.inner_class_types
589
+ @inner_class_types = {
590
+ application: Application,
591
+ dashboard: Dashboard,
592
+ fees: Fees,
593
+ losses: Losses,
594
+ stripe_dashboard: StripeDashboard,
595
+ }
596
+ end
597
+
598
+ def self.field_remappings
599
+ @field_remappings = {}
600
+ end
423
601
  end
424
602
 
425
603
  class FutureRequirements < Stripe::StripeObject
@@ -428,6 +606,14 @@ module Stripe
428
606
  attr_reader :alternative_fields_due
429
607
  # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
430
608
  attr_reader :original_fields_due
609
+
610
+ def self.inner_class_types
611
+ @inner_class_types = {}
612
+ end
613
+
614
+ def self.field_remappings
615
+ @field_remappings = {}
616
+ end
431
617
  end
432
618
 
433
619
  class Error < Stripe::StripeObject
@@ -437,6 +623,14 @@ module Stripe
437
623
  attr_reader :reason
438
624
  # The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
439
625
  attr_reader :requirement
626
+
627
+ def self.inner_class_types
628
+ @inner_class_types = {}
629
+ end
630
+
631
+ def self.field_remappings
632
+ @field_remappings = {}
633
+ end
440
634
  end
441
635
  # Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
442
636
  attr_reader :alternatives
@@ -454,11 +648,27 @@ module Stripe
454
648
  attr_reader :past_due
455
649
  # Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
456
650
  attr_reader :pending_verification
651
+
652
+ def self.inner_class_types
653
+ @inner_class_types = { alternatives: Alternative, errors: Error }
654
+ end
655
+
656
+ def self.field_remappings
657
+ @field_remappings = {}
658
+ end
457
659
  end
458
660
 
459
661
  class Groups < Stripe::StripeObject
460
662
  # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
461
663
  attr_reader :payments_pricing
664
+
665
+ def self.inner_class_types
666
+ @inner_class_types = {}
667
+ end
668
+
669
+ def self.field_remappings
670
+ @field_remappings = {}
671
+ end
462
672
  end
463
673
 
464
674
  class Requirements < Stripe::StripeObject
@@ -467,6 +677,14 @@ module Stripe
467
677
  attr_reader :alternative_fields_due
468
678
  # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`.
469
679
  attr_reader :original_fields_due
680
+
681
+ def self.inner_class_types
682
+ @inner_class_types = {}
683
+ end
684
+
685
+ def self.field_remappings
686
+ @field_remappings = {}
687
+ end
470
688
  end
471
689
 
472
690
  class Error < Stripe::StripeObject
@@ -476,6 +694,14 @@ module Stripe
476
694
  attr_reader :reason
477
695
  # The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
478
696
  attr_reader :requirement
697
+
698
+ def self.inner_class_types
699
+ @inner_class_types = {}
700
+ end
701
+
702
+ def self.field_remappings
703
+ @field_remappings = {}
704
+ end
479
705
  end
480
706
  # Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
481
707
  attr_reader :alternatives
@@ -493,17 +719,41 @@ module Stripe
493
719
  attr_reader :past_due
494
720
  # Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
495
721
  attr_reader :pending_verification
722
+
723
+ def self.inner_class_types
724
+ @inner_class_types = { alternatives: Alternative, errors: Error }
725
+ end
726
+
727
+ def self.field_remappings
728
+ @field_remappings = {}
729
+ end
496
730
  end
497
731
 
498
732
  class RiskControls < Stripe::StripeObject
499
733
  class Charges < Stripe::StripeObject
500
734
  # Whether a pause of the risk control has been requested.
501
735
  attr_reader :pause_requested
736
+
737
+ def self.inner_class_types
738
+ @inner_class_types = {}
739
+ end
740
+
741
+ def self.field_remappings
742
+ @field_remappings = {}
743
+ end
502
744
  end
503
745
 
504
746
  class Payouts < Stripe::StripeObject
505
747
  # Whether a pause of the risk control has been requested.
506
748
  attr_reader :pause_requested
749
+
750
+ def self.inner_class_types
751
+ @inner_class_types = {}
752
+ end
753
+
754
+ def self.field_remappings
755
+ @field_remappings = {}
756
+ end
507
757
  end
508
758
  # Attribute for field charges
509
759
  attr_reader :charges
@@ -511,6 +761,14 @@ module Stripe
511
761
  attr_reader :payouts
512
762
  # Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/)
513
763
  attr_reader :rejected_reason
764
+
765
+ def self.inner_class_types
766
+ @inner_class_types = { charges: Charges, payouts: Payouts }
767
+ end
768
+
769
+ def self.field_remappings
770
+ @field_remappings = {}
771
+ end
514
772
  end
515
773
 
516
774
  class Settings < Stripe::StripeObject
@@ -519,6 +777,14 @@ module Stripe
519
777
  attr_reader :display_name
520
778
  # The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners.
521
779
  attr_reader :service_user_number
780
+
781
+ def self.inner_class_types
782
+ @inner_class_types = {}
783
+ end
784
+
785
+ def self.field_remappings
786
+ @field_remappings = {}
787
+ end
522
788
  end
523
789
 
524
790
  class BankBcaOnboarding < Stripe::StripeObject
@@ -526,6 +792,14 @@ module Stripe
526
792
  attr_reader :account_holder_name
527
793
  # Bank BCA business account number.
528
794
  attr_reader :business_account_number
795
+
796
+ def self.inner_class_types
797
+ @inner_class_types = {}
798
+ end
799
+
800
+ def self.field_remappings
801
+ @field_remappings = {}
802
+ end
529
803
  end
530
804
 
531
805
  class Branding < Stripe::StripeObject
@@ -537,6 +811,14 @@ module Stripe
537
811
  attr_reader :primary_color
538
812
  # A CSS hex color value representing the secondary branding color for this account
539
813
  attr_reader :secondary_color
814
+
815
+ def self.inner_class_types
816
+ @inner_class_types = {}
817
+ end
818
+
819
+ def self.field_remappings
820
+ @field_remappings = {}
821
+ end
540
822
  end
541
823
 
542
824
  class Capital < Stripe::StripeObject
@@ -544,6 +826,14 @@ module Stripe
544
826
  attr_reader :payout_destination
545
827
  # Per-currency mapping of all destination accounts eligible to receive loan payouts.
546
828
  attr_reader :payout_destination_selector
829
+
830
+ def self.inner_class_types
831
+ @inner_class_types = {}
832
+ end
833
+
834
+ def self.field_remappings
835
+ @field_remappings = {}
836
+ end
547
837
  end
548
838
 
549
839
  class CardIssuing < Stripe::StripeObject
@@ -554,9 +844,25 @@ module Stripe
554
844
  attr_reader :ip
555
845
  # The user agent of the browser from which the account representative accepted the service agreement.
556
846
  attr_reader :user_agent
847
+
848
+ def self.inner_class_types
849
+ @inner_class_types = {}
850
+ end
851
+
852
+ def self.field_remappings
853
+ @field_remappings = {}
854
+ end
557
855
  end
558
856
  # Attribute for field tos_acceptance
559
857
  attr_reader :tos_acceptance
858
+
859
+ def self.inner_class_types
860
+ @inner_class_types = { tos_acceptance: TosAcceptance }
861
+ end
862
+
863
+ def self.field_remappings
864
+ @field_remappings = {}
865
+ end
560
866
  end
561
867
 
562
868
  class CardPayments < Stripe::StripeObject
@@ -565,6 +871,14 @@ module Stripe
565
871
  attr_reader :avs_failure
566
872
  # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
567
873
  attr_reader :cvc_failure
874
+
875
+ def self.inner_class_types
876
+ @inner_class_types = {}
877
+ end
878
+
879
+ def self.field_remappings
880
+ @field_remappings = {}
881
+ end
568
882
  end
569
883
  # Attribute for field decline_on
570
884
  attr_reader :decline_on
@@ -574,6 +888,14 @@ module Stripe
574
888
  attr_reader :statement_descriptor_prefix_kana
575
889
  # The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
576
890
  attr_reader :statement_descriptor_prefix_kanji
891
+
892
+ def self.inner_class_types
893
+ @inner_class_types = { decline_on: DeclineOn }
894
+ end
895
+
896
+ def self.field_remappings
897
+ @field_remappings = {}
898
+ end
577
899
  end
578
900
 
579
901
  class Dashboard < Stripe::StripeObject
@@ -581,6 +903,14 @@ module Stripe
581
903
  attr_reader :display_name
582
904
  # The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones).
583
905
  attr_reader :timezone
906
+
907
+ def self.inner_class_types
908
+ @inner_class_types = {}
909
+ end
910
+
911
+ def self.field_remappings
912
+ @field_remappings = {}
913
+ end
584
914
  end
585
915
 
586
916
  class Invoices < Stripe::StripeObject
@@ -588,6 +918,14 @@ module Stripe
588
918
  attr_reader :default_account_tax_ids
589
919
  # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
590
920
  attr_reader :hosted_payment_method_save
921
+
922
+ def self.inner_class_types
923
+ @inner_class_types = {}
924
+ end
925
+
926
+ def self.field_remappings
927
+ @field_remappings = {}
928
+ end
591
929
  end
592
930
 
593
931
  class Payments < Stripe::StripeObject
@@ -601,6 +939,14 @@ module Stripe
601
939
  attr_reader :statement_descriptor_prefix_kana
602
940
  # The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
603
941
  attr_reader :statement_descriptor_prefix_kanji
942
+
943
+ def self.inner_class_types
944
+ @inner_class_types = {}
945
+ end
946
+
947
+ def self.field_remappings
948
+ @field_remappings = {}
949
+ end
604
950
  end
605
951
 
606
952
  class Payouts < Stripe::StripeObject
@@ -617,6 +963,14 @@ module Stripe
617
963
  attr_reader :weekly_anchor
618
964
  # The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
619
965
  attr_reader :weekly_payout_days
966
+
967
+ def self.inner_class_types
968
+ @inner_class_types = {}
969
+ end
970
+
971
+ def self.field_remappings
972
+ @field_remappings = {}
973
+ end
620
974
  end
621
975
  # A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
622
976
  attr_reader :debit_negative_balances
@@ -624,16 +978,40 @@ module Stripe
624
978
  attr_reader :schedule
625
979
  # The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
626
980
  attr_reader :statement_descriptor
981
+
982
+ def self.inner_class_types
983
+ @inner_class_types = { schedule: Schedule }
984
+ end
985
+
986
+ def self.field_remappings
987
+ @field_remappings = {}
988
+ end
627
989
  end
628
990
 
629
991
  class SepaDebitPayments < Stripe::StripeObject
630
992
  # SEPA creditor identifier that identifies the company making the payment.
631
993
  attr_reader :creditor_id
994
+
995
+ def self.inner_class_types
996
+ @inner_class_types = {}
997
+ end
998
+
999
+ def self.field_remappings
1000
+ @field_remappings = {}
1001
+ end
632
1002
  end
633
1003
 
634
1004
  class TaxForms < Stripe::StripeObject
635
1005
  # Whether the account opted out of receiving their tax forms by postal delivery.
636
1006
  attr_reader :consented_to_paperless_delivery
1007
+
1008
+ def self.inner_class_types
1009
+ @inner_class_types = {}
1010
+ end
1011
+
1012
+ def self.field_remappings
1013
+ @field_remappings = {}
1014
+ end
637
1015
  end
638
1016
 
639
1017
  class Treasury < Stripe::StripeObject
@@ -644,9 +1022,25 @@ module Stripe
644
1022
  attr_reader :ip
645
1023
  # The user agent of the browser from which the account representative accepted the service agreement.
646
1024
  attr_reader :user_agent
1025
+
1026
+ def self.inner_class_types
1027
+ @inner_class_types = {}
1028
+ end
1029
+
1030
+ def self.field_remappings
1031
+ @field_remappings = {}
1032
+ end
647
1033
  end
648
1034
  # Attribute for field tos_acceptance
649
1035
  attr_reader :tos_acceptance
1036
+
1037
+ def self.inner_class_types
1038
+ @inner_class_types = { tos_acceptance: TosAcceptance }
1039
+ end
1040
+
1041
+ def self.field_remappings
1042
+ @field_remappings = {}
1043
+ end
650
1044
  end
651
1045
  # Attribute for field bacs_debit_payments
652
1046
  attr_reader :bacs_debit_payments
@@ -674,6 +1068,28 @@ module Stripe
674
1068
  attr_reader :tax_forms
675
1069
  # Attribute for field treasury
676
1070
  attr_reader :treasury
1071
+
1072
+ def self.inner_class_types
1073
+ @inner_class_types = {
1074
+ bacs_debit_payments: BacsDebitPayments,
1075
+ bank_bca_onboarding: BankBcaOnboarding,
1076
+ branding: Branding,
1077
+ capital: Capital,
1078
+ card_issuing: CardIssuing,
1079
+ card_payments: CardPayments,
1080
+ dashboard: Dashboard,
1081
+ invoices: Invoices,
1082
+ payments: Payments,
1083
+ payouts: Payouts,
1084
+ sepa_debit_payments: SepaDebitPayments,
1085
+ tax_forms: TaxForms,
1086
+ treasury: Treasury,
1087
+ }
1088
+ end
1089
+
1090
+ def self.field_remappings
1091
+ @field_remappings = {}
1092
+ end
677
1093
  end
678
1094
 
679
1095
  class TosAcceptance < Stripe::StripeObject
@@ -685,6 +1101,14 @@ module Stripe
685
1101
  attr_reader :service_agreement
686
1102
  # The user agent of the browser from which the account representative accepted their service agreement
687
1103
  attr_reader :user_agent
1104
+
1105
+ def self.inner_class_types
1106
+ @inner_class_types = {}
1107
+ end
1108
+
1109
+ def self.field_remappings
1110
+ @field_remappings = {}
1111
+ end
688
1112
  end
689
1113
 
690
1114
  class DeleteParams < Stripe::RequestParams; end
@@ -5726,5 +6150,24 @@ module Stripe
5726
6150
  end
5727
6151
  update_hash
5728
6152
  end
6153
+
6154
+ def self.inner_class_types
6155
+ @inner_class_types = {
6156
+ business_profile: BusinessProfile,
6157
+ capabilities: Capabilities,
6158
+ company: Company,
6159
+ controller: Controller,
6160
+ future_requirements: FutureRequirements,
6161
+ groups: Groups,
6162
+ requirements: Requirements,
6163
+ risk_controls: RiskControls,
6164
+ settings: Settings,
6165
+ tos_acceptance: TosAcceptance,
6166
+ }
6167
+ end
6168
+
6169
+ def self.field_remappings
6170
+ @field_remappings = {}
6171
+ end
5729
6172
  end
5730
6173
  end