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
@@ -20,6 +20,14 @@ module Stripe
20
20
  attr_reader :type
21
21
  # Details on when the current billing_mode was adopted.
22
22
  attr_reader :updated_at
23
+
24
+ def self.inner_class_types
25
+ @inner_class_types = {}
26
+ end
27
+
28
+ def self.field_remappings
29
+ @field_remappings = {}
30
+ end
23
31
  end
24
32
 
25
33
  class CurrentPhase < Stripe::StripeObject
@@ -27,6 +35,14 @@ module Stripe
27
35
  attr_reader :end_date
28
36
  # The start of this phase of the subscription schedule.
29
37
  attr_reader :start_date
38
+
39
+ def self.inner_class_types
40
+ @inner_class_types = {}
41
+ end
42
+
43
+ def self.field_remappings
44
+ @field_remappings = {}
45
+ end
30
46
  end
31
47
 
32
48
  class DefaultSettings < Stripe::StripeObject
@@ -36,6 +52,14 @@ module Stripe
36
52
  attr_reader :account
37
53
  # Type of the account referenced.
38
54
  attr_reader :type
55
+
56
+ def self.inner_class_types
57
+ @inner_class_types = {}
58
+ end
59
+
60
+ def self.field_remappings
61
+ @field_remappings = {}
62
+ end
39
63
  end
40
64
  # If Stripe disabled automatic tax, this enum describes why.
41
65
  attr_reader :disabled_reason
@@ -43,6 +67,14 @@ module Stripe
43
67
  attr_reader :enabled
44
68
  # 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.
45
69
  attr_reader :liability
70
+
71
+ def self.inner_class_types
72
+ @inner_class_types = { liability: Liability }
73
+ end
74
+
75
+ def self.field_remappings
76
+ @field_remappings = {}
77
+ end
46
78
  end
47
79
 
48
80
  class BillingThresholds < Stripe::StripeObject
@@ -50,6 +82,14 @@ module Stripe
50
82
  attr_reader :amount_gte
51
83
  # 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`.
52
84
  attr_reader :reset_billing_cycle_anchor
85
+
86
+ def self.inner_class_types
87
+ @inner_class_types = {}
88
+ end
89
+
90
+ def self.field_remappings
91
+ @field_remappings = {}
92
+ end
53
93
  end
54
94
 
55
95
  class InvoiceSettings < Stripe::StripeObject
@@ -58,6 +98,14 @@ module Stripe
58
98
  attr_reader :account
59
99
  # Type of the account referenced.
60
100
  attr_reader :type
101
+
102
+ def self.inner_class_types
103
+ @inner_class_types = {}
104
+ end
105
+
106
+ def self.field_remappings
107
+ @field_remappings = {}
108
+ end
61
109
  end
62
110
  # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
63
111
  attr_reader :account_tax_ids
@@ -65,6 +113,14 @@ module Stripe
65
113
  attr_reader :days_until_due
66
114
  # Attribute for field issuer
67
115
  attr_reader :issuer
116
+
117
+ def self.inner_class_types
118
+ @inner_class_types = { issuer: Issuer }
119
+ end
120
+
121
+ def self.field_remappings
122
+ @field_remappings = {}
123
+ end
68
124
  end
69
125
 
70
126
  class TransferData < Stripe::StripeObject
@@ -72,6 +128,14 @@ module Stripe
72
128
  attr_reader :amount_percent
73
129
  # The account where funds from the payment will be transferred to upon payment success.
74
130
  attr_reader :destination
131
+
132
+ def self.inner_class_types
133
+ @inner_class_types = {}
134
+ end
135
+
136
+ def self.field_remappings
137
+ @field_remappings = {}
138
+ end
75
139
  end
76
140
  # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account during this phase of the schedule.
77
141
  attr_reader :application_fee_percent
@@ -93,6 +157,19 @@ module Stripe
93
157
  attr_reader :on_behalf_of
94
158
  # The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
95
159
  attr_reader :transfer_data
160
+
161
+ def self.inner_class_types
162
+ @inner_class_types = {
163
+ automatic_tax: AutomaticTax,
164
+ billing_thresholds: BillingThresholds,
165
+ invoice_settings: InvoiceSettings,
166
+ transfer_data: TransferData,
167
+ }
168
+ end
169
+
170
+ def self.field_remappings
171
+ @field_remappings = {}
172
+ end
96
173
  end
97
174
 
98
175
  class LastPriceMigrationError < Stripe::StripeObject
@@ -101,6 +178,14 @@ module Stripe
101
178
  attr_reader :source_price
102
179
  # The intended resulting price of the migration.
103
180
  attr_reader :target_price
181
+
182
+ def self.inner_class_types
183
+ @inner_class_types = {}
184
+ end
185
+
186
+ def self.field_remappings
187
+ @field_remappings = {}
188
+ end
104
189
  end
105
190
  # The time at which the price migration encountered an error.
106
191
  attr_reader :errored_at
@@ -108,6 +193,14 @@ module Stripe
108
193
  attr_reader :failed_transitions
109
194
  # The type of error encountered by the price migration.
110
195
  attr_reader :type
196
+
197
+ def self.inner_class_types
198
+ @inner_class_types = { failed_transitions: FailedTransition }
199
+ end
200
+
201
+ def self.field_remappings
202
+ @field_remappings = {}
203
+ end
111
204
  end
112
205
 
113
206
  class Phase < Stripe::StripeObject
@@ -118,6 +211,14 @@ module Stripe
118
211
  attr_reader :timestamp
119
212
  # The discount end type.
120
213
  attr_reader :type
214
+
215
+ def self.inner_class_types
216
+ @inner_class_types = {}
217
+ end
218
+
219
+ def self.field_remappings
220
+ @field_remappings = {}
221
+ end
121
222
  end
122
223
  # ID of the coupon to create a new discount for.
123
224
  attr_reader :coupon
@@ -127,6 +228,14 @@ module Stripe
127
228
  attr_reader :discount_end
128
229
  # ID of the promotion code to create a new discount for.
129
230
  attr_reader :promotion_code
231
+
232
+ def self.inner_class_types
233
+ @inner_class_types = { discount_end: DiscountEnd }
234
+ end
235
+
236
+ def self.field_remappings
237
+ @field_remappings = {}
238
+ end
130
239
  end
131
240
 
132
241
  class Period < Stripe::StripeObject
@@ -135,6 +244,14 @@ module Stripe
135
244
  attr_reader :timestamp
136
245
  # Select how to calculate the end of the invoice item period.
137
246
  attr_reader :type
247
+
248
+ def self.inner_class_types
249
+ @inner_class_types = {}
250
+ end
251
+
252
+ def self.field_remappings
253
+ @field_remappings = {}
254
+ end
138
255
  end
139
256
 
140
257
  class Start < Stripe::StripeObject
@@ -142,11 +259,27 @@ module Stripe
142
259
  attr_reader :timestamp
143
260
  # Select how to calculate the start of the invoice item period.
144
261
  attr_reader :type
262
+
263
+ def self.inner_class_types
264
+ @inner_class_types = {}
265
+ end
266
+
267
+ def self.field_remappings
268
+ @field_remappings = {}
269
+ end
145
270
  end
146
271
  # Attribute for field end
147
272
  attr_reader :end
148
273
  # Attribute for field start
149
274
  attr_reader :start
275
+
276
+ def self.inner_class_types
277
+ @inner_class_types = { end: End, start: Start }
278
+ end
279
+
280
+ def self.field_remappings
281
+ @field_remappings = {}
282
+ end
150
283
  end
151
284
  # The stackable discounts that will be applied to the item.
152
285
  attr_reader :discounts
@@ -160,6 +293,14 @@ module Stripe
160
293
  attr_reader :quantity
161
294
  # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
162
295
  attr_reader :tax_rates
296
+
297
+ def self.inner_class_types
298
+ @inner_class_types = { discounts: Discount, period: Period }
299
+ end
300
+
301
+ def self.field_remappings
302
+ @field_remappings = {}
303
+ end
163
304
  end
164
305
 
165
306
  class AutomaticTax < Stripe::StripeObject
@@ -168,6 +309,14 @@ module Stripe
168
309
  attr_reader :account
169
310
  # Type of the account referenced.
170
311
  attr_reader :type
312
+
313
+ def self.inner_class_types
314
+ @inner_class_types = {}
315
+ end
316
+
317
+ def self.field_remappings
318
+ @field_remappings = {}
319
+ end
171
320
  end
172
321
  # If Stripe disabled automatic tax, this enum describes why.
173
322
  attr_reader :disabled_reason
@@ -175,6 +324,14 @@ module Stripe
175
324
  attr_reader :enabled
176
325
  # 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.
177
326
  attr_reader :liability
327
+
328
+ def self.inner_class_types
329
+ @inner_class_types = { liability: Liability }
330
+ end
331
+
332
+ def self.field_remappings
333
+ @field_remappings = {}
334
+ end
178
335
  end
179
336
 
180
337
  class BillingThresholds < Stripe::StripeObject
@@ -182,6 +339,14 @@ module Stripe
182
339
  attr_reader :amount_gte
183
340
  # 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`.
184
341
  attr_reader :reset_billing_cycle_anchor
342
+
343
+ def self.inner_class_types
344
+ @inner_class_types = {}
345
+ end
346
+
347
+ def self.field_remappings
348
+ @field_remappings = {}
349
+ end
185
350
  end
186
351
 
187
352
  class Discount < Stripe::StripeObject
@@ -190,6 +355,14 @@ module Stripe
190
355
  attr_reader :timestamp
191
356
  # The discount end type.
192
357
  attr_reader :type
358
+
359
+ def self.inner_class_types
360
+ @inner_class_types = {}
361
+ end
362
+
363
+ def self.field_remappings
364
+ @field_remappings = {}
365
+ end
193
366
  end
194
367
  # ID of the coupon to create a new discount for.
195
368
  attr_reader :coupon
@@ -199,6 +372,14 @@ module Stripe
199
372
  attr_reader :discount_end
200
373
  # ID of the promotion code to create a new discount for.
201
374
  attr_reader :promotion_code
375
+
376
+ def self.inner_class_types
377
+ @inner_class_types = { discount_end: DiscountEnd }
378
+ end
379
+
380
+ def self.field_remappings
381
+ @field_remappings = {}
382
+ end
202
383
  end
203
384
 
204
385
  class InvoiceSettings < Stripe::StripeObject
@@ -207,6 +388,14 @@ module Stripe
207
388
  attr_reader :account
208
389
  # Type of the account referenced.
209
390
  attr_reader :type
391
+
392
+ def self.inner_class_types
393
+ @inner_class_types = {}
394
+ end
395
+
396
+ def self.field_remappings
397
+ @field_remappings = {}
398
+ end
210
399
  end
211
400
  # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
212
401
  attr_reader :account_tax_ids
@@ -214,12 +403,28 @@ module Stripe
214
403
  attr_reader :days_until_due
215
404
  # The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
216
405
  attr_reader :issuer
406
+
407
+ def self.inner_class_types
408
+ @inner_class_types = { issuer: Issuer }
409
+ end
410
+
411
+ def self.field_remappings
412
+ @field_remappings = {}
413
+ end
217
414
  end
218
415
 
219
416
  class Item < Stripe::StripeObject
220
417
  class BillingThresholds < Stripe::StripeObject
221
418
  # Usage threshold that triggers the subscription to create an invoice
222
419
  attr_reader :usage_gte
420
+
421
+ def self.inner_class_types
422
+ @inner_class_types = {}
423
+ end
424
+
425
+ def self.field_remappings
426
+ @field_remappings = {}
427
+ end
223
428
  end
224
429
 
225
430
  class Discount < Stripe::StripeObject
@@ -228,6 +433,14 @@ module Stripe
228
433
  attr_reader :timestamp
229
434
  # The discount end type.
230
435
  attr_reader :type
436
+
437
+ def self.inner_class_types
438
+ @inner_class_types = {}
439
+ end
440
+
441
+ def self.field_remappings
442
+ @field_remappings = {}
443
+ end
231
444
  end
232
445
  # ID of the coupon to create a new discount for.
233
446
  attr_reader :coupon
@@ -237,6 +450,14 @@ module Stripe
237
450
  attr_reader :discount_end
238
451
  # ID of the promotion code to create a new discount for.
239
452
  attr_reader :promotion_code
453
+
454
+ def self.inner_class_types
455
+ @inner_class_types = { discount_end: DiscountEnd }
456
+ end
457
+
458
+ def self.field_remappings
459
+ @field_remappings = {}
460
+ end
240
461
  end
241
462
 
242
463
  class Trial < Stripe::StripeObject
@@ -244,6 +465,14 @@ module Stripe
244
465
  attr_reader :converts_to
245
466
  # Determines the type of trial for this item.
246
467
  attr_reader :type
468
+
469
+ def self.inner_class_types
470
+ @inner_class_types = {}
471
+ end
472
+
473
+ def self.field_remappings
474
+ @field_remappings = {}
475
+ end
247
476
  end
248
477
  # Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
249
478
  attr_reader :billing_thresholds
@@ -261,11 +490,31 @@ module Stripe
261
490
  attr_reader :tax_rates
262
491
  # Options that configure the trial on the subscription item.
263
492
  attr_reader :trial
493
+
494
+ def self.inner_class_types
495
+ @inner_class_types = {
496
+ billing_thresholds: BillingThresholds,
497
+ discounts: Discount,
498
+ trial: Trial,
499
+ }
500
+ end
501
+
502
+ def self.field_remappings
503
+ @field_remappings = {}
504
+ end
264
505
  end
265
506
 
266
507
  class PauseCollection < Stripe::StripeObject
267
508
  # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
268
509
  attr_reader :behavior
510
+
511
+ def self.inner_class_types
512
+ @inner_class_types = {}
513
+ end
514
+
515
+ def self.field_remappings
516
+ @field_remappings = {}
517
+ end
269
518
  end
270
519
 
271
520
  class TransferData < Stripe::StripeObject
@@ -273,15 +522,39 @@ module Stripe
273
522
  attr_reader :amount_percent
274
523
  # The account where funds from the payment will be transferred to upon payment success.
275
524
  attr_reader :destination
525
+
526
+ def self.inner_class_types
527
+ @inner_class_types = {}
528
+ end
529
+
530
+ def self.field_remappings
531
+ @field_remappings = {}
532
+ end
276
533
  end
277
534
 
278
535
  class TrialSettings < Stripe::StripeObject
279
536
  class EndBehavior < Stripe::StripeObject
280
537
  # Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
281
538
  attr_reader :prorate_up_front
539
+
540
+ def self.inner_class_types
541
+ @inner_class_types = {}
542
+ end
543
+
544
+ def self.field_remappings
545
+ @field_remappings = {}
546
+ end
282
547
  end
283
548
  # Defines how the subscription should behave when a trial ends.
284
549
  attr_reader :end_behavior
550
+
551
+ def self.inner_class_types
552
+ @inner_class_types = { end_behavior: EndBehavior }
553
+ end
554
+
555
+ def self.field_remappings
556
+ @field_remappings = {}
557
+ end
285
558
  end
286
559
  # A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
287
560
  attr_reader :add_invoice_items
@@ -329,6 +602,24 @@ module Stripe
329
602
  attr_reader :trial_end
330
603
  # Settings related to any trials on the subscription during this phase.
331
604
  attr_reader :trial_settings
605
+
606
+ def self.inner_class_types
607
+ @inner_class_types = {
608
+ add_invoice_items: AddInvoiceItem,
609
+ automatic_tax: AutomaticTax,
610
+ billing_thresholds: BillingThresholds,
611
+ discounts: Discount,
612
+ invoice_settings: InvoiceSettings,
613
+ items: Item,
614
+ pause_collection: PauseCollection,
615
+ transfer_data: TransferData,
616
+ trial_settings: TrialSettings,
617
+ }
618
+ end
619
+
620
+ def self.field_remappings
621
+ @field_remappings = {}
622
+ end
332
623
  end
333
624
 
334
625
  class Prebilling < Stripe::StripeObject
@@ -340,6 +631,14 @@ module Stripe
340
631
  attr_reader :period_start
341
632
  # Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
342
633
  attr_reader :update_behavior
634
+
635
+ def self.inner_class_types
636
+ @inner_class_types = {}
637
+ end
638
+
639
+ def self.field_remappings
640
+ @field_remappings = {}
641
+ end
343
642
  end
344
643
 
345
644
  class ListParams < Stripe::RequestParams
@@ -2653,5 +2952,20 @@ module Stripe
2653
2952
  opts: opts
2654
2953
  )
2655
2954
  end
2955
+
2956
+ def self.inner_class_types
2957
+ @inner_class_types = {
2958
+ billing_mode: BillingMode,
2959
+ current_phase: CurrentPhase,
2960
+ default_settings: DefaultSettings,
2961
+ last_price_migration_error: LastPriceMigrationError,
2962
+ phases: Phase,
2963
+ prebilling: Prebilling,
2964
+ }
2965
+ end
2966
+
2967
+ def self.field_remappings
2968
+ @field_remappings = {}
2969
+ end
2656
2970
  end
2657
2971
  end
@@ -14,11 +14,27 @@ module Stripe
14
14
  class Committed < Stripe::StripeObject
15
15
  # The [Tax Transaction](https://stripe.com/docs/api/tax/transaction/object)
16
16
  attr_reader :transaction
17
+
18
+ def self.inner_class_types
19
+ @inner_class_types = {}
20
+ end
21
+
22
+ def self.field_remappings
23
+ @field_remappings = {}
24
+ end
17
25
  end
18
26
 
19
27
  class Errored < Stripe::StripeObject
20
28
  # Details on why we couldn't commit the tax transaction.
21
29
  attr_reader :reason
30
+
31
+ def self.inner_class_types
32
+ @inner_class_types = {}
33
+ end
34
+
35
+ def self.field_remappings
36
+ @field_remappings = {}
37
+ end
22
38
  end
23
39
  # Attribute for field committed
24
40
  attr_reader :committed
@@ -28,6 +44,14 @@ module Stripe
28
44
  attr_reader :source
29
45
  # The status of the transaction attempt. This can be `errored` or `committed`.
30
46
  attr_reader :status
47
+
48
+ def self.inner_class_types
49
+ @inner_class_types = { committed: Committed, errored: Errored }
50
+ end
51
+
52
+ def self.field_remappings
53
+ @field_remappings = {}
54
+ end
31
55
  end
32
56
 
33
57
  class FindParams < Stripe::RequestParams
@@ -61,6 +85,14 @@ module Stripe
61
85
  opts: opts
62
86
  )
63
87
  end
88
+
89
+ def self.inner_class_types
90
+ @inner_class_types = { tax_transaction_attempts: TaxTransactionAttempt }
91
+ end
92
+
93
+ def self.field_remappings
94
+ @field_remappings = {}
95
+ end
64
96
  end
65
97
  end
66
98
  end