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
@@ -24,6 +24,14 @@ module Stripe
24
24
  attr_reader :customer_account
25
25
  # Type of account holder that this account belongs to.
26
26
  attr_reader :type
27
+
28
+ def self.inner_class_types
29
+ @inner_class_types = {}
30
+ end
31
+
32
+ def self.field_remappings
33
+ @field_remappings = {}
34
+ end
27
35
  end
28
36
 
29
37
  class Balance < Stripe::StripeObject
@@ -34,6 +42,14 @@ module Stripe
34
42
  #
35
43
  # Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
36
44
  attr_reader :available
45
+
46
+ def self.inner_class_types
47
+ @inner_class_types = {}
48
+ end
49
+
50
+ def self.field_remappings
51
+ @field_remappings = {}
52
+ end
37
53
  end
38
54
 
39
55
  class Credit < Stripe::StripeObject
@@ -43,6 +59,14 @@ module Stripe
43
59
  #
44
60
  # Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
45
61
  attr_reader :used
62
+
63
+ def self.inner_class_types
64
+ @inner_class_types = {}
65
+ end
66
+
67
+ def self.field_remappings
68
+ @field_remappings = {}
69
+ end
46
70
  end
47
71
  # The time that the external institution calculated this balance. Measured in seconds since the Unix epoch.
48
72
  attr_reader :as_of
@@ -58,6 +82,14 @@ module Stripe
58
82
  attr_reader :current
59
83
  # The `type` of the balance. An additional hash is included on the balance with a name matching this value.
60
84
  attr_reader :type
85
+
86
+ def self.inner_class_types
87
+ @inner_class_types = { cash: Cash, credit: Credit }
88
+ end
89
+
90
+ def self.field_remappings
91
+ @field_remappings = {}
92
+ end
61
93
  end
62
94
 
63
95
  class BalanceRefresh < Stripe::StripeObject
@@ -67,6 +99,14 @@ module Stripe
67
99
  attr_reader :next_refresh_available_at
68
100
  # The status of the last refresh attempt.
69
101
  attr_reader :status
102
+
103
+ def self.inner_class_types
104
+ @inner_class_types = {}
105
+ end
106
+
107
+ def self.field_remappings
108
+ @field_remappings = {}
109
+ end
70
110
  end
71
111
 
72
112
  class InferredBalancesRefresh < Stripe::StripeObject
@@ -76,6 +116,14 @@ module Stripe
76
116
  attr_reader :next_refresh_available_at
77
117
  # The status of the last refresh attempt.
78
118
  attr_reader :status
119
+
120
+ def self.inner_class_types
121
+ @inner_class_types = {}
122
+ end
123
+
124
+ def self.field_remappings
125
+ @field_remappings = {}
126
+ end
79
127
  end
80
128
 
81
129
  class OwnershipRefresh < Stripe::StripeObject
@@ -85,6 +133,14 @@ module Stripe
85
133
  attr_reader :next_refresh_available_at
86
134
  # The status of the last refresh attempt.
87
135
  attr_reader :status
136
+
137
+ def self.inner_class_types
138
+ @inner_class_types = {}
139
+ end
140
+
141
+ def self.field_remappings
142
+ @field_remappings = {}
143
+ end
88
144
  end
89
145
 
90
146
  class TransactionRefresh < Stripe::StripeObject
@@ -96,6 +152,14 @@ module Stripe
96
152
  attr_reader :next_refresh_available_at
97
153
  # The status of the last refresh attempt.
98
154
  attr_reader :status
155
+
156
+ def self.inner_class_types
157
+ @inner_class_types = {}
158
+ end
159
+
160
+ def self.field_remappings
161
+ @field_remappings = {}
162
+ end
99
163
  end
100
164
 
101
165
  class ListParams < Stripe::RequestParams
@@ -379,6 +443,21 @@ module Stripe
379
443
  opts: opts
380
444
  )
381
445
  end
446
+
447
+ def self.inner_class_types
448
+ @inner_class_types = {
449
+ account_holder: AccountHolder,
450
+ balance: Balance,
451
+ balance_refresh: BalanceRefresh,
452
+ inferred_balances_refresh: InferredBalancesRefresh,
453
+ ownership_refresh: OwnershipRefresh,
454
+ transaction_refresh: TransactionRefresh,
455
+ }
456
+ end
457
+
458
+ def self.field_remappings
459
+ @field_remappings = {}
460
+ end
382
461
  end
383
462
  end
384
463
  end
@@ -22,6 +22,14 @@ module Stripe
22
22
  attr_reader :id
23
23
  # String representing the object's type. Objects of the same type share the same value.
24
24
  attr_reader :object
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
  end
27
35
  end
@@ -26,6 +26,14 @@ module Stripe
26
26
  attr_reader :raw_address
27
27
  # The timestamp of the refresh that updated this owner.
28
28
  attr_reader :refreshed_at
29
+
30
+ def self.inner_class_types
31
+ @inner_class_types = {}
32
+ end
33
+
34
+ def self.field_remappings
35
+ @field_remappings = {}
36
+ end
29
37
  end
30
38
  end
31
39
  end
@@ -18,6 +18,14 @@ module Stripe
18
18
  attr_reader :object
19
19
  # A paginated list of owners for this account.
20
20
  attr_reader :owners
21
+
22
+ def self.inner_class_types
23
+ @inner_class_types = {}
24
+ end
25
+
26
+ def self.field_remappings
27
+ @field_remappings = {}
28
+ end
21
29
  end
22
30
  end
23
31
  end
@@ -16,21 +16,53 @@ module Stripe
16
16
  class Balances < Stripe::StripeObject
17
17
  # Whether the given feature is supported by this institution.
18
18
  attr_reader :supported
19
+
20
+ def self.inner_class_types
21
+ @inner_class_types = {}
22
+ end
23
+
24
+ def self.field_remappings
25
+ @field_remappings = {}
26
+ end
19
27
  end
20
28
 
21
29
  class Ownership < Stripe::StripeObject
22
30
  # Whether the given feature is supported by this institution.
23
31
  attr_reader :supported
32
+
33
+ def self.inner_class_types
34
+ @inner_class_types = {}
35
+ end
36
+
37
+ def self.field_remappings
38
+ @field_remappings = {}
39
+ end
24
40
  end
25
41
 
26
42
  class PaymentMethod < Stripe::StripeObject
27
43
  # Whether the given feature is supported by this institution.
28
44
  attr_reader :supported
45
+
46
+ def self.inner_class_types
47
+ @inner_class_types = {}
48
+ end
49
+
50
+ def self.field_remappings
51
+ @field_remappings = {}
52
+ end
29
53
  end
30
54
 
31
55
  class Transactions < Stripe::StripeObject
32
56
  # Whether the given feature is supported by this institution.
33
57
  attr_reader :supported
58
+
59
+ def self.inner_class_types
60
+ @inner_class_types = {}
61
+ end
62
+
63
+ def self.field_remappings
64
+ @field_remappings = {}
65
+ end
34
66
  end
35
67
  # Attribute for field balances
36
68
  attr_reader :balances
@@ -40,6 +72,19 @@ module Stripe
40
72
  attr_reader :payment_method
41
73
  # Attribute for field transactions
42
74
  attr_reader :transactions
75
+
76
+ def self.inner_class_types
77
+ @inner_class_types = {
78
+ balances: Balances,
79
+ ownership: Ownership,
80
+ payment_method: PaymentMethod,
81
+ transactions: Transactions,
82
+ }
83
+ end
84
+
85
+ def self.field_remappings
86
+ @field_remappings = {}
87
+ end
43
88
  end
44
89
 
45
90
  class ListParams < Stripe::RequestParams
@@ -87,6 +132,14 @@ module Stripe
87
132
  opts: opts
88
133
  )
89
134
  end
135
+
136
+ def self.inner_class_types
137
+ @inner_class_types = { features: Features }
138
+ end
139
+
140
+ def self.field_remappings
141
+ @field_remappings = {}
142
+ end
90
143
  end
91
144
  end
92
145
  end
@@ -21,6 +21,14 @@ module Stripe
21
21
  attr_reader :customer_account
22
22
  # Type of account holder that this account belongs to.
23
23
  attr_reader :type
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = {}
27
+ end
28
+
29
+ def self.field_remappings
30
+ @field_remappings = {}
31
+ end
24
32
  end
25
33
 
26
34
  class Filters < Stripe::StripeObject
@@ -30,22 +38,62 @@ module Stripe
30
38
  attr_reader :countries
31
39
  # Stripe ID of the institution with which the customer should be directed to log in.
32
40
  attr_reader :institution
41
+
42
+ def self.inner_class_types
43
+ @inner_class_types = {}
44
+ end
45
+
46
+ def self.field_remappings
47
+ @field_remappings = {}
48
+ end
33
49
  end
34
50
 
35
51
  class Limits < Stripe::StripeObject
36
52
  # The number of accounts that can be linked in this Session.
37
53
  attr_reader :accounts
54
+
55
+ def self.inner_class_types
56
+ @inner_class_types = {}
57
+ end
58
+
59
+ def self.field_remappings
60
+ @field_remappings = {}
61
+ end
38
62
  end
39
63
 
40
- class ManualEntry < Stripe::StripeObject; end
64
+ class ManualEntry < Stripe::StripeObject
65
+ def self.inner_class_types
66
+ @inner_class_types = {}
67
+ end
68
+
69
+ def self.field_remappings
70
+ @field_remappings = {}
71
+ end
72
+ end
41
73
 
42
74
  class StatusDetails < Stripe::StripeObject
43
75
  class Cancelled < Stripe::StripeObject
44
76
  # The reason for the Session being cancelled.
45
77
  attr_reader :reason
78
+
79
+ def self.inner_class_types
80
+ @inner_class_types = {}
81
+ end
82
+
83
+ def self.field_remappings
84
+ @field_remappings = {}
85
+ end
46
86
  end
47
87
  # Attribute for field cancelled
48
88
  attr_reader :cancelled
89
+
90
+ def self.inner_class_types
91
+ @inner_class_types = { cancelled: Cancelled }
92
+ end
93
+
94
+ def self.field_remappings
95
+ @field_remappings = {}
96
+ end
49
97
  end
50
98
 
51
99
  class CreateParams < Stripe::RequestParams
@@ -176,6 +224,20 @@ module Stripe
176
224
  opts: opts
177
225
  )
178
226
  end
227
+
228
+ def self.inner_class_types
229
+ @inner_class_types = {
230
+ account_holder: AccountHolder,
231
+ filters: Filters,
232
+ limits: Limits,
233
+ manual_entry: ManualEntry,
234
+ status_details: StatusDetails,
235
+ }
236
+ end
237
+
238
+ def self.field_remappings
239
+ @field_remappings = {}
240
+ end
179
241
  end
180
242
  end
181
243
  end
@@ -17,6 +17,14 @@ module Stripe
17
17
  attr_reader :posted_at
18
18
  # Time at which this transaction was voided. Measured in seconds since the Unix epoch.
19
19
  attr_reader :void_at
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
20
28
  end
21
29
 
22
30
  class ListParams < Stripe::RequestParams
@@ -113,6 +121,14 @@ module Stripe
113
121
  opts: opts
114
122
  )
115
123
  end
124
+
125
+ def self.inner_class_types
126
+ @inner_class_types = { status_transitions: StatusTransitions }
127
+ end
128
+
129
+ def self.field_remappings
130
+ @field_remappings = {}
131
+ end
116
132
  end
117
133
  end
118
134
  end
@@ -33,6 +33,14 @@ module Stripe
33
33
  attr_reader :destination_duration
34
34
  # The IP address of the destination.
35
35
  attr_reader :destination_ip_address
36
+
37
+ def self.inner_class_types
38
+ @inner_class_types = {}
39
+ end
40
+
41
+ def self.field_remappings
42
+ @field_remappings = {}
43
+ end
36
44
  end
37
45
 
38
46
  class RequestDetails < Stripe::StripeObject
@@ -41,6 +49,14 @@ module Stripe
41
49
  attr_reader :name
42
50
  # The header value.
43
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
44
60
  end
45
61
  # The body payload to send to the destination endpoint.
46
62
  attr_reader :body
@@ -48,6 +64,14 @@ module Stripe
48
64
  attr_reader :headers
49
65
  # The HTTP method used to call the destination endpoint.
50
66
  attr_reader :http_method
67
+
68
+ def self.inner_class_types
69
+ @inner_class_types = { headers: Header }
70
+ end
71
+
72
+ def self.field_remappings
73
+ @field_remappings = {}
74
+ end
51
75
  end
52
76
 
53
77
  class ResponseDetails < Stripe::StripeObject
@@ -56,6 +80,14 @@ module Stripe
56
80
  attr_reader :name
57
81
  # The header value.
58
82
  attr_reader :value
83
+
84
+ def self.inner_class_types
85
+ @inner_class_types = {}
86
+ end
87
+
88
+ def self.field_remappings
89
+ @field_remappings = {}
90
+ end
59
91
  end
60
92
  # The response body from the destination endpoint to Stripe.
61
93
  attr_reader :body
@@ -63,6 +95,14 @@ module Stripe
63
95
  attr_reader :headers
64
96
  # The HTTP status code that the destination endpoint returned.
65
97
  attr_reader :status
98
+
99
+ def self.inner_class_types
100
+ @inner_class_types = { headers: Header }
101
+ end
102
+
103
+ def self.field_remappings
104
+ @field_remappings = {}
105
+ end
66
106
  end
67
107
 
68
108
  class ListParams < Stripe::RequestParams
@@ -203,6 +243,18 @@ module Stripe
203
243
  opts: opts
204
244
  )
205
245
  end
246
+
247
+ def self.inner_class_types
248
+ @inner_class_types = {
249
+ request_context: RequestContext,
250
+ request_details: RequestDetails,
251
+ response_details: ResponseDetails,
252
+ }
253
+ end
254
+
255
+ def self.field_remappings
256
+ @field_remappings = {}
257
+ end
206
258
  end
207
259
  end
208
260
  end