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
@@ -22,6 +22,14 @@ module Stripe
22
22
  attr_reader :account
23
23
  # Type of the account referenced.
24
24
  attr_reader :type
25
+
26
+ def self.inner_class_types
27
+ @inner_class_types = {}
28
+ end
29
+
30
+ def self.field_remappings
31
+ @field_remappings = {}
32
+ end
25
33
  end
26
34
  # If Stripe disabled automatic tax, this enum describes why.
27
35
  attr_reader :disabled_reason
@@ -29,6 +37,14 @@ module Stripe
29
37
  attr_reader :enabled
30
38
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
31
39
  attr_reader :liability
40
+
41
+ def self.inner_class_types
42
+ @inner_class_types = { liability: Liability }
43
+ end
44
+
45
+ def self.field_remappings
46
+ @field_remappings = {}
47
+ end
32
48
  end
33
49
 
34
50
  class BillingCycleAnchorConfig < Stripe::StripeObject
@@ -42,6 +58,14 @@ module Stripe
42
58
  attr_reader :month
43
59
  # The second of the minute of the billing_cycle_anchor.
44
60
  attr_reader :second
61
+
62
+ def self.inner_class_types
63
+ @inner_class_types = {}
64
+ end
65
+
66
+ def self.field_remappings
67
+ @field_remappings = {}
68
+ end
45
69
  end
46
70
 
47
71
  class BillingMode < Stripe::StripeObject
@@ -49,6 +73,14 @@ module Stripe
49
73
  attr_reader :type
50
74
  # Details on when the current billing_mode was adopted.
51
75
  attr_reader :updated_at
76
+
77
+ def self.inner_class_types
78
+ @inner_class_types = {}
79
+ end
80
+
81
+ def self.field_remappings
82
+ @field_remappings = {}
83
+ end
52
84
  end
53
85
 
54
86
  class BillingThresholds < Stripe::StripeObject
@@ -56,6 +88,14 @@ module Stripe
56
88
  attr_reader :amount_gte
57
89
  # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`.
58
90
  attr_reader :reset_billing_cycle_anchor
91
+
92
+ def self.inner_class_types
93
+ @inner_class_types = {}
94
+ end
95
+
96
+ def self.field_remappings
97
+ @field_remappings = {}
98
+ end
59
99
  end
60
100
 
61
101
  class CancellationDetails < Stripe::StripeObject
@@ -65,6 +105,14 @@ module Stripe
65
105
  attr_reader :feedback
66
106
  # Why this subscription was canceled.
67
107
  attr_reader :reason
108
+
109
+ def self.inner_class_types
110
+ @inner_class_types = {}
111
+ end
112
+
113
+ def self.field_remappings
114
+ @field_remappings = {}
115
+ end
68
116
  end
69
117
 
70
118
  class InvoiceSettings < Stripe::StripeObject
@@ -73,11 +121,27 @@ module Stripe
73
121
  attr_reader :account
74
122
  # Type of the account referenced.
75
123
  attr_reader :type
124
+
125
+ def self.inner_class_types
126
+ @inner_class_types = {}
127
+ end
128
+
129
+ def self.field_remappings
130
+ @field_remappings = {}
131
+ end
76
132
  end
77
133
  # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
78
134
  attr_reader :account_tax_ids
79
135
  # Attribute for field issuer
80
136
  attr_reader :issuer
137
+
138
+ def self.inner_class_types
139
+ @inner_class_types = { issuer: Issuer }
140
+ end
141
+
142
+ def self.field_remappings
143
+ @field_remappings = {}
144
+ end
81
145
  end
82
146
 
83
147
  class LastPriceMigrationError < Stripe::StripeObject
@@ -86,6 +150,14 @@ module Stripe
86
150
  attr_reader :source_price
87
151
  # The intended resulting price of the migration.
88
152
  attr_reader :target_price
153
+
154
+ def self.inner_class_types
155
+ @inner_class_types = {}
156
+ end
157
+
158
+ def self.field_remappings
159
+ @field_remappings = {}
160
+ end
89
161
  end
90
162
  # The time at which the price migration encountered an error.
91
163
  attr_reader :errored_at
@@ -93,6 +165,14 @@ module Stripe
93
165
  attr_reader :failed_transitions
94
166
  # The type of error encountered by the price migration.
95
167
  attr_reader :type
168
+
169
+ def self.inner_class_types
170
+ @inner_class_types = { failed_transitions: FailedTransition }
171
+ end
172
+
173
+ def self.field_remappings
174
+ @field_remappings = {}
175
+ end
96
176
  end
97
177
 
98
178
  class PauseCollection < Stripe::StripeObject
@@ -100,6 +180,14 @@ module Stripe
100
180
  attr_reader :behavior
101
181
  # The time after which the subscription will resume collecting payments.
102
182
  attr_reader :resumes_at
183
+
184
+ def self.inner_class_types
185
+ @inner_class_types = {}
186
+ end
187
+
188
+ def self.field_remappings
189
+ @field_remappings = {}
190
+ end
103
191
  end
104
192
 
105
193
  class PaymentSettings < Stripe::StripeObject
@@ -108,16 +196,40 @@ module Stripe
108
196
  class MandateOptions < Stripe::StripeObject
109
197
  # Transaction type of the mandate.
110
198
  attr_reader :transaction_type
199
+
200
+ def self.inner_class_types
201
+ @inner_class_types = {}
202
+ end
203
+
204
+ def self.field_remappings
205
+ @field_remappings = {}
206
+ end
111
207
  end
112
208
  # Attribute for field mandate_options
113
209
  attr_reader :mandate_options
114
210
  # Bank account verification method.
115
211
  attr_reader :verification_method
212
+
213
+ def self.inner_class_types
214
+ @inner_class_types = { mandate_options: MandateOptions }
215
+ end
216
+
217
+ def self.field_remappings
218
+ @field_remappings = {}
219
+ end
116
220
  end
117
221
 
118
222
  class Bancontact < Stripe::StripeObject
119
223
  # Preferred language of the Bancontact authorization page that the customer is redirected to.
120
224
  attr_reader :preferred_language
225
+
226
+ def self.inner_class_types
227
+ @inner_class_types = {}
228
+ end
229
+
230
+ def self.field_remappings
231
+ @field_remappings = {}
232
+ end
121
233
  end
122
234
 
123
235
  class Card < Stripe::StripeObject
@@ -128,6 +240,14 @@ module Stripe
128
240
  attr_reader :amount_type
129
241
  # A description of the mandate or subscription that is meant to be displayed to the customer.
130
242
  attr_reader :description
243
+
244
+ def self.inner_class_types
245
+ @inner_class_types = {}
246
+ end
247
+
248
+ def self.field_remappings
249
+ @field_remappings = {}
250
+ end
131
251
  end
132
252
  # Attribute for field mandate_options
133
253
  attr_reader :mandate_options
@@ -135,6 +255,14 @@ module Stripe
135
255
  attr_reader :network
136
256
  # We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
137
257
  attr_reader :request_three_d_secure
258
+
259
+ def self.inner_class_types
260
+ @inner_class_types = { mandate_options: MandateOptions }
261
+ end
262
+
263
+ def self.field_remappings
264
+ @field_remappings = {}
265
+ end
138
266
  end
139
267
 
140
268
  class CustomerBalance < Stripe::StripeObject
@@ -142,21 +270,71 @@ module Stripe
142
270
  class EuBankTransfer < Stripe::StripeObject
143
271
  # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
144
272
  attr_reader :country
273
+
274
+ def self.inner_class_types
275
+ @inner_class_types = {}
276
+ end
277
+
278
+ def self.field_remappings
279
+ @field_remappings = {}
280
+ end
145
281
  end
146
282
  # Attribute for field eu_bank_transfer
147
283
  attr_reader :eu_bank_transfer
148
284
  # The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
149
285
  attr_reader :type
286
+
287
+ def self.inner_class_types
288
+ @inner_class_types = { eu_bank_transfer: EuBankTransfer }
289
+ end
290
+
291
+ def self.field_remappings
292
+ @field_remappings = {}
293
+ end
150
294
  end
151
295
  # Attribute for field bank_transfer
152
296
  attr_reader :bank_transfer
153
297
  # The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
154
298
  attr_reader :funding_type
299
+
300
+ def self.inner_class_types
301
+ @inner_class_types = { bank_transfer: BankTransfer }
302
+ end
303
+
304
+ def self.field_remappings
305
+ @field_remappings = {}
306
+ end
307
+ end
308
+
309
+ class IdBankTransfer < Stripe::StripeObject
310
+ def self.inner_class_types
311
+ @inner_class_types = {}
312
+ end
313
+
314
+ def self.field_remappings
315
+ @field_remappings = {}
316
+ end
155
317
  end
156
318
 
157
- class IdBankTransfer < Stripe::StripeObject; end
158
- class Konbini < Stripe::StripeObject; end
159
- class SepaDebit < Stripe::StripeObject; end
319
+ class Konbini < Stripe::StripeObject
320
+ def self.inner_class_types
321
+ @inner_class_types = {}
322
+ end
323
+
324
+ def self.field_remappings
325
+ @field_remappings = {}
326
+ end
327
+ end
328
+
329
+ class SepaDebit < Stripe::StripeObject
330
+ def self.inner_class_types
331
+ @inner_class_types = {}
332
+ end
333
+
334
+ def self.field_remappings
335
+ @field_remappings = {}
336
+ end
337
+ end
160
338
 
161
339
  class Upi < Stripe::StripeObject
162
340
  class MandateOptions < Stripe::StripeObject
@@ -168,9 +346,25 @@ module Stripe
168
346
  attr_reader :description
169
347
  # End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
170
348
  attr_reader :end_date
349
+
350
+ def self.inner_class_types
351
+ @inner_class_types = {}
352
+ end
353
+
354
+ def self.field_remappings
355
+ @field_remappings = {}
356
+ end
171
357
  end
172
358
  # Attribute for field mandate_options
173
359
  attr_reader :mandate_options
360
+
361
+ def self.inner_class_types
362
+ @inner_class_types = { mandate_options: MandateOptions }
363
+ end
364
+
365
+ def self.field_remappings
366
+ @field_remappings = {}
367
+ end
174
368
  end
175
369
 
176
370
  class UsBankAccount < Stripe::StripeObject
@@ -180,6 +374,14 @@ module Stripe
180
374
  attr_reader :account_subcategories
181
375
  # The institution to use to filter for possible accounts to link.
182
376
  attr_reader :institution
377
+
378
+ def self.inner_class_types
379
+ @inner_class_types = {}
380
+ end
381
+
382
+ def self.field_remappings
383
+ @field_remappings = {}
384
+ end
183
385
  end
184
386
  # Attribute for field filters
185
387
  attr_reader :filters
@@ -187,11 +389,27 @@ module Stripe
187
389
  attr_reader :permissions
188
390
  # Data features requested to be retrieved upon account creation.
189
391
  attr_reader :prefetch
392
+
393
+ def self.inner_class_types
394
+ @inner_class_types = { filters: Filters }
395
+ end
396
+
397
+ def self.field_remappings
398
+ @field_remappings = {}
399
+ end
190
400
  end
191
401
  # Attribute for field financial_connections
192
402
  attr_reader :financial_connections
193
403
  # Bank account verification method.
194
404
  attr_reader :verification_method
405
+
406
+ def self.inner_class_types
407
+ @inner_class_types = { financial_connections: FinancialConnections }
408
+ end
409
+
410
+ def self.field_remappings
411
+ @field_remappings = {}
412
+ end
195
413
  end
196
414
  # This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription.
197
415
  attr_reader :acss_debit
@@ -211,6 +429,24 @@ module Stripe
211
429
  attr_reader :upi
212
430
  # This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
213
431
  attr_reader :us_bank_account
432
+
433
+ def self.inner_class_types
434
+ @inner_class_types = {
435
+ acss_debit: AcssDebit,
436
+ bancontact: Bancontact,
437
+ card: Card,
438
+ customer_balance: CustomerBalance,
439
+ id_bank_transfer: IdBankTransfer,
440
+ konbini: Konbini,
441
+ sepa_debit: SepaDebit,
442
+ upi: Upi,
443
+ us_bank_account: UsBankAccount,
444
+ }
445
+ end
446
+
447
+ def self.field_remappings
448
+ @field_remappings = {}
449
+ end
214
450
  end
215
451
  # Payment-method-specific configuration to provide to invoices created by the subscription.
216
452
  attr_reader :payment_method_options
@@ -218,6 +454,14 @@ module Stripe
218
454
  attr_reader :payment_method_types
219
455
  # Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`.
220
456
  attr_reader :save_default_payment_method
457
+
458
+ def self.inner_class_types
459
+ @inner_class_types = { payment_method_options: PaymentMethodOptions }
460
+ end
461
+
462
+ def self.field_remappings
463
+ @field_remappings = {}
464
+ end
221
465
  end
222
466
 
223
467
  class PendingInvoiceItemInterval < Stripe::StripeObject
@@ -225,6 +469,14 @@ module Stripe
225
469
  attr_reader :interval
226
470
  # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
227
471
  attr_reader :interval_count
472
+
473
+ def self.inner_class_types
474
+ @inner_class_types = {}
475
+ end
476
+
477
+ def self.field_remappings
478
+ @field_remappings = {}
479
+ end
228
480
  end
229
481
 
230
482
  class PendingUpdate < Stripe::StripeObject
@@ -240,6 +492,14 @@ module Stripe
240
492
  attr_reader :trial_end
241
493
  # Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
242
494
  attr_reader :trial_from_plan
495
+
496
+ def self.inner_class_types
497
+ @inner_class_types = {}
498
+ end
499
+
500
+ def self.field_remappings
501
+ @field_remappings = {}
502
+ end
243
503
  end
244
504
 
245
505
  class Prebilling < Stripe::StripeObject
@@ -251,6 +511,14 @@ module Stripe
251
511
  attr_reader :period_start
252
512
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
253
513
  attr_reader :update_behavior
514
+
515
+ def self.inner_class_types
516
+ @inner_class_types = {}
517
+ end
518
+
519
+ def self.field_remappings
520
+ @field_remappings = {}
521
+ end
254
522
  end
255
523
 
256
524
  class TransferData < Stripe::StripeObject
@@ -258,15 +526,39 @@ module Stripe
258
526
  attr_reader :amount_percent
259
527
  # The account where funds from the payment will be transferred to upon payment success.
260
528
  attr_reader :destination
529
+
530
+ def self.inner_class_types
531
+ @inner_class_types = {}
532
+ end
533
+
534
+ def self.field_remappings
535
+ @field_remappings = {}
536
+ end
261
537
  end
262
538
 
263
539
  class TrialSettings < Stripe::StripeObject
264
540
  class EndBehavior < Stripe::StripeObject
265
541
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
266
542
  attr_reader :missing_payment_method
543
+
544
+ def self.inner_class_types
545
+ @inner_class_types = {}
546
+ end
547
+
548
+ def self.field_remappings
549
+ @field_remappings = {}
550
+ end
267
551
  end
268
552
  # Defines how a subscription behaves when a free trial ends.
269
553
  attr_reader :end_behavior
554
+
555
+ def self.inner_class_types
556
+ @inner_class_types = { end_behavior: EndBehavior }
557
+ end
558
+
559
+ def self.field_remappings
560
+ @field_remappings = {}
561
+ end
270
562
  end
271
563
 
272
564
  class CancelParams < Stripe::RequestParams
@@ -2444,5 +2736,28 @@ module Stripe
2444
2736
  end
2445
2737
 
2446
2738
  save_nested_resource :source
2739
+
2740
+ def self.inner_class_types
2741
+ @inner_class_types = {
2742
+ automatic_tax: AutomaticTax,
2743
+ billing_cycle_anchor_config: BillingCycleAnchorConfig,
2744
+ billing_mode: BillingMode,
2745
+ billing_thresholds: BillingThresholds,
2746
+ cancellation_details: CancellationDetails,
2747
+ invoice_settings: InvoiceSettings,
2748
+ last_price_migration_error: LastPriceMigrationError,
2749
+ pause_collection: PauseCollection,
2750
+ payment_settings: PaymentSettings,
2751
+ pending_invoice_item_interval: PendingInvoiceItemInterval,
2752
+ pending_update: PendingUpdate,
2753
+ prebilling: Prebilling,
2754
+ transfer_data: TransferData,
2755
+ trial_settings: TrialSettings,
2756
+ }
2757
+ end
2758
+
2759
+ def self.field_remappings
2760
+ @field_remappings = {}
2761
+ end
2447
2762
  end
2448
2763
  end
@@ -18,6 +18,14 @@ module Stripe
18
18
  class BillingThresholds < Stripe::StripeObject
19
19
  # Usage threshold that triggers the subscription to create an invoice
20
20
  attr_reader :usage_gte
21
+
22
+ def self.inner_class_types
23
+ @inner_class_types = {}
24
+ end
25
+
26
+ def self.field_remappings
27
+ @field_remappings = {}
28
+ end
21
29
  end
22
30
 
23
31
  class Trial < Stripe::StripeObject
@@ -25,6 +33,14 @@ module Stripe
25
33
  attr_reader :converts_to
26
34
  # Determines the type of trial for this item.
27
35
  attr_reader :type
36
+
37
+ def self.inner_class_types
38
+ @inner_class_types = {}
39
+ end
40
+
41
+ def self.field_remappings
42
+ @field_remappings = {}
43
+ end
28
44
  end
29
45
 
30
46
  class DeleteParams < Stripe::RequestParams
@@ -492,5 +508,13 @@ module Stripe
492
508
  opts: opts
493
509
  )
494
510
  end
511
+
512
+ def self.inner_class_types
513
+ @inner_class_types = { billing_thresholds: BillingThresholds, trial: Trial }
514
+ end
515
+
516
+ def self.field_remappings
517
+ @field_remappings = {}
518
+ end
495
519
  end
496
520
  end