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,14 +22,38 @@ module Stripe
22
22
  attr_reader :ip_address
23
23
  # The user agent of the browser from which the Mandate was accepted by the customer.
24
24
  attr_reader :user_agent
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 this is a Mandate accepted online, this hash contains details about the online acceptance.
27
35
  attr_reader :online
28
36
  # The type of customer acceptance information included with the Mandate.
29
37
  attr_reader :type
38
+
39
+ def self.inner_class_types
40
+ @inner_class_types = { online: Online }
41
+ end
42
+
43
+ def self.field_remappings
44
+ @field_remappings = {}
45
+ end
30
46
  end
31
47
  # This hash contains details about the customer acceptance of the Mandate.
32
48
  attr_reader :customer_acceptance
49
+
50
+ def self.inner_class_types
51
+ @inner_class_types = { customer_acceptance: CustomerAcceptance }
52
+ end
53
+
54
+ def self.field_remappings
55
+ @field_remappings = {}
56
+ end
33
57
  end
34
58
 
35
59
  class PaymentMethodOptions < Stripe::StripeObject
@@ -43,17 +67,49 @@ module Stripe
43
67
  attr_reader :interval
44
68
  # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
45
69
  attr_reader :type
70
+
71
+ def self.inner_class_types
72
+ @inner_class_types = {}
73
+ end
74
+
75
+ def self.field_remappings
76
+ @field_remappings = {}
77
+ end
46
78
  end
47
79
  # Attribute for field plan
48
80
  attr_reader :plan
81
+
82
+ def self.inner_class_types
83
+ @inner_class_types = { plan: Plan }
84
+ end
85
+
86
+ def self.field_remappings
87
+ @field_remappings = {}
88
+ end
49
89
  end
50
90
  # The `cvc_update` Token collected from the Payment Element.
51
91
  attr_reader :cvc_token
52
92
  # Installment configuration for payments.
53
93
  attr_reader :installments
94
+
95
+ def self.inner_class_types
96
+ @inner_class_types = { installments: Installments }
97
+ end
98
+
99
+ def self.field_remappings
100
+ @field_remappings = {}
101
+ end
54
102
  end
55
103
  # This hash contains the card payment method options.
56
104
  attr_reader :card
105
+
106
+ def self.inner_class_types
107
+ @inner_class_types = { card: Card }
108
+ end
109
+
110
+ def self.field_remappings
111
+ @field_remappings = {}
112
+ end
57
113
  end
58
114
 
59
115
  class PaymentMethodPreview < Stripe::StripeObject
@@ -70,13 +126,65 @@ module Stripe
70
126
  attr_reader :last4
71
127
  # Transit number of the bank account.
72
128
  attr_reader :transit_number
129
+
130
+ def self.inner_class_types
131
+ @inner_class_types = {}
132
+ end
133
+
134
+ def self.field_remappings
135
+ @field_remappings = {}
136
+ end
137
+ end
138
+
139
+ class Affirm < Stripe::StripeObject
140
+ def self.inner_class_types
141
+ @inner_class_types = {}
142
+ end
143
+
144
+ def self.field_remappings
145
+ @field_remappings = {}
146
+ end
147
+ end
148
+
149
+ class AfterpayClearpay < Stripe::StripeObject
150
+ def self.inner_class_types
151
+ @inner_class_types = {}
152
+ end
153
+
154
+ def self.field_remappings
155
+ @field_remappings = {}
156
+ end
157
+ end
158
+
159
+ class Alipay < Stripe::StripeObject
160
+ def self.inner_class_types
161
+ @inner_class_types = {}
162
+ end
163
+
164
+ def self.field_remappings
165
+ @field_remappings = {}
166
+ end
73
167
  end
74
168
 
75
- class Affirm < Stripe::StripeObject; end
76
- class AfterpayClearpay < Stripe::StripeObject; end
77
- class Alipay < Stripe::StripeObject; end
78
- class Alma < Stripe::StripeObject; end
79
- class AmazonPay < Stripe::StripeObject; end
169
+ class Alma < Stripe::StripeObject
170
+ def self.inner_class_types
171
+ @inner_class_types = {}
172
+ end
173
+
174
+ def self.field_remappings
175
+ @field_remappings = {}
176
+ end
177
+ end
178
+
179
+ class AmazonPay < Stripe::StripeObject
180
+ def self.inner_class_types
181
+ @inner_class_types = {}
182
+ end
183
+
184
+ def self.field_remappings
185
+ @field_remappings = {}
186
+ end
187
+ end
80
188
 
81
189
  class AuBecsDebit < Stripe::StripeObject
82
190
  # Six-digit number identifying bank and branch associated with this bank account.
@@ -85,6 +193,14 @@ module Stripe
85
193
  attr_reader :fingerprint
86
194
  # Last four digits of the bank account number.
87
195
  attr_reader :last4
196
+
197
+ def self.inner_class_types
198
+ @inner_class_types = {}
199
+ end
200
+
201
+ def self.field_remappings
202
+ @field_remappings = {}
203
+ end
88
204
  end
89
205
 
90
206
  class BacsDebit < Stripe::StripeObject
@@ -94,10 +210,35 @@ module Stripe
94
210
  attr_reader :last4
95
211
  # Sort code of the bank account. (e.g., `10-20-30`)
96
212
  attr_reader :sort_code
213
+
214
+ def self.inner_class_types
215
+ @inner_class_types = {}
216
+ end
217
+
218
+ def self.field_remappings
219
+ @field_remappings = {}
220
+ end
97
221
  end
98
222
 
99
- class Bancontact < Stripe::StripeObject; end
100
- class Billie < Stripe::StripeObject; end
223
+ class Bancontact < Stripe::StripeObject
224
+ def self.inner_class_types
225
+ @inner_class_types = {}
226
+ end
227
+
228
+ def self.field_remappings
229
+ @field_remappings = {}
230
+ end
231
+ end
232
+
233
+ class Billie < Stripe::StripeObject
234
+ def self.inner_class_types
235
+ @inner_class_types = {}
236
+ end
237
+
238
+ def self.field_remappings
239
+ @field_remappings = {}
240
+ end
241
+ end
101
242
 
102
243
  class BillingDetails < Stripe::StripeObject
103
244
  class Address < Stripe::StripeObject
@@ -113,6 +254,14 @@ module Stripe
113
254
  attr_reader :postal_code
114
255
  # State, county, province, or region.
115
256
  attr_reader :state
257
+
258
+ def self.inner_class_types
259
+ @inner_class_types = {}
260
+ end
261
+
262
+ def self.field_remappings
263
+ @field_remappings = {}
264
+ end
116
265
  end
117
266
  # Billing address.
118
267
  attr_reader :address
@@ -124,13 +273,37 @@ module Stripe
124
273
  attr_reader :phone
125
274
  # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
126
275
  attr_reader :tax_id
276
+
277
+ def self.inner_class_types
278
+ @inner_class_types = { address: Address }
279
+ end
280
+
281
+ def self.field_remappings
282
+ @field_remappings = {}
283
+ end
127
284
  end
128
285
 
129
- class Blik < Stripe::StripeObject; end
286
+ class Blik < Stripe::StripeObject
287
+ def self.inner_class_types
288
+ @inner_class_types = {}
289
+ end
290
+
291
+ def self.field_remappings
292
+ @field_remappings = {}
293
+ end
294
+ end
130
295
 
131
296
  class Boleto < Stripe::StripeObject
132
297
  # Uniquely identifies the customer tax id (CNPJ or CPF)
133
298
  attr_reader :tax_id
299
+
300
+ def self.inner_class_types
301
+ @inner_class_types = {}
302
+ end
303
+
304
+ def self.field_remappings
305
+ @field_remappings = {}
306
+ end
134
307
  end
135
308
 
136
309
  class Card < Stripe::StripeObject
@@ -141,6 +314,14 @@ module Stripe
141
314
  attr_reader :address_postal_code_check
142
315
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
143
316
  attr_reader :cvc_check
317
+
318
+ def self.inner_class_types
319
+ @inner_class_types = {}
320
+ end
321
+
322
+ def self.field_remappings
323
+ @field_remappings = {}
324
+ end
144
325
  end
145
326
 
146
327
  class GeneratedFrom < Stripe::StripeObject
@@ -151,6 +332,14 @@ module Stripe
151
332
  attr_reader :stored_at
152
333
  # The method used to process this payment method offline. Only deferred is allowed.
153
334
  attr_reader :type
335
+
336
+ def self.inner_class_types
337
+ @inner_class_types = {}
338
+ end
339
+
340
+ def self.field_remappings
341
+ @field_remappings = {}
342
+ end
154
343
  end
155
344
 
156
345
  class Receipt < Stripe::StripeObject
@@ -172,11 +361,27 @@ module Stripe
172
361
  attr_reader :terminal_verification_results
173
362
  # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
174
363
  attr_reader :transaction_status_information
364
+
365
+ def self.inner_class_types
366
+ @inner_class_types = {}
367
+ end
368
+
369
+ def self.field_remappings
370
+ @field_remappings = {}
371
+ end
175
372
  end
176
373
 
177
374
  class Wallet < Stripe::StripeObject
178
375
  # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
179
376
  attr_reader :type
377
+
378
+ def self.inner_class_types
379
+ @inner_class_types = {}
380
+ end
381
+
382
+ def self.field_remappings
383
+ @field_remappings = {}
384
+ end
180
385
  end
181
386
  # The authorized amount
182
387
  attr_reader :amount_authorized
@@ -230,11 +435,27 @@ module Stripe
230
435
  attr_reader :receipt
231
436
  # Attribute for field wallet
232
437
  attr_reader :wallet
438
+
439
+ def self.inner_class_types
440
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
441
+ end
442
+
443
+ def self.field_remappings
444
+ @field_remappings = {}
445
+ end
233
446
  end
234
447
  # Attribute for field card_present
235
448
  attr_reader :card_present
236
449
  # The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
237
450
  attr_reader :type
451
+
452
+ def self.inner_class_types
453
+ @inner_class_types = { card_present: CardPresent }
454
+ end
455
+
456
+ def self.field_remappings
457
+ @field_remappings = {}
458
+ end
238
459
  end
239
460
  # The charge that created this object.
240
461
  attr_reader :charge
@@ -242,6 +463,14 @@ module Stripe
242
463
  attr_reader :payment_method_details
243
464
  # The ID of the SetupAttempt that generated this PaymentMethod, if any.
244
465
  attr_reader :setup_attempt
466
+
467
+ def self.inner_class_types
468
+ @inner_class_types = { payment_method_details: PaymentMethodDetails }
469
+ end
470
+
471
+ def self.field_remappings
472
+ @field_remappings = {}
473
+ end
245
474
  end
246
475
 
247
476
  class Networks < Stripe::StripeObject
@@ -249,18 +478,69 @@ module Stripe
249
478
  attr_reader :available
250
479
  # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
251
480
  attr_reader :preferred
481
+
482
+ def self.inner_class_types
483
+ @inner_class_types = {}
484
+ end
485
+
486
+ def self.field_remappings
487
+ @field_remappings = {}
488
+ end
252
489
  end
253
490
 
254
491
  class ThreeDSecureUsage < Stripe::StripeObject
255
492
  # Whether 3D Secure is supported on this card.
256
493
  attr_reader :supported
494
+
495
+ def self.inner_class_types
496
+ @inner_class_types = {}
497
+ end
498
+
499
+ def self.field_remappings
500
+ @field_remappings = {}
501
+ end
257
502
  end
258
503
 
259
504
  class Wallet < Stripe::StripeObject
260
- class AmexExpressCheckout < Stripe::StripeObject; end
261
- class ApplePay < Stripe::StripeObject; end
262
- class GooglePay < Stripe::StripeObject; end
263
- class Link < Stripe::StripeObject; end
505
+ class AmexExpressCheckout < Stripe::StripeObject
506
+ def self.inner_class_types
507
+ @inner_class_types = {}
508
+ end
509
+
510
+ def self.field_remappings
511
+ @field_remappings = {}
512
+ end
513
+ end
514
+
515
+ class ApplePay < Stripe::StripeObject
516
+ def self.inner_class_types
517
+ @inner_class_types = {}
518
+ end
519
+
520
+ def self.field_remappings
521
+ @field_remappings = {}
522
+ end
523
+ end
524
+
525
+ class GooglePay < Stripe::StripeObject
526
+ def self.inner_class_types
527
+ @inner_class_types = {}
528
+ end
529
+
530
+ def self.field_remappings
531
+ @field_remappings = {}
532
+ end
533
+ end
534
+
535
+ class Link < Stripe::StripeObject
536
+ def self.inner_class_types
537
+ @inner_class_types = {}
538
+ end
539
+
540
+ def self.field_remappings
541
+ @field_remappings = {}
542
+ end
543
+ end
264
544
 
265
545
  class Masterpass < Stripe::StripeObject
266
546
  class BillingAddress < Stripe::StripeObject
@@ -276,6 +556,14 @@ module Stripe
276
556
  attr_reader :postal_code
277
557
  # State, county, province, or region.
278
558
  attr_reader :state
559
+
560
+ def self.inner_class_types
561
+ @inner_class_types = {}
562
+ end
563
+
564
+ def self.field_remappings
565
+ @field_remappings = {}
566
+ end
279
567
  end
280
568
 
281
569
  class ShippingAddress < Stripe::StripeObject
@@ -291,6 +579,14 @@ module Stripe
291
579
  attr_reader :postal_code
292
580
  # State, county, province, or region.
293
581
  attr_reader :state
582
+
583
+ def self.inner_class_types
584
+ @inner_class_types = {}
585
+ end
586
+
587
+ def self.field_remappings
588
+ @field_remappings = {}
589
+ end
294
590
  end
295
591
  # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
296
592
  attr_reader :billing_address
@@ -300,9 +596,28 @@ module Stripe
300
596
  attr_reader :name
301
597
  # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
302
598
  attr_reader :shipping_address
599
+
600
+ def self.inner_class_types
601
+ @inner_class_types = {
602
+ billing_address: BillingAddress,
603
+ shipping_address: ShippingAddress,
604
+ }
605
+ end
606
+
607
+ def self.field_remappings
608
+ @field_remappings = {}
609
+ end
303
610
  end
304
611
 
305
- class SamsungPay < Stripe::StripeObject; end
612
+ class SamsungPay < Stripe::StripeObject
613
+ def self.inner_class_types
614
+ @inner_class_types = {}
615
+ end
616
+
617
+ def self.field_remappings
618
+ @field_remappings = {}
619
+ end
620
+ end
306
621
 
307
622
  class VisaCheckout < Stripe::StripeObject
308
623
  class BillingAddress < Stripe::StripeObject
@@ -318,6 +633,14 @@ module Stripe
318
633
  attr_reader :postal_code
319
634
  # State, county, province, or region.
320
635
  attr_reader :state
636
+
637
+ def self.inner_class_types
638
+ @inner_class_types = {}
639
+ end
640
+
641
+ def self.field_remappings
642
+ @field_remappings = {}
643
+ end
321
644
  end
322
645
 
323
646
  class ShippingAddress < Stripe::StripeObject
@@ -333,6 +656,14 @@ module Stripe
333
656
  attr_reader :postal_code
334
657
  # State, county, province, or region.
335
658
  attr_reader :state
659
+
660
+ def self.inner_class_types
661
+ @inner_class_types = {}
662
+ end
663
+
664
+ def self.field_remappings
665
+ @field_remappings = {}
666
+ end
336
667
  end
337
668
  # Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
338
669
  attr_reader :billing_address
@@ -342,6 +673,17 @@ module Stripe
342
673
  attr_reader :name
343
674
  # Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
344
675
  attr_reader :shipping_address
676
+
677
+ def self.inner_class_types
678
+ @inner_class_types = {
679
+ billing_address: BillingAddress,
680
+ shipping_address: ShippingAddress,
681
+ }
682
+ end
683
+
684
+ def self.field_remappings
685
+ @field_remappings = {}
686
+ end
345
687
  end
346
688
  # Attribute for field amex_express_checkout
347
689
  attr_reader :amex_express_checkout
@@ -361,6 +703,22 @@ module Stripe
361
703
  attr_reader :type
362
704
  # Attribute for field visa_checkout
363
705
  attr_reader :visa_checkout
706
+
707
+ def self.inner_class_types
708
+ @inner_class_types = {
709
+ amex_express_checkout: AmexExpressCheckout,
710
+ apple_pay: ApplePay,
711
+ google_pay: GooglePay,
712
+ link: Link,
713
+ masterpass: Masterpass,
714
+ samsung_pay: SamsungPay,
715
+ visa_checkout: VisaCheckout,
716
+ }
717
+ end
718
+
719
+ def self.field_remappings
720
+ @field_remappings = {}
721
+ end
364
722
  end
365
723
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
366
724
  attr_reader :brand
@@ -398,6 +756,20 @@ module Stripe
398
756
  attr_reader :three_d_secure_usage
399
757
  # If this Card is part of a card wallet, this contains the details of the card wallet.
400
758
  attr_reader :wallet
759
+
760
+ def self.inner_class_types
761
+ @inner_class_types = {
762
+ checks: Checks,
763
+ generated_from: GeneratedFrom,
764
+ networks: Networks,
765
+ three_d_secure_usage: ThreeDSecureUsage,
766
+ wallet: Wallet,
767
+ }
768
+ end
769
+
770
+ def self.field_remappings
771
+ @field_remappings = {}
772
+ end
401
773
  end
402
774
 
403
775
  class CardPresent < Stripe::StripeObject
@@ -406,6 +778,14 @@ module Stripe
406
778
  attr_reader :available
407
779
  # The preferred network for the card.
408
780
  attr_reader :preferred
781
+
782
+ def self.inner_class_types
783
+ @inner_class_types = {}
784
+ end
785
+
786
+ def self.field_remappings
787
+ @field_remappings = {}
788
+ end
409
789
  end
410
790
 
411
791
  class Offline < Stripe::StripeObject
@@ -413,11 +793,27 @@ module Stripe
413
793
  attr_reader :stored_at
414
794
  # The method used to process this payment method offline. Only deferred is allowed.
415
795
  attr_reader :type
796
+
797
+ def self.inner_class_types
798
+ @inner_class_types = {}
799
+ end
800
+
801
+ def self.field_remappings
802
+ @field_remappings = {}
803
+ end
416
804
  end
417
805
 
418
806
  class Wallet < Stripe::StripeObject
419
807
  # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
420
808
  attr_reader :type
809
+
810
+ def self.inner_class_types
811
+ @inner_class_types = {}
812
+ end
813
+
814
+ def self.field_remappings
815
+ @field_remappings = {}
816
+ end
421
817
  end
422
818
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
423
819
  attr_reader :brand
@@ -455,6 +851,14 @@ module Stripe
455
851
  attr_reader :read_method
456
852
  # Attribute for field wallet
457
853
  attr_reader :wallet
854
+
855
+ def self.inner_class_types
856
+ @inner_class_types = { networks: Networks, offline: Offline, wallet: Wallet }
857
+ end
858
+
859
+ def self.field_remappings
860
+ @field_remappings = {}
861
+ end
458
862
  end
459
863
 
460
864
  class Cashapp < Stripe::StripeObject
@@ -462,14 +866,47 @@ module Stripe
462
866
  attr_reader :buyer_id
463
867
  # A public identifier for buyers using Cash App.
464
868
  attr_reader :cashtag
869
+
870
+ def self.inner_class_types
871
+ @inner_class_types = {}
872
+ end
873
+
874
+ def self.field_remappings
875
+ @field_remappings = {}
876
+ end
877
+ end
878
+
879
+ class Crypto < Stripe::StripeObject
880
+ def self.inner_class_types
881
+ @inner_class_types = {}
882
+ end
883
+
884
+ def self.field_remappings
885
+ @field_remappings = {}
886
+ end
465
887
  end
466
888
 
467
- class Crypto < Stripe::StripeObject; end
468
- class CustomerBalance < Stripe::StripeObject; end
889
+ class CustomerBalance < Stripe::StripeObject
890
+ def self.inner_class_types
891
+ @inner_class_types = {}
892
+ end
893
+
894
+ def self.field_remappings
895
+ @field_remappings = {}
896
+ end
897
+ end
469
898
 
470
899
  class Eps < Stripe::StripeObject
471
900
  # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
472
901
  attr_reader :bank
902
+
903
+ def self.inner_class_types
904
+ @inner_class_types = {}
905
+ end
906
+
907
+ def self.field_remappings
908
+ @field_remappings = {}
909
+ end
473
910
  end
474
911
 
475
912
  class Fpx < Stripe::StripeObject
@@ -477,11 +914,45 @@ module Stripe
477
914
  attr_reader :account_holder_type
478
915
  # The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
479
916
  attr_reader :bank
917
+
918
+ def self.inner_class_types
919
+ @inner_class_types = {}
920
+ end
921
+
922
+ def self.field_remappings
923
+ @field_remappings = {}
924
+ end
480
925
  end
481
926
 
482
- class Giropay < Stripe::StripeObject; end
483
- class Gopay < Stripe::StripeObject; end
484
- class Grabpay < Stripe::StripeObject; end
927
+ class Giropay < Stripe::StripeObject
928
+ def self.inner_class_types
929
+ @inner_class_types = {}
930
+ end
931
+
932
+ def self.field_remappings
933
+ @field_remappings = {}
934
+ end
935
+ end
936
+
937
+ class Gopay < Stripe::StripeObject
938
+ def self.inner_class_types
939
+ @inner_class_types = {}
940
+ end
941
+
942
+ def self.field_remappings
943
+ @field_remappings = {}
944
+ end
945
+ end
946
+
947
+ class Grabpay < Stripe::StripeObject
948
+ def self.inner_class_types
949
+ @inner_class_types = {}
950
+ end
951
+
952
+ def self.field_remappings
953
+ @field_remappings = {}
954
+ end
955
+ end
485
956
 
486
957
  class IdBankTransfer < Stripe::StripeObject
487
958
  # Attribute for field bank
@@ -492,6 +963,14 @@ module Stripe
492
963
  attr_reader :bank_name
493
964
  # Attribute for field display_name
494
965
  attr_reader :display_name
966
+
967
+ def self.inner_class_types
968
+ @inner_class_types = {}
969
+ end
970
+
971
+ def self.field_remappings
972
+ @field_remappings = {}
973
+ end
495
974
  end
496
975
 
497
976
  class Ideal < Stripe::StripeObject
@@ -499,6 +978,14 @@ module Stripe
499
978
  attr_reader :bank
500
979
  # The Bank Identifier Code of the customer's bank, if the bank was provided.
501
980
  attr_reader :bic
981
+
982
+ def self.inner_class_types
983
+ @inner_class_types = {}
984
+ end
985
+
986
+ def self.field_remappings
987
+ @field_remappings = {}
988
+ end
502
989
  end
503
990
 
504
991
  class InteracPresent < Stripe::StripeObject
@@ -507,6 +994,14 @@ module Stripe
507
994
  attr_reader :available
508
995
  # The preferred network for the card.
509
996
  attr_reader :preferred
997
+
998
+ def self.inner_class_types
999
+ @inner_class_types = {}
1000
+ end
1001
+
1002
+ def self.field_remappings
1003
+ @field_remappings = {}
1004
+ end
510
1005
  end
511
1006
  # Card brand. Can be `interac`, `mastercard` or `visa`.
512
1007
  attr_reader :brand
@@ -538,9 +1033,25 @@ module Stripe
538
1033
  attr_reader :preferred_locales
539
1034
  # How card details were read in this transaction.
540
1035
  attr_reader :read_method
1036
+
1037
+ def self.inner_class_types
1038
+ @inner_class_types = { networks: Networks }
1039
+ end
1040
+
1041
+ def self.field_remappings
1042
+ @field_remappings = {}
1043
+ end
541
1044
  end
542
1045
 
543
- class KakaoPay < Stripe::StripeObject; end
1046
+ class KakaoPay < Stripe::StripeObject
1047
+ def self.inner_class_types
1048
+ @inner_class_types = {}
1049
+ end
1050
+
1051
+ def self.field_remappings
1052
+ @field_remappings = {}
1053
+ end
1054
+ end
544
1055
 
545
1056
  class Klarna < Stripe::StripeObject
546
1057
  class Dob < Stripe::StripeObject
@@ -550,18 +1061,50 @@ module Stripe
550
1061
  attr_reader :month
551
1062
  # The four-digit year of birth.
552
1063
  attr_reader :year
1064
+
1065
+ def self.inner_class_types
1066
+ @inner_class_types = {}
1067
+ end
1068
+
1069
+ def self.field_remappings
1070
+ @field_remappings = {}
1071
+ end
553
1072
  end
554
1073
  # The customer's date of birth, if provided.
555
1074
  attr_reader :dob
1075
+
1076
+ def self.inner_class_types
1077
+ @inner_class_types = { dob: Dob }
1078
+ end
1079
+
1080
+ def self.field_remappings
1081
+ @field_remappings = {}
1082
+ end
556
1083
  end
557
1084
 
558
- class Konbini < Stripe::StripeObject; end
1085
+ class Konbini < Stripe::StripeObject
1086
+ def self.inner_class_types
1087
+ @inner_class_types = {}
1088
+ end
1089
+
1090
+ def self.field_remappings
1091
+ @field_remappings = {}
1092
+ end
1093
+ end
559
1094
 
560
1095
  class KrCard < Stripe::StripeObject
561
1096
  # The local credit or debit card brand.
562
1097
  attr_reader :brand
563
1098
  # The last four digits of the card. This may not be present for American Express cards.
564
1099
  attr_reader :last4
1100
+
1101
+ def self.inner_class_types
1102
+ @inner_class_types = {}
1103
+ end
1104
+
1105
+ def self.field_remappings
1106
+ @field_remappings = {}
1107
+ end
565
1108
  end
566
1109
 
567
1110
  class Link < Stripe::StripeObject
@@ -569,17 +1112,59 @@ module Stripe
569
1112
  attr_reader :email
570
1113
  # [Deprecated] This is a legacy parameter that no longer has any function.
571
1114
  attr_reader :persistent_token
1115
+
1116
+ def self.inner_class_types
1117
+ @inner_class_types = {}
1118
+ end
1119
+
1120
+ def self.field_remappings
1121
+ @field_remappings = {}
1122
+ end
572
1123
  end
573
1124
 
574
- class MbWay < Stripe::StripeObject; end
575
- class Mobilepay < Stripe::StripeObject; end
576
- class Multibanco < Stripe::StripeObject; end
1125
+ class MbWay < Stripe::StripeObject
1126
+ def self.inner_class_types
1127
+ @inner_class_types = {}
1128
+ end
1129
+
1130
+ def self.field_remappings
1131
+ @field_remappings = {}
1132
+ end
1133
+ end
1134
+
1135
+ class Mobilepay < Stripe::StripeObject
1136
+ def self.inner_class_types
1137
+ @inner_class_types = {}
1138
+ end
1139
+
1140
+ def self.field_remappings
1141
+ @field_remappings = {}
1142
+ end
1143
+ end
1144
+
1145
+ class Multibanco < Stripe::StripeObject
1146
+ def self.inner_class_types
1147
+ @inner_class_types = {}
1148
+ end
1149
+
1150
+ def self.field_remappings
1151
+ @field_remappings = {}
1152
+ end
1153
+ end
577
1154
 
578
1155
  class NaverPay < Stripe::StripeObject
579
1156
  # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
580
1157
  attr_reader :buyer_id
581
1158
  # Whether to fund this transaction with Naver Pay points or a card.
582
1159
  attr_reader :funding
1160
+
1161
+ def self.inner_class_types
1162
+ @inner_class_types = {}
1163
+ end
1164
+
1165
+ def self.field_remappings
1166
+ @field_remappings = {}
1167
+ end
583
1168
  end
584
1169
 
585
1170
  class NzBankAccount < Stripe::StripeObject
@@ -595,18 +1180,68 @@ module Stripe
595
1180
  attr_reader :last4
596
1181
  # The suffix of the bank account number.
597
1182
  attr_reader :suffix
1183
+
1184
+ def self.inner_class_types
1185
+ @inner_class_types = {}
1186
+ end
1187
+
1188
+ def self.field_remappings
1189
+ @field_remappings = {}
1190
+ end
598
1191
  end
599
1192
 
600
- class Oxxo < Stripe::StripeObject; end
1193
+ class Oxxo < Stripe::StripeObject
1194
+ def self.inner_class_types
1195
+ @inner_class_types = {}
1196
+ end
1197
+
1198
+ def self.field_remappings
1199
+ @field_remappings = {}
1200
+ end
1201
+ end
601
1202
 
602
1203
  class P24 < Stripe::StripeObject
603
1204
  # The customer's bank, if provided.
604
1205
  attr_reader :bank
1206
+
1207
+ def self.inner_class_types
1208
+ @inner_class_types = {}
1209
+ end
1210
+
1211
+ def self.field_remappings
1212
+ @field_remappings = {}
1213
+ end
1214
+ end
1215
+
1216
+ class PayByBank < Stripe::StripeObject
1217
+ def self.inner_class_types
1218
+ @inner_class_types = {}
1219
+ end
1220
+
1221
+ def self.field_remappings
1222
+ @field_remappings = {}
1223
+ end
1224
+ end
1225
+
1226
+ class Payco < Stripe::StripeObject
1227
+ def self.inner_class_types
1228
+ @inner_class_types = {}
1229
+ end
1230
+
1231
+ def self.field_remappings
1232
+ @field_remappings = {}
1233
+ end
605
1234
  end
606
1235
 
607
- class PayByBank < Stripe::StripeObject; end
608
- class Payco < Stripe::StripeObject; end
609
- class Paynow < Stripe::StripeObject; end
1236
+ class Paynow < Stripe::StripeObject
1237
+ def self.inner_class_types
1238
+ @inner_class_types = {}
1239
+ end
1240
+
1241
+ def self.field_remappings
1242
+ @field_remappings = {}
1243
+ end
1244
+ end
610
1245
 
611
1246
  class Paypal < Stripe::StripeObject
612
1247
  # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
@@ -621,6 +1256,14 @@ module Stripe
621
1256
  # Owner's verified email. Values are verified or provided by PayPal directly
622
1257
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
623
1258
  attr_reader :verified_email
1259
+
1260
+ def self.inner_class_types
1261
+ @inner_class_types = {}
1262
+ end
1263
+
1264
+ def self.field_remappings
1265
+ @field_remappings = {}
1266
+ end
624
1267
  end
625
1268
 
626
1269
  class Payto < Stripe::StripeObject
@@ -630,11 +1273,45 @@ module Stripe
630
1273
  attr_reader :last4
631
1274
  # The PayID alias for the bank account.
632
1275
  attr_reader :pay_id
1276
+
1277
+ def self.inner_class_types
1278
+ @inner_class_types = {}
1279
+ end
1280
+
1281
+ def self.field_remappings
1282
+ @field_remappings = {}
1283
+ end
633
1284
  end
634
1285
 
635
- class Pix < Stripe::StripeObject; end
636
- class Promptpay < Stripe::StripeObject; end
637
- class Qris < Stripe::StripeObject; end
1286
+ class Pix < Stripe::StripeObject
1287
+ def self.inner_class_types
1288
+ @inner_class_types = {}
1289
+ end
1290
+
1291
+ def self.field_remappings
1292
+ @field_remappings = {}
1293
+ end
1294
+ end
1295
+
1296
+ class Promptpay < Stripe::StripeObject
1297
+ def self.inner_class_types
1298
+ @inner_class_types = {}
1299
+ end
1300
+
1301
+ def self.field_remappings
1302
+ @field_remappings = {}
1303
+ end
1304
+ end
1305
+
1306
+ class Qris < Stripe::StripeObject
1307
+ def self.inner_class_types
1308
+ @inner_class_types = {}
1309
+ end
1310
+
1311
+ def self.field_remappings
1312
+ @field_remappings = {}
1313
+ end
1314
+ end
638
1315
 
639
1316
  class Rechnung < Stripe::StripeObject
640
1317
  class Dob < Stripe::StripeObject
@@ -644,14 +1321,56 @@ module Stripe
644
1321
  attr_reader :month
645
1322
  # The four-digit year of birth.
646
1323
  attr_reader :year
1324
+
1325
+ def self.inner_class_types
1326
+ @inner_class_types = {}
1327
+ end
1328
+
1329
+ def self.field_remappings
1330
+ @field_remappings = {}
1331
+ end
647
1332
  end
648
1333
  # Attribute for field dob
649
1334
  attr_reader :dob
1335
+
1336
+ def self.inner_class_types
1337
+ @inner_class_types = { dob: Dob }
1338
+ end
1339
+
1340
+ def self.field_remappings
1341
+ @field_remappings = {}
1342
+ end
650
1343
  end
651
1344
 
652
- class RevolutPay < Stripe::StripeObject; end
653
- class SamsungPay < Stripe::StripeObject; end
654
- class Satispay < Stripe::StripeObject; end
1345
+ class RevolutPay < Stripe::StripeObject
1346
+ def self.inner_class_types
1347
+ @inner_class_types = {}
1348
+ end
1349
+
1350
+ def self.field_remappings
1351
+ @field_remappings = {}
1352
+ end
1353
+ end
1354
+
1355
+ class SamsungPay < Stripe::StripeObject
1356
+ def self.inner_class_types
1357
+ @inner_class_types = {}
1358
+ end
1359
+
1360
+ def self.field_remappings
1361
+ @field_remappings = {}
1362
+ end
1363
+ end
1364
+
1365
+ class Satispay < Stripe::StripeObject
1366
+ def self.inner_class_types
1367
+ @inner_class_types = {}
1368
+ end
1369
+
1370
+ def self.field_remappings
1371
+ @field_remappings = {}
1372
+ end
1373
+ end
655
1374
 
656
1375
  class SepaDebit < Stripe::StripeObject
657
1376
  class GeneratedFrom < Stripe::StripeObject
@@ -659,6 +1378,14 @@ module Stripe
659
1378
  attr_reader :charge
660
1379
  # The ID of the SetupAttempt that generated this PaymentMethod, if any.
661
1380
  attr_reader :setup_attempt
1381
+
1382
+ def self.inner_class_types
1383
+ @inner_class_types = {}
1384
+ end
1385
+
1386
+ def self.field_remappings
1387
+ @field_remappings = {}
1388
+ end
662
1389
  end
663
1390
  # Bank code of bank associated with the bank account.
664
1391
  attr_reader :bank_code
@@ -672,13 +1399,37 @@ module Stripe
672
1399
  attr_reader :generated_from
673
1400
  # Last four characters of the IBAN.
674
1401
  attr_reader :last4
1402
+
1403
+ def self.inner_class_types
1404
+ @inner_class_types = { generated_from: GeneratedFrom }
1405
+ end
1406
+
1407
+ def self.field_remappings
1408
+ @field_remappings = {}
1409
+ end
675
1410
  end
676
1411
 
677
- class Shopeepay < Stripe::StripeObject; end
1412
+ class Shopeepay < Stripe::StripeObject
1413
+ def self.inner_class_types
1414
+ @inner_class_types = {}
1415
+ end
1416
+
1417
+ def self.field_remappings
1418
+ @field_remappings = {}
1419
+ end
1420
+ end
678
1421
 
679
1422
  class Sofort < Stripe::StripeObject
680
1423
  # Two-letter ISO code representing the country the bank account is located in.
681
1424
  attr_reader :country
1425
+
1426
+ def self.inner_class_types
1427
+ @inner_class_types = {}
1428
+ end
1429
+
1430
+ def self.field_remappings
1431
+ @field_remappings = {}
1432
+ end
682
1433
  end
683
1434
 
684
1435
  class StripeBalance < Stripe::StripeObject
@@ -686,10 +1437,35 @@ module Stripe
686
1437
  attr_reader :account
687
1438
  # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
688
1439
  attr_reader :source_type
1440
+
1441
+ def self.inner_class_types
1442
+ @inner_class_types = {}
1443
+ end
1444
+
1445
+ def self.field_remappings
1446
+ @field_remappings = {}
1447
+ end
689
1448
  end
690
1449
 
691
- class Swish < Stripe::StripeObject; end
692
- class Twint < Stripe::StripeObject; end
1450
+ class Swish < Stripe::StripeObject
1451
+ def self.inner_class_types
1452
+ @inner_class_types = {}
1453
+ end
1454
+
1455
+ def self.field_remappings
1456
+ @field_remappings = {}
1457
+ end
1458
+ end
1459
+
1460
+ class Twint < Stripe::StripeObject
1461
+ def self.inner_class_types
1462
+ @inner_class_types = {}
1463
+ end
1464
+
1465
+ def self.field_remappings
1466
+ @field_remappings = {}
1467
+ end
1468
+ end
693
1469
 
694
1470
  class UsBankAccount < Stripe::StripeObject
695
1471
  class Networks < Stripe::StripeObject
@@ -697,6 +1473,14 @@ module Stripe
697
1473
  attr_reader :preferred
698
1474
  # All supported networks.
699
1475
  attr_reader :supported
1476
+
1477
+ def self.inner_class_types
1478
+ @inner_class_types = {}
1479
+ end
1480
+
1481
+ def self.field_remappings
1482
+ @field_remappings = {}
1483
+ end
700
1484
  end
701
1485
 
702
1486
  class StatusDetails < Stripe::StripeObject
@@ -705,9 +1489,25 @@ module Stripe
705
1489
  attr_reader :network_code
706
1490
  # The reason why this PaymentMethod's fingerprint has been blocked
707
1491
  attr_reader :reason
1492
+
1493
+ def self.inner_class_types
1494
+ @inner_class_types = {}
1495
+ end
1496
+
1497
+ def self.field_remappings
1498
+ @field_remappings = {}
1499
+ end
708
1500
  end
709
1501
  # Attribute for field blocked
710
1502
  attr_reader :blocked
1503
+
1504
+ def self.inner_class_types
1505
+ @inner_class_types = { blocked: Blocked }
1506
+ end
1507
+
1508
+ def self.field_remappings
1509
+ @field_remappings = {}
1510
+ end
711
1511
  end
712
1512
  # Account holder type: individual or company.
713
1513
  attr_reader :account_holder_type
@@ -729,10 +1529,35 @@ module Stripe
729
1529
  attr_reader :routing_number
730
1530
  # Contains information about the future reusability of this PaymentMethod.
731
1531
  attr_reader :status_details
1532
+
1533
+ def self.inner_class_types
1534
+ @inner_class_types = { networks: Networks, status_details: StatusDetails }
1535
+ end
1536
+
1537
+ def self.field_remappings
1538
+ @field_remappings = {}
1539
+ end
732
1540
  end
733
1541
 
734
- class WechatPay < Stripe::StripeObject; end
735
- class Zip < Stripe::StripeObject; end
1542
+ class WechatPay < Stripe::StripeObject
1543
+ def self.inner_class_types
1544
+ @inner_class_types = {}
1545
+ end
1546
+
1547
+ def self.field_remappings
1548
+ @field_remappings = {}
1549
+ end
1550
+ end
1551
+
1552
+ class Zip < Stripe::StripeObject
1553
+ def self.inner_class_types
1554
+ @inner_class_types = {}
1555
+ end
1556
+
1557
+ def self.field_remappings
1558
+ @field_remappings = {}
1559
+ end
1560
+ end
736
1561
  # Attribute for field acss_debit
737
1562
  attr_reader :acss_debit
738
1563
  # Attribute for field affirm
@@ -859,6 +1684,74 @@ module Stripe
859
1684
  attr_reader :wechat_pay
860
1685
  # Attribute for field zip
861
1686
  attr_reader :zip
1687
+
1688
+ def self.inner_class_types
1689
+ @inner_class_types = {
1690
+ acss_debit: AcssDebit,
1691
+ affirm: Affirm,
1692
+ afterpay_clearpay: AfterpayClearpay,
1693
+ alipay: Alipay,
1694
+ alma: Alma,
1695
+ amazon_pay: AmazonPay,
1696
+ au_becs_debit: AuBecsDebit,
1697
+ bacs_debit: BacsDebit,
1698
+ bancontact: Bancontact,
1699
+ billie: Billie,
1700
+ billing_details: BillingDetails,
1701
+ blik: Blik,
1702
+ boleto: Boleto,
1703
+ card: Card,
1704
+ card_present: CardPresent,
1705
+ cashapp: Cashapp,
1706
+ crypto: Crypto,
1707
+ customer_balance: CustomerBalance,
1708
+ eps: Eps,
1709
+ fpx: Fpx,
1710
+ giropay: Giropay,
1711
+ gopay: Gopay,
1712
+ grabpay: Grabpay,
1713
+ id_bank_transfer: IdBankTransfer,
1714
+ ideal: Ideal,
1715
+ interac_present: InteracPresent,
1716
+ kakao_pay: KakaoPay,
1717
+ klarna: Klarna,
1718
+ konbini: Konbini,
1719
+ kr_card: KrCard,
1720
+ link: Link,
1721
+ mb_way: MbWay,
1722
+ mobilepay: Mobilepay,
1723
+ multibanco: Multibanco,
1724
+ naver_pay: NaverPay,
1725
+ nz_bank_account: NzBankAccount,
1726
+ oxxo: Oxxo,
1727
+ p24: P24,
1728
+ pay_by_bank: PayByBank,
1729
+ payco: Payco,
1730
+ paynow: Paynow,
1731
+ paypal: Paypal,
1732
+ payto: Payto,
1733
+ pix: Pix,
1734
+ promptpay: Promptpay,
1735
+ qris: Qris,
1736
+ rechnung: Rechnung,
1737
+ revolut_pay: RevolutPay,
1738
+ samsung_pay: SamsungPay,
1739
+ satispay: Satispay,
1740
+ sepa_debit: SepaDebit,
1741
+ shopeepay: Shopeepay,
1742
+ sofort: Sofort,
1743
+ stripe_balance: StripeBalance,
1744
+ swish: Swish,
1745
+ twint: Twint,
1746
+ us_bank_account: UsBankAccount,
1747
+ wechat_pay: WechatPay,
1748
+ zip: Zip,
1749
+ }
1750
+ end
1751
+
1752
+ def self.field_remappings
1753
+ @field_remappings = {}
1754
+ end
862
1755
  end
863
1756
 
864
1757
  class Shipping < Stripe::StripeObject
@@ -875,6 +1768,14 @@ module Stripe
875
1768
  attr_reader :postal_code
876
1769
  # State, county, province, or region.
877
1770
  attr_reader :state
1771
+
1772
+ def self.inner_class_types
1773
+ @inner_class_types = {}
1774
+ end
1775
+
1776
+ def self.field_remappings
1777
+ @field_remappings = {}
1778
+ end
878
1779
  end
879
1780
  # Attribute for field address
880
1781
  attr_reader :address
@@ -882,6 +1783,14 @@ module Stripe
882
1783
  attr_reader :name
883
1784
  # Recipient phone (including extension).
884
1785
  attr_reader :phone
1786
+
1787
+ def self.inner_class_types
1788
+ @inner_class_types = { address: Address }
1789
+ end
1790
+
1791
+ def self.field_remappings
1792
+ @field_remappings = {}
1793
+ end
885
1794
  end
886
1795
 
887
1796
  class CreateParams < Stripe::RequestParams
@@ -1672,5 +2581,18 @@ module Stripe
1672
2581
  )
1673
2582
  end
1674
2583
  end
2584
+
2585
+ def self.inner_class_types
2586
+ @inner_class_types = {
2587
+ mandate_data: MandateData,
2588
+ payment_method_options: PaymentMethodOptions,
2589
+ payment_method_preview: PaymentMethodPreview,
2590
+ shipping: Shipping,
2591
+ }
2592
+ end
2593
+
2594
+ def self.field_remappings
2595
+ @field_remappings = {}
2596
+ end
1675
2597
  end
1676
2598
  end