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
@@ -19,6 +19,14 @@ module Stripe
19
19
  attr_reader :currency
20
20
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
21
21
  attr_reader :value
22
+
23
+ def self.inner_class_types
24
+ @inner_class_types = {}
25
+ end
26
+
27
+ def self.field_remappings
28
+ @field_remappings = {}
29
+ end
22
30
  end
23
31
 
24
32
  class AmountAuthorized < Stripe::StripeObject
@@ -26,6 +34,14 @@ module Stripe
26
34
  attr_reader :currency
27
35
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
28
36
  attr_reader :value
37
+
38
+ def self.inner_class_types
39
+ @inner_class_types = {}
40
+ end
41
+
42
+ def self.field_remappings
43
+ @field_remappings = {}
44
+ end
29
45
  end
30
46
 
31
47
  class AmountCanceled < Stripe::StripeObject
@@ -33,6 +49,14 @@ module Stripe
33
49
  attr_reader :currency
34
50
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
35
51
  attr_reader :value
52
+
53
+ def self.inner_class_types
54
+ @inner_class_types = {}
55
+ end
56
+
57
+ def self.field_remappings
58
+ @field_remappings = {}
59
+ end
36
60
  end
37
61
 
38
62
  class AmountFailed < Stripe::StripeObject
@@ -40,6 +64,14 @@ module Stripe
40
64
  attr_reader :currency
41
65
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
42
66
  attr_reader :value
67
+
68
+ def self.inner_class_types
69
+ @inner_class_types = {}
70
+ end
71
+
72
+ def self.field_remappings
73
+ @field_remappings = {}
74
+ end
43
75
  end
44
76
 
45
77
  class AmountGuaranteed < Stripe::StripeObject
@@ -47,6 +79,14 @@ module Stripe
47
79
  attr_reader :currency
48
80
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
49
81
  attr_reader :value
82
+
83
+ def self.inner_class_types
84
+ @inner_class_types = {}
85
+ end
86
+
87
+ def self.field_remappings
88
+ @field_remappings = {}
89
+ end
50
90
  end
51
91
 
52
92
  class AmountRefunded < Stripe::StripeObject
@@ -54,6 +94,14 @@ module Stripe
54
94
  attr_reader :currency
55
95
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
56
96
  attr_reader :value
97
+
98
+ def self.inner_class_types
99
+ @inner_class_types = {}
100
+ end
101
+
102
+ def self.field_remappings
103
+ @field_remappings = {}
104
+ end
57
105
  end
58
106
 
59
107
  class AmountRequested < Stripe::StripeObject
@@ -61,6 +109,14 @@ module Stripe
61
109
  attr_reader :currency
62
110
  # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
63
111
  attr_reader :value
112
+
113
+ def self.inner_class_types
114
+ @inner_class_types = {}
115
+ end
116
+
117
+ def self.field_remappings
118
+ @field_remappings = {}
119
+ end
64
120
  end
65
121
 
66
122
  class CustomerDetails < Stripe::StripeObject
@@ -72,6 +128,14 @@ module Stripe
72
128
  attr_reader :name
73
129
  # The customer's phone number.
74
130
  attr_reader :phone
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
 
77
141
  class PaymentMethodDetails < Stripe::StripeObject
@@ -84,6 +148,14 @@ module Stripe
84
148
  attr_reader :routing_number
85
149
  # SWIFT code of the bank associated with the routing number.
86
150
  attr_reader :swift_code
151
+
152
+ def self.inner_class_types
153
+ @inner_class_types = {}
154
+ end
155
+
156
+ def self.field_remappings
157
+ @field_remappings = {}
158
+ end
87
159
  end
88
160
 
89
161
  class AchDebit < Stripe::StripeObject
@@ -99,6 +171,14 @@ module Stripe
99
171
  attr_reader :last4
100
172
  # Routing transit number of the bank account.
101
173
  attr_reader :routing_number
174
+
175
+ def self.inner_class_types
176
+ @inner_class_types = {}
177
+ end
178
+
179
+ def self.field_remappings
180
+ @field_remappings = {}
181
+ end
102
182
  end
103
183
 
104
184
  class AcssDebit < Stripe::StripeObject
@@ -114,6 +194,14 @@ module Stripe
114
194
  attr_reader :mandate
115
195
  # Transit number of the bank account.
116
196
  attr_reader :transit_number
197
+
198
+ def self.inner_class_types
199
+ @inner_class_types = {}
200
+ end
201
+
202
+ def self.field_remappings
203
+ @field_remappings = {}
204
+ end
117
205
  end
118
206
 
119
207
  class Affirm < Stripe::StripeObject
@@ -123,6 +211,14 @@ module Stripe
123
211
  attr_reader :reader
124
212
  # The Affirm transaction ID associated with this payment.
125
213
  attr_reader :transaction_id
214
+
215
+ def self.inner_class_types
216
+ @inner_class_types = {}
217
+ end
218
+
219
+ def self.field_remappings
220
+ @field_remappings = {}
221
+ end
126
222
  end
127
223
 
128
224
  class AfterpayClearpay < Stripe::StripeObject
@@ -130,6 +226,14 @@ module Stripe
130
226
  attr_reader :order_id
131
227
  # Order identifier shown to the merchant in Afterpay’s online portal.
132
228
  attr_reader :reference
229
+
230
+ def self.inner_class_types
231
+ @inner_class_types = {}
232
+ end
233
+
234
+ def self.field_remappings
235
+ @field_remappings = {}
236
+ end
133
237
  end
134
238
 
135
239
  class Alipay < Stripe::StripeObject
@@ -139,17 +243,41 @@ module Stripe
139
243
  attr_reader :fingerprint
140
244
  # Transaction ID of this particular Alipay transaction.
141
245
  attr_reader :transaction_id
246
+
247
+ def self.inner_class_types
248
+ @inner_class_types = {}
249
+ end
250
+
251
+ def self.field_remappings
252
+ @field_remappings = {}
253
+ end
142
254
  end
143
255
 
144
256
  class Alma < Stripe::StripeObject
145
257
  class Installments < Stripe::StripeObject
146
258
  # The number of installments.
147
259
  attr_reader :count
260
+
261
+ def self.inner_class_types
262
+ @inner_class_types = {}
263
+ end
264
+
265
+ def self.field_remappings
266
+ @field_remappings = {}
267
+ end
148
268
  end
149
269
  # Attribute for field installments
150
270
  attr_reader :installments
151
271
  # The Alma transaction ID associated with this payment.
152
272
  attr_reader :transaction_id
273
+
274
+ def self.inner_class_types
275
+ @inner_class_types = { installments: Installments }
276
+ end
277
+
278
+ def self.field_remappings
279
+ @field_remappings = {}
280
+ end
153
281
  end
154
282
 
155
283
  class AmazonPay < Stripe::StripeObject
@@ -169,16 +297,40 @@ module Stripe
169
297
  attr_reader :funding
170
298
  # The last four digits of the card.
171
299
  attr_reader :last4
300
+
301
+ def self.inner_class_types
302
+ @inner_class_types = {}
303
+ end
304
+
305
+ def self.field_remappings
306
+ @field_remappings = {}
307
+ end
172
308
  end
173
309
  # Attribute for field card
174
310
  attr_reader :card
175
311
  # funding type of the underlying payment method.
176
312
  attr_reader :type
313
+
314
+ def self.inner_class_types
315
+ @inner_class_types = { card: Card }
316
+ end
317
+
318
+ def self.field_remappings
319
+ @field_remappings = {}
320
+ end
177
321
  end
178
322
  # Attribute for field funding
179
323
  attr_reader :funding
180
324
  # The Amazon Pay transaction ID associated with this payment.
181
325
  attr_reader :transaction_id
326
+
327
+ def self.inner_class_types
328
+ @inner_class_types = { funding: Funding }
329
+ end
330
+
331
+ def self.field_remappings
332
+ @field_remappings = {}
333
+ end
182
334
  end
183
335
 
184
336
  class AuBecsDebit < Stripe::StripeObject
@@ -190,6 +342,14 @@ module Stripe
190
342
  attr_reader :last4
191
343
  # ID of the mandate used to make this payment.
192
344
  attr_reader :mandate
345
+
346
+ def self.inner_class_types
347
+ @inner_class_types = {}
348
+ end
349
+
350
+ def self.field_remappings
351
+ @field_remappings = {}
352
+ end
193
353
  end
194
354
 
195
355
  class BacsDebit < Stripe::StripeObject
@@ -201,6 +361,14 @@ module Stripe
201
361
  attr_reader :mandate
202
362
  # Sort code of the bank account. (e.g., `10-20-30`)
203
363
  attr_reader :sort_code
364
+
365
+ def self.inner_class_types
366
+ @inner_class_types = {}
367
+ end
368
+
369
+ def self.field_remappings
370
+ @field_remappings = {}
371
+ end
204
372
  end
205
373
 
206
374
  class Bancontact < Stripe::StripeObject
@@ -222,11 +390,27 @@ module Stripe
222
390
  # Owner's verified full name. Values are verified or provided by Bancontact directly
223
391
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
224
392
  attr_reader :verified_name
393
+
394
+ def self.inner_class_types
395
+ @inner_class_types = {}
396
+ end
397
+
398
+ def self.field_remappings
399
+ @field_remappings = {}
400
+ end
225
401
  end
226
402
 
227
403
  class Billie < Stripe::StripeObject
228
404
  # The Billie transaction ID associated with this payment.
229
405
  attr_reader :transaction_id
406
+
407
+ def self.inner_class_types
408
+ @inner_class_types = {}
409
+ end
410
+
411
+ def self.field_remappings
412
+ @field_remappings = {}
413
+ end
230
414
  end
231
415
 
232
416
  class BillingDetails < Stripe::StripeObject
@@ -243,6 +427,14 @@ module Stripe
243
427
  attr_reader :postal_code
244
428
  # State, county, province, or region.
245
429
  attr_reader :state
430
+
431
+ def self.inner_class_types
432
+ @inner_class_types = {}
433
+ end
434
+
435
+ def self.field_remappings
436
+ @field_remappings = {}
437
+ end
246
438
  end
247
439
  # A representation of a physical address.
248
440
  attr_reader :address
@@ -252,16 +444,40 @@ module Stripe
252
444
  attr_reader :name
253
445
  # The billing phone number associated with the method of payment.
254
446
  attr_reader :phone
447
+
448
+ def self.inner_class_types
449
+ @inner_class_types = { address: Address }
450
+ end
451
+
452
+ def self.field_remappings
453
+ @field_remappings = {}
454
+ end
255
455
  end
256
456
 
257
457
  class Blik < Stripe::StripeObject
258
458
  # A unique and immutable identifier assigned by BLIK to every buyer.
259
459
  attr_reader :buyer_id
460
+
461
+ def self.inner_class_types
462
+ @inner_class_types = {}
463
+ end
464
+
465
+ def self.field_remappings
466
+ @field_remappings = {}
467
+ end
260
468
  end
261
469
 
262
470
  class Boleto < Stripe::StripeObject
263
471
  # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
264
472
  attr_reader :tax_id
473
+
474
+ def self.inner_class_types
475
+ @inner_class_types = {}
476
+ end
477
+
478
+ def self.field_remappings
479
+ @field_remappings = {}
480
+ end
265
481
  end
266
482
 
267
483
  class Card < Stripe::StripeObject
@@ -272,11 +488,27 @@ module Stripe
272
488
  attr_reader :address_postal_code_check
273
489
  # Attribute for field cvc_check
274
490
  attr_reader :cvc_check
491
+
492
+ def self.inner_class_types
493
+ @inner_class_types = {}
494
+ end
495
+
496
+ def self.field_remappings
497
+ @field_remappings = {}
498
+ end
275
499
  end
276
500
 
277
501
  class NetworkToken < Stripe::StripeObject
278
502
  # Attribute for field used
279
503
  attr_reader :used
504
+
505
+ def self.inner_class_types
506
+ @inner_class_types = {}
507
+ end
508
+
509
+ def self.field_remappings
510
+ @field_remappings = {}
511
+ end
280
512
  end
281
513
 
282
514
  class ThreeDSecure < Stripe::StripeObject
@@ -288,6 +520,14 @@ module Stripe
288
520
  attr_reader :result_reason
289
521
  # Attribute for field version
290
522
  attr_reader :version
523
+
524
+ def self.inner_class_types
525
+ @inner_class_types = {}
526
+ end
527
+
528
+ def self.field_remappings
529
+ @field_remappings = {}
530
+ end
291
531
  end
292
532
  # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
293
533
  attr_reader :brand
@@ -319,6 +559,18 @@ module Stripe
319
559
  attr_reader :network_transaction_id
320
560
  # Populated if this transaction used 3D Secure authentication.
321
561
  attr_reader :three_d_secure
562
+
563
+ def self.inner_class_types
564
+ @inner_class_types = {
565
+ checks: Checks,
566
+ network_token: NetworkToken,
567
+ three_d_secure: ThreeDSecure,
568
+ }
569
+ end
570
+
571
+ def self.field_remappings
572
+ @field_remappings = {}
573
+ end
322
574
  end
323
575
 
324
576
  class CardPresent < Stripe::StripeObject
@@ -327,6 +579,14 @@ module Stripe
327
579
  attr_reader :stored_at
328
580
  # The method used to process this payment method offline. Only deferred is allowed.
329
581
  attr_reader :type
582
+
583
+ def self.inner_class_types
584
+ @inner_class_types = {}
585
+ end
586
+
587
+ def self.field_remappings
588
+ @field_remappings = {}
589
+ end
330
590
  end
331
591
 
332
592
  class Receipt < Stripe::StripeObject
@@ -348,11 +608,27 @@ module Stripe
348
608
  attr_reader :terminal_verification_results
349
609
  # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
350
610
  attr_reader :transaction_status_information
611
+
612
+ def self.inner_class_types
613
+ @inner_class_types = {}
614
+ end
615
+
616
+ def self.field_remappings
617
+ @field_remappings = {}
618
+ end
351
619
  end
352
620
 
353
621
  class Wallet < Stripe::StripeObject
354
622
  # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
355
623
  attr_reader :type
624
+
625
+ def self.inner_class_types
626
+ @inner_class_types = {}
627
+ end
628
+
629
+ def self.field_remappings
630
+ @field_remappings = {}
631
+ end
356
632
  end
357
633
  # The authorized amount
358
634
  attr_reader :amount_authorized
@@ -406,6 +682,14 @@ module Stripe
406
682
  attr_reader :receipt
407
683
  # Attribute for field wallet
408
684
  attr_reader :wallet
685
+
686
+ def self.inner_class_types
687
+ @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
688
+ end
689
+
690
+ def self.field_remappings
691
+ @field_remappings = {}
692
+ end
409
693
  end
410
694
 
411
695
  class Cashapp < Stripe::StripeObject
@@ -415,6 +699,14 @@ module Stripe
415
699
  attr_reader :cashtag
416
700
  # A unique and immutable identifier of payments assigned by Cash App
417
701
  attr_reader :transaction_id
702
+
703
+ def self.inner_class_types
704
+ @inner_class_types = {}
705
+ end
706
+
707
+ def self.field_remappings
708
+ @field_remappings = {}
709
+ end
418
710
  end
419
711
 
420
712
  class Crypto < Stripe::StripeObject
@@ -426,6 +718,14 @@ module Stripe
426
718
  attr_reader :token_currency
427
719
  # The blockchain transaction hash of the crypto payment.
428
720
  attr_reader :transaction_hash
721
+
722
+ def self.inner_class_types
723
+ @inner_class_types = {}
724
+ end
725
+
726
+ def self.field_remappings
727
+ @field_remappings = {}
728
+ end
429
729
  end
430
730
 
431
731
  class Custom < Stripe::StripeObject
@@ -433,9 +733,25 @@ module Stripe
433
733
  attr_reader :display_name
434
734
  # The custom payment method type associated with this payment.
435
735
  attr_reader :type
736
+
737
+ def self.inner_class_types
738
+ @inner_class_types = {}
739
+ end
740
+
741
+ def self.field_remappings
742
+ @field_remappings = {}
743
+ end
436
744
  end
437
745
 
438
- class CustomerBalance < Stripe::StripeObject; end
746
+ class CustomerBalance < Stripe::StripeObject
747
+ def self.inner_class_types
748
+ @inner_class_types = {}
749
+ end
750
+
751
+ def self.field_remappings
752
+ @field_remappings = {}
753
+ end
754
+ end
439
755
 
440
756
  class Eps < Stripe::StripeObject
441
757
  # 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`.
@@ -444,6 +760,14 @@ module Stripe
444
760
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
445
761
  # EPS rarely provides this information so the attribute is usually empty.
446
762
  attr_reader :verified_name
763
+
764
+ def self.inner_class_types
765
+ @inner_class_types = {}
766
+ end
767
+
768
+ def self.field_remappings
769
+ @field_remappings = {}
770
+ end
447
771
  end
448
772
 
449
773
  class Fpx < Stripe::StripeObject
@@ -453,6 +777,14 @@ module Stripe
453
777
  attr_reader :bank
454
778
  # Unique transaction id generated by FPX for every request from the merchant
455
779
  attr_reader :transaction_id
780
+
781
+ def self.inner_class_types
782
+ @inner_class_types = {}
783
+ end
784
+
785
+ def self.field_remappings
786
+ @field_remappings = {}
787
+ end
456
788
  end
457
789
 
458
790
  class Giropay < Stripe::StripeObject
@@ -466,13 +798,37 @@ module Stripe
466
798
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
467
799
  # Giropay rarely provides this information so the attribute is usually empty.
468
800
  attr_reader :verified_name
801
+
802
+ def self.inner_class_types
803
+ @inner_class_types = {}
804
+ end
805
+
806
+ def self.field_remappings
807
+ @field_remappings = {}
808
+ end
469
809
  end
470
810
 
471
- class Gopay < Stripe::StripeObject; end
811
+ class Gopay < Stripe::StripeObject
812
+ def self.inner_class_types
813
+ @inner_class_types = {}
814
+ end
815
+
816
+ def self.field_remappings
817
+ @field_remappings = {}
818
+ end
819
+ end
472
820
 
473
821
  class Grabpay < Stripe::StripeObject
474
822
  # Unique transaction id generated by GrabPay
475
823
  attr_reader :transaction_id
824
+
825
+ def self.inner_class_types
826
+ @inner_class_types = {}
827
+ end
828
+
829
+ def self.field_remappings
830
+ @field_remappings = {}
831
+ end
476
832
  end
477
833
 
478
834
  class IdBankTransfer < Stripe::StripeObject
@@ -486,6 +842,14 @@ module Stripe
486
842
  attr_reader :bank_name
487
843
  # Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
488
844
  attr_reader :display_name
845
+
846
+ def self.inner_class_types
847
+ @inner_class_types = {}
848
+ end
849
+
850
+ def self.field_remappings
851
+ @field_remappings = {}
852
+ end
489
853
  end
490
854
 
491
855
  class Ideal < Stripe::StripeObject
@@ -502,6 +866,14 @@ module Stripe
502
866
  # Owner's verified full name. Values are verified or provided by iDEAL directly
503
867
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
504
868
  attr_reader :verified_name
869
+
870
+ def self.inner_class_types
871
+ @inner_class_types = {}
872
+ end
873
+
874
+ def self.field_remappings
875
+ @field_remappings = {}
876
+ end
505
877
  end
506
878
 
507
879
  class InteracPresent < Stripe::StripeObject
@@ -524,6 +896,14 @@ module Stripe
524
896
  attr_reader :terminal_verification_results
525
897
  # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
526
898
  attr_reader :transaction_status_information
899
+
900
+ def self.inner_class_types
901
+ @inner_class_types = {}
902
+ end
903
+
904
+ def self.field_remappings
905
+ @field_remappings = {}
906
+ end
527
907
  end
528
908
  # Card brand. Can be `interac`, `mastercard` or `visa`.
529
909
  attr_reader :brand
@@ -563,6 +943,14 @@ module Stripe
563
943
  attr_reader :read_method
564
944
  # A collection of fields required to be displayed on receipts. Only required for EMV transactions.
565
945
  attr_reader :receipt
946
+
947
+ def self.inner_class_types
948
+ @inner_class_types = { receipt: Receipt }
949
+ end
950
+
951
+ def self.field_remappings
952
+ @field_remappings = {}
953
+ end
566
954
  end
567
955
 
568
956
  class KakaoPay < Stripe::StripeObject
@@ -570,6 +958,14 @@ module Stripe
570
958
  attr_reader :buyer_id
571
959
  # The Kakao Pay transaction ID associated with this payment.
572
960
  attr_reader :transaction_id
961
+
962
+ def self.inner_class_types
963
+ @inner_class_types = {}
964
+ end
965
+
966
+ def self.field_remappings
967
+ @field_remappings = {}
968
+ end
573
969
  end
574
970
 
575
971
  class Klarna < Stripe::StripeObject
@@ -577,9 +973,25 @@ module Stripe
577
973
  class Address < Stripe::StripeObject
578
974
  # The payer address country
579
975
  attr_reader :country
976
+
977
+ def self.inner_class_types
978
+ @inner_class_types = {}
979
+ end
980
+
981
+ def self.field_remappings
982
+ @field_remappings = {}
983
+ end
580
984
  end
581
985
  # The payer's address
582
986
  attr_reader :address
987
+
988
+ def self.inner_class_types
989
+ @inner_class_types = { address: Address }
990
+ end
991
+
992
+ def self.field_remappings
993
+ @field_remappings = {}
994
+ end
583
995
  end
584
996
  # The payer details for this transaction.
585
997
  attr_reader :payer_details
@@ -589,15 +1001,39 @@ module Stripe
589
1001
  # Preferred language of the Klarna authorization page that the customer is redirected to.
590
1002
  # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
591
1003
  attr_reader :preferred_locale
1004
+
1005
+ def self.inner_class_types
1006
+ @inner_class_types = { payer_details: PayerDetails }
1007
+ end
1008
+
1009
+ def self.field_remappings
1010
+ @field_remappings = {}
1011
+ end
592
1012
  end
593
1013
 
594
1014
  class Konbini < Stripe::StripeObject
595
1015
  class Store < Stripe::StripeObject
596
1016
  # The name of the convenience store chain where the payment was completed.
597
1017
  attr_reader :chain
1018
+
1019
+ def self.inner_class_types
1020
+ @inner_class_types = {}
1021
+ end
1022
+
1023
+ def self.field_remappings
1024
+ @field_remappings = {}
1025
+ end
598
1026
  end
599
1027
  # If the payment succeeded, this contains the details of the convenience store where the payment was completed.
600
1028
  attr_reader :store
1029
+
1030
+ def self.inner_class_types
1031
+ @inner_class_types = { store: Store }
1032
+ end
1033
+
1034
+ def self.field_remappings
1035
+ @field_remappings = {}
1036
+ end
601
1037
  end
602
1038
 
603
1039
  class KrCard < Stripe::StripeObject
@@ -609,15 +1045,39 @@ module Stripe
609
1045
  attr_reader :last4
610
1046
  # The Korean Card transaction ID associated with this payment.
611
1047
  attr_reader :transaction_id
1048
+
1049
+ def self.inner_class_types
1050
+ @inner_class_types = {}
1051
+ end
1052
+
1053
+ def self.field_remappings
1054
+ @field_remappings = {}
1055
+ end
612
1056
  end
613
1057
 
614
1058
  class Link < Stripe::StripeObject
615
1059
  # Two-letter ISO code representing the funding source country beneath the Link payment.
616
1060
  # You could use this attribute to get a sense of international fees.
617
1061
  attr_reader :country
1062
+
1063
+ def self.inner_class_types
1064
+ @inner_class_types = {}
1065
+ end
1066
+
1067
+ def self.field_remappings
1068
+ @field_remappings = {}
1069
+ end
618
1070
  end
619
1071
 
620
- class MbWay < Stripe::StripeObject; end
1072
+ class MbWay < Stripe::StripeObject
1073
+ def self.inner_class_types
1074
+ @inner_class_types = {}
1075
+ end
1076
+
1077
+ def self.field_remappings
1078
+ @field_remappings = {}
1079
+ end
1080
+ end
621
1081
 
622
1082
  class Mobilepay < Stripe::StripeObject
623
1083
  class Card < Stripe::StripeObject
@@ -631,9 +1091,25 @@ module Stripe
631
1091
  attr_reader :exp_year
632
1092
  # The last 4 digits of the card
633
1093
  attr_reader :last4
1094
+
1095
+ def self.inner_class_types
1096
+ @inner_class_types = {}
1097
+ end
1098
+
1099
+ def self.field_remappings
1100
+ @field_remappings = {}
1101
+ end
634
1102
  end
635
1103
  # Internal card details
636
1104
  attr_reader :card
1105
+
1106
+ def self.inner_class_types
1107
+ @inner_class_types = { card: Card }
1108
+ end
1109
+
1110
+ def self.field_remappings
1111
+ @field_remappings = {}
1112
+ end
637
1113
  end
638
1114
 
639
1115
  class Multibanco < Stripe::StripeObject
@@ -641,6 +1117,14 @@ module Stripe
641
1117
  attr_reader :entity
642
1118
  # Reference number associated with this Multibanco payment.
643
1119
  attr_reader :reference
1120
+
1121
+ def self.inner_class_types
1122
+ @inner_class_types = {}
1123
+ end
1124
+
1125
+ def self.field_remappings
1126
+ @field_remappings = {}
1127
+ end
644
1128
  end
645
1129
 
646
1130
  class NaverPay < Stripe::StripeObject
@@ -648,6 +1132,14 @@ module Stripe
648
1132
  attr_reader :buyer_id
649
1133
  # The Naver Pay transaction ID associated with this payment.
650
1134
  attr_reader :transaction_id
1135
+
1136
+ def self.inner_class_types
1137
+ @inner_class_types = {}
1138
+ end
1139
+
1140
+ def self.field_remappings
1141
+ @field_remappings = {}
1142
+ end
651
1143
  end
652
1144
 
653
1145
  class NzBankAccount < Stripe::StripeObject
@@ -663,11 +1155,27 @@ module Stripe
663
1155
  attr_reader :last4
664
1156
  # The suffix of the bank account number.
665
1157
  attr_reader :suffix
1158
+
1159
+ def self.inner_class_types
1160
+ @inner_class_types = {}
1161
+ end
1162
+
1163
+ def self.field_remappings
1164
+ @field_remappings = {}
1165
+ end
666
1166
  end
667
1167
 
668
1168
  class Oxxo < Stripe::StripeObject
669
1169
  # OXXO reference number
670
1170
  attr_reader :number
1171
+
1172
+ def self.inner_class_types
1173
+ @inner_class_types = {}
1174
+ end
1175
+
1176
+ def self.field_remappings
1177
+ @field_remappings = {}
1178
+ end
671
1179
  end
672
1180
 
673
1181
  class P24 < Stripe::StripeObject
@@ -679,20 +1187,52 @@ module Stripe
679
1187
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
680
1188
  # Przelewy24 rarely provides this information so the attribute is usually empty.
681
1189
  attr_reader :verified_name
1190
+
1191
+ def self.inner_class_types
1192
+ @inner_class_types = {}
1193
+ end
1194
+
1195
+ def self.field_remappings
1196
+ @field_remappings = {}
1197
+ end
682
1198
  end
683
1199
 
684
- class PayByBank < Stripe::StripeObject; end
1200
+ class PayByBank < Stripe::StripeObject
1201
+ def self.inner_class_types
1202
+ @inner_class_types = {}
1203
+ end
1204
+
1205
+ def self.field_remappings
1206
+ @field_remappings = {}
1207
+ end
1208
+ end
685
1209
 
686
1210
  class Payco < Stripe::StripeObject
687
1211
  # A unique identifier for the buyer as determined by the local payment processor.
688
1212
  attr_reader :buyer_id
689
1213
  # The Payco transaction ID associated with this payment.
690
1214
  attr_reader :transaction_id
1215
+
1216
+ def self.inner_class_types
1217
+ @inner_class_types = {}
1218
+ end
1219
+
1220
+ def self.field_remappings
1221
+ @field_remappings = {}
1222
+ end
691
1223
  end
692
1224
 
693
1225
  class Paynow < Stripe::StripeObject
694
1226
  # Reference number associated with this PayNow payment
695
1227
  attr_reader :reference
1228
+
1229
+ def self.inner_class_types
1230
+ @inner_class_types = {}
1231
+ end
1232
+
1233
+ def self.field_remappings
1234
+ @field_remappings = {}
1235
+ end
696
1236
  end
697
1237
 
698
1238
  class Paypal < Stripe::StripeObject
@@ -701,6 +1241,14 @@ module Stripe
701
1241
  attr_reader :dispute_categories
702
1242
  # Indicates whether the transaction is eligible for PayPal's seller protection.
703
1243
  attr_reader :status
1244
+
1245
+ def self.inner_class_types
1246
+ @inner_class_types = {}
1247
+ end
1248
+
1249
+ def self.field_remappings
1250
+ @field_remappings = {}
1251
+ end
704
1252
  end
705
1253
 
706
1254
  class Shipping < Stripe::StripeObject
@@ -716,6 +1264,14 @@ module Stripe
716
1264
  attr_reader :postal_code
717
1265
  # State, county, province, or region.
718
1266
  attr_reader :state
1267
+
1268
+ def self.inner_class_types
1269
+ @inner_class_types = {}
1270
+ end
1271
+
1272
+ def self.field_remappings
1273
+ @field_remappings = {}
1274
+ end
719
1275
  end
720
1276
 
721
1277
  class VerifiedAddress < Stripe::StripeObject
@@ -731,6 +1287,14 @@ module Stripe
731
1287
  attr_reader :postal_code
732
1288
  # State, county, province, or region.
733
1289
  attr_reader :state
1290
+
1291
+ def self.inner_class_types
1292
+ @inner_class_types = {}
1293
+ end
1294
+
1295
+ def self.field_remappings
1296
+ @field_remappings = {}
1297
+ end
734
1298
  end
735
1299
  # 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.
736
1300
  attr_reader :country
@@ -760,6 +1324,18 @@ module Stripe
760
1324
  # Owner's verified full name. Values are verified or provided by PayPal directly
761
1325
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
762
1326
  attr_reader :verified_name
1327
+
1328
+ def self.inner_class_types
1329
+ @inner_class_types = {
1330
+ seller_protection: SellerProtection,
1331
+ shipping: Shipping,
1332
+ verified_address: VerifiedAddress,
1333
+ }
1334
+ end
1335
+
1336
+ def self.field_remappings
1337
+ @field_remappings = {}
1338
+ end
763
1339
  end
764
1340
 
765
1341
  class Payto < Stripe::StripeObject
@@ -771,6 +1347,14 @@ module Stripe
771
1347
  attr_reader :mandate
772
1348
  # The PayID alias for the bank account.
773
1349
  attr_reader :pay_id
1350
+
1351
+ def self.inner_class_types
1352
+ @inner_class_types = {}
1353
+ end
1354
+
1355
+ def self.field_remappings
1356
+ @field_remappings = {}
1357
+ end
774
1358
  end
775
1359
 
776
1360
  class Pix < Stripe::StripeObject
@@ -778,15 +1362,48 @@ module Stripe
778
1362
  attr_reader :bank_transaction_id
779
1363
  # ID of the multi use Mandate generated by the PaymentIntent
780
1364
  attr_reader :mandate
1365
+
1366
+ def self.inner_class_types
1367
+ @inner_class_types = {}
1368
+ end
1369
+
1370
+ def self.field_remappings
1371
+ @field_remappings = {}
1372
+ end
781
1373
  end
782
1374
 
783
1375
  class Promptpay < Stripe::StripeObject
784
1376
  # Bill reference generated by PromptPay
785
1377
  attr_reader :reference
1378
+
1379
+ def self.inner_class_types
1380
+ @inner_class_types = {}
1381
+ end
1382
+
1383
+ def self.field_remappings
1384
+ @field_remappings = {}
1385
+ end
786
1386
  end
787
1387
 
788
- class Qris < Stripe::StripeObject; end
789
- class Rechnung < Stripe::StripeObject; end
1388
+ class Qris < Stripe::StripeObject
1389
+ def self.inner_class_types
1390
+ @inner_class_types = {}
1391
+ end
1392
+
1393
+ def self.field_remappings
1394
+ @field_remappings = {}
1395
+ end
1396
+ end
1397
+
1398
+ class Rechnung < Stripe::StripeObject
1399
+ def self.inner_class_types
1400
+ @inner_class_types = {}
1401
+ end
1402
+
1403
+ def self.field_remappings
1404
+ @field_remappings = {}
1405
+ end
1406
+ end
790
1407
 
791
1408
  class RevolutPay < Stripe::StripeObject
792
1409
  class Funding < Stripe::StripeObject
@@ -805,16 +1422,40 @@ module Stripe
805
1422
  attr_reader :funding
806
1423
  # The last four digits of the card.
807
1424
  attr_reader :last4
1425
+
1426
+ def self.inner_class_types
1427
+ @inner_class_types = {}
1428
+ end
1429
+
1430
+ def self.field_remappings
1431
+ @field_remappings = {}
1432
+ end
808
1433
  end
809
1434
  # Attribute for field card
810
1435
  attr_reader :card
811
1436
  # funding type of the underlying payment method.
812
1437
  attr_reader :type
1438
+
1439
+ def self.inner_class_types
1440
+ @inner_class_types = { card: Card }
1441
+ end
1442
+
1443
+ def self.field_remappings
1444
+ @field_remappings = {}
1445
+ end
813
1446
  end
814
1447
  # Attribute for field funding
815
1448
  attr_reader :funding
816
1449
  # The Revolut Pay transaction ID associated with this payment.
817
1450
  attr_reader :transaction_id
1451
+
1452
+ def self.inner_class_types
1453
+ @inner_class_types = { funding: Funding }
1454
+ end
1455
+
1456
+ def self.field_remappings
1457
+ @field_remappings = {}
1458
+ end
818
1459
  end
819
1460
 
820
1461
  class SamsungPay < Stripe::StripeObject
@@ -822,11 +1463,27 @@ module Stripe
822
1463
  attr_reader :buyer_id
823
1464
  # The Samsung Pay transaction ID associated with this payment.
824
1465
  attr_reader :transaction_id
1466
+
1467
+ def self.inner_class_types
1468
+ @inner_class_types = {}
1469
+ end
1470
+
1471
+ def self.field_remappings
1472
+ @field_remappings = {}
1473
+ end
825
1474
  end
826
1475
 
827
1476
  class Satispay < Stripe::StripeObject
828
1477
  # The Satispay transaction ID associated with this payment.
829
1478
  attr_reader :transaction_id
1479
+
1480
+ def self.inner_class_types
1481
+ @inner_class_types = {}
1482
+ end
1483
+
1484
+ def self.field_remappings
1485
+ @field_remappings = {}
1486
+ end
830
1487
  end
831
1488
 
832
1489
  class SepaCreditTransfer < Stripe::StripeObject
@@ -836,6 +1493,14 @@ module Stripe
836
1493
  attr_reader :bic
837
1494
  # IBAN of the bank account to transfer funds to.
838
1495
  attr_reader :iban
1496
+
1497
+ def self.inner_class_types
1498
+ @inner_class_types = {}
1499
+ end
1500
+
1501
+ def self.field_remappings
1502
+ @field_remappings = {}
1503
+ end
839
1504
  end
840
1505
 
841
1506
  class SepaDebit < Stripe::StripeObject
@@ -851,9 +1516,25 @@ module Stripe
851
1516
  attr_reader :last4
852
1517
  # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve).
853
1518
  attr_reader :mandate
1519
+
1520
+ def self.inner_class_types
1521
+ @inner_class_types = {}
1522
+ end
1523
+
1524
+ def self.field_remappings
1525
+ @field_remappings = {}
1526
+ end
854
1527
  end
855
1528
 
856
- class Shopeepay < Stripe::StripeObject; end
1529
+ class Shopeepay < Stripe::StripeObject
1530
+ def self.inner_class_types
1531
+ @inner_class_types = {}
1532
+ end
1533
+
1534
+ def self.field_remappings
1535
+ @field_remappings = {}
1536
+ end
1537
+ end
857
1538
 
858
1539
  class Sofort < Stripe::StripeObject
859
1540
  # Bank code of bank associated with the bank account.
@@ -876,15 +1557,39 @@ module Stripe
876
1557
  # Owner's verified full name. Values are verified or provided by SOFORT directly
877
1558
  # (if supported) at the time of authorization or settlement. They cannot be set or mutated.
878
1559
  attr_reader :verified_name
1560
+
1561
+ def self.inner_class_types
1562
+ @inner_class_types = {}
1563
+ end
1564
+
1565
+ def self.field_remappings
1566
+ @field_remappings = {}
1567
+ end
879
1568
  end
880
1569
 
881
- class StripeAccount < Stripe::StripeObject; end
1570
+ class StripeAccount < Stripe::StripeObject
1571
+ def self.inner_class_types
1572
+ @inner_class_types = {}
1573
+ end
1574
+
1575
+ def self.field_remappings
1576
+ @field_remappings = {}
1577
+ end
1578
+ end
882
1579
 
883
1580
  class StripeBalance < Stripe::StripeObject
884
1581
  # The connected account ID whose Stripe balance to use as the source of payment
885
1582
  attr_reader :account
886
1583
  # The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
887
1584
  attr_reader :source_type
1585
+
1586
+ def self.inner_class_types
1587
+ @inner_class_types = {}
1588
+ end
1589
+
1590
+ def self.field_remappings
1591
+ @field_remappings = {}
1592
+ end
888
1593
  end
889
1594
 
890
1595
  class Swish < Stripe::StripeObject
@@ -894,9 +1599,25 @@ module Stripe
894
1599
  attr_reader :payment_reference
895
1600
  # The last four digits of the Swish account phone number
896
1601
  attr_reader :verified_phone_last4
1602
+
1603
+ def self.inner_class_types
1604
+ @inner_class_types = {}
1605
+ end
1606
+
1607
+ def self.field_remappings
1608
+ @field_remappings = {}
1609
+ end
897
1610
  end
898
1611
 
899
- class Twint < Stripe::StripeObject; end
1612
+ class Twint < Stripe::StripeObject
1613
+ def self.inner_class_types
1614
+ @inner_class_types = {}
1615
+ end
1616
+
1617
+ def self.field_remappings
1618
+ @field_remappings = {}
1619
+ end
1620
+ end
900
1621
 
901
1622
  class UsBankAccount < Stripe::StripeObject
902
1623
  # Attribute for field account_holder_type
@@ -915,9 +1636,25 @@ module Stripe
915
1636
  attr_reader :payment_reference
916
1637
  # Routing number of the bank account.
917
1638
  attr_reader :routing_number
1639
+
1640
+ def self.inner_class_types
1641
+ @inner_class_types = {}
1642
+ end
1643
+
1644
+ def self.field_remappings
1645
+ @field_remappings = {}
1646
+ end
918
1647
  end
919
1648
 
920
- class Wechat < Stripe::StripeObject; end
1649
+ class Wechat < Stripe::StripeObject
1650
+ def self.inner_class_types
1651
+ @inner_class_types = {}
1652
+ end
1653
+
1654
+ def self.field_remappings
1655
+ @field_remappings = {}
1656
+ end
1657
+ end
921
1658
 
922
1659
  class WechatPay < Stripe::StripeObject
923
1660
  # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
@@ -928,9 +1665,25 @@ module Stripe
928
1665
  attr_reader :reader
929
1666
  # Transaction ID of this particular WeChat Pay transaction.
930
1667
  attr_reader :transaction_id
1668
+
1669
+ def self.inner_class_types
1670
+ @inner_class_types = {}
1671
+ end
1672
+
1673
+ def self.field_remappings
1674
+ @field_remappings = {}
1675
+ end
931
1676
  end
932
1677
 
933
- class Zip < Stripe::StripeObject; end
1678
+ class Zip < Stripe::StripeObject
1679
+ def self.inner_class_types
1680
+ @inner_class_types = {}
1681
+ end
1682
+
1683
+ def self.field_remappings
1684
+ @field_remappings = {}
1685
+ end
1686
+ end
934
1687
  # Attribute for field ach_credit_transfer
935
1688
  attr_reader :ach_credit_transfer
936
1689
  # Attribute for field ach_debit
@@ -1069,12 +1822,94 @@ module Stripe
1069
1822
  attr_reader :wechat_pay
1070
1823
  # Attribute for field zip
1071
1824
  attr_reader :zip
1825
+
1826
+ def self.inner_class_types
1827
+ @inner_class_types = {
1828
+ ach_credit_transfer: AchCreditTransfer,
1829
+ ach_debit: AchDebit,
1830
+ acss_debit: AcssDebit,
1831
+ affirm: Affirm,
1832
+ afterpay_clearpay: AfterpayClearpay,
1833
+ alipay: Alipay,
1834
+ alma: Alma,
1835
+ amazon_pay: AmazonPay,
1836
+ au_becs_debit: AuBecsDebit,
1837
+ bacs_debit: BacsDebit,
1838
+ bancontact: Bancontact,
1839
+ billie: Billie,
1840
+ billing_details: BillingDetails,
1841
+ blik: Blik,
1842
+ boleto: Boleto,
1843
+ card: Card,
1844
+ card_present: CardPresent,
1845
+ cashapp: Cashapp,
1846
+ crypto: Crypto,
1847
+ custom: Custom,
1848
+ customer_balance: CustomerBalance,
1849
+ eps: Eps,
1850
+ fpx: Fpx,
1851
+ giropay: Giropay,
1852
+ gopay: Gopay,
1853
+ grabpay: Grabpay,
1854
+ id_bank_transfer: IdBankTransfer,
1855
+ ideal: Ideal,
1856
+ interac_present: InteracPresent,
1857
+ kakao_pay: KakaoPay,
1858
+ klarna: Klarna,
1859
+ konbini: Konbini,
1860
+ kr_card: KrCard,
1861
+ link: Link,
1862
+ mb_way: MbWay,
1863
+ mobilepay: Mobilepay,
1864
+ multibanco: Multibanco,
1865
+ naver_pay: NaverPay,
1866
+ nz_bank_account: NzBankAccount,
1867
+ oxxo: Oxxo,
1868
+ p24: P24,
1869
+ pay_by_bank: PayByBank,
1870
+ payco: Payco,
1871
+ paynow: Paynow,
1872
+ paypal: Paypal,
1873
+ payto: Payto,
1874
+ pix: Pix,
1875
+ promptpay: Promptpay,
1876
+ qris: Qris,
1877
+ rechnung: Rechnung,
1878
+ revolut_pay: RevolutPay,
1879
+ samsung_pay: SamsungPay,
1880
+ satispay: Satispay,
1881
+ sepa_credit_transfer: SepaCreditTransfer,
1882
+ sepa_debit: SepaDebit,
1883
+ shopeepay: Shopeepay,
1884
+ sofort: Sofort,
1885
+ stripe_account: StripeAccount,
1886
+ stripe_balance: StripeBalance,
1887
+ swish: Swish,
1888
+ twint: Twint,
1889
+ us_bank_account: UsBankAccount,
1890
+ wechat: Wechat,
1891
+ wechat_pay: WechatPay,
1892
+ zip: Zip,
1893
+ }
1894
+ end
1895
+
1896
+ def self.field_remappings
1897
+ @field_remappings = {}
1898
+ end
1072
1899
  end
1073
1900
 
1074
1901
  class ProcessorDetails < Stripe::StripeObject
1075
1902
  class Custom < Stripe::StripeObject
1076
1903
  # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID.
1077
1904
  attr_reader :payment_reference
1905
+
1906
+ def self.inner_class_types
1907
+ @inner_class_types = {}
1908
+ end
1909
+
1910
+ def self.field_remappings
1911
+ @field_remappings = {}
1912
+ end
1078
1913
  end
1079
1914
  # Custom processors represent payment processors not modeled directly in
1080
1915
  # the Stripe API. This resource consists of details about the custom processor
@@ -1082,6 +1917,14 @@ module Stripe
1082
1917
  attr_reader :custom
1083
1918
  # The processor used for this payment attempt.
1084
1919
  attr_reader :type
1920
+
1921
+ def self.inner_class_types
1922
+ @inner_class_types = { custom: Custom }
1923
+ end
1924
+
1925
+ def self.field_remappings
1926
+ @field_remappings = {}
1927
+ end
1085
1928
  end
1086
1929
 
1087
1930
  class ShippingDetails < Stripe::StripeObject
@@ -1098,6 +1941,14 @@ module Stripe
1098
1941
  attr_reader :postal_code
1099
1942
  # State, county, province, or region.
1100
1943
  attr_reader :state
1944
+
1945
+ def self.inner_class_types
1946
+ @inner_class_types = {}
1947
+ end
1948
+
1949
+ def self.field_remappings
1950
+ @field_remappings = {}
1951
+ end
1101
1952
  end
1102
1953
  # A representation of a physical address.
1103
1954
  attr_reader :address
@@ -1105,6 +1956,14 @@ module Stripe
1105
1956
  attr_reader :name
1106
1957
  # The shipping recipient's phone number.
1107
1958
  attr_reader :phone
1959
+
1960
+ def self.inner_class_types
1961
+ @inner_class_types = { address: Address }
1962
+ end
1963
+
1964
+ def self.field_remappings
1965
+ @field_remappings = {}
1966
+ end
1108
1967
  end
1109
1968
 
1110
1969
  class ListParams < Stripe::RequestParams
@@ -1173,5 +2032,25 @@ module Stripe
1173
2032
  opts: opts
1174
2033
  )
1175
2034
  end
2035
+
2036
+ def self.inner_class_types
2037
+ @inner_class_types = {
2038
+ amount: Amount,
2039
+ amount_authorized: AmountAuthorized,
2040
+ amount_canceled: AmountCanceled,
2041
+ amount_failed: AmountFailed,
2042
+ amount_guaranteed: AmountGuaranteed,
2043
+ amount_refunded: AmountRefunded,
2044
+ amount_requested: AmountRequested,
2045
+ customer_details: CustomerDetails,
2046
+ payment_method_details: PaymentMethodDetails,
2047
+ processor_details: ProcessorDetails,
2048
+ shipping_details: ShippingDetails,
2049
+ }
2050
+ end
2051
+
2052
+ def self.field_remappings
2053
+ @field_remappings = {}
2054
+ end
1176
2055
  end
1177
2056
  end