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
@@ -12,11 +12,27 @@ module Stripe
12
12
  class Card < Stripe::StripeObject
13
13
  # Attribute for field commodity_code
14
14
  attr_reader :commodity_code
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
15
23
  end
16
24
 
17
25
  class CardPresent < Stripe::StripeObject
18
26
  # Attribute for field commodity_code
19
27
  attr_reader :commodity_code
28
+
29
+ def self.inner_class_types
30
+ @inner_class_types = {}
31
+ end
32
+
33
+ def self.field_remappings
34
+ @field_remappings = {}
35
+ end
20
36
  end
21
37
 
22
38
  class Klarna < Stripe::StripeObject
@@ -24,6 +40,14 @@ module Stripe
24
40
  attr_reader :image_url
25
41
  # Attribute for field product_url
26
42
  attr_reader :product_url
43
+
44
+ def self.inner_class_types
45
+ @inner_class_types = {}
46
+ end
47
+
48
+ def self.field_remappings
49
+ @field_remappings = {}
50
+ end
27
51
  end
28
52
 
29
53
  class Paypal < Stripe::StripeObject
@@ -33,6 +57,14 @@ module Stripe
33
57
  attr_reader :description
34
58
  # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
35
59
  attr_reader :sold_by
60
+
61
+ def self.inner_class_types
62
+ @inner_class_types = {}
63
+ end
64
+
65
+ def self.field_remappings
66
+ @field_remappings = {}
67
+ end
36
68
  end
37
69
  # Attribute for field card
38
70
  attr_reader :card
@@ -42,11 +74,27 @@ module Stripe
42
74
  attr_reader :klarna
43
75
  # Attribute for field paypal
44
76
  attr_reader :paypal
77
+
78
+ def self.inner_class_types
79
+ @inner_class_types = { card: Card, card_present: CardPresent, klarna: Klarna, paypal: Paypal }
80
+ end
81
+
82
+ def self.field_remappings
83
+ @field_remappings = {}
84
+ end
45
85
  end
46
86
 
47
87
  class Tax < Stripe::StripeObject
48
88
  # Total portion of the amount that is for tax.
49
89
  attr_reader :total_tax_amount
90
+
91
+ def self.inner_class_types
92
+ @inner_class_types = {}
93
+ end
94
+
95
+ def self.field_remappings
96
+ @field_remappings = {}
97
+ end
50
98
  end
51
99
  # The amount an item was discounted for. Positive integer.
52
100
  attr_reader :discount_amount
@@ -68,5 +116,13 @@ module Stripe
68
116
  attr_reader :unit_cost
69
117
  # A unit of measure for the line item, such as gallons, feet, meters, etc.
70
118
  attr_reader :unit_of_measure
119
+
120
+ def self.inner_class_types
121
+ @inner_class_types = { payment_method_options: PaymentMethodOptions, tax: Tax }
122
+ end
123
+
124
+ def self.field_remappings
125
+ @field_remappings = {}
126
+ end
71
127
  end
72
128
  end
@@ -21,11 +21,27 @@ module Stripe
21
21
  class HostedConfirmation < Stripe::StripeObject
22
22
  # The custom message that is displayed to the customer after the purchase is complete.
23
23
  attr_reader :custom_message
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 Redirect < Stripe::StripeObject
27
35
  # The URL the customer will be redirected to after the purchase is complete.
28
36
  attr_reader :url
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
  # Attribute for field hosted_confirmation
31
47
  attr_reader :hosted_confirmation
@@ -33,6 +49,14 @@ module Stripe
33
49
  attr_reader :redirect
34
50
  # The specified behavior after the purchase is complete.
35
51
  attr_reader :type
52
+
53
+ def self.inner_class_types
54
+ @inner_class_types = { hosted_confirmation: HostedConfirmation, redirect: Redirect }
55
+ end
56
+
57
+ def self.field_remappings
58
+ @field_remappings = {}
59
+ end
36
60
  end
37
61
 
38
62
  class AutomaticTax < Stripe::StripeObject
@@ -41,11 +65,27 @@ module Stripe
41
65
  attr_reader :account
42
66
  # Type of the account referenced.
43
67
  attr_reader :type
68
+
69
+ def self.inner_class_types
70
+ @inner_class_types = {}
71
+ end
72
+
73
+ def self.field_remappings
74
+ @field_remappings = {}
75
+ end
44
76
  end
45
77
  # If `true`, tax will be calculated automatically using the customer's location.
46
78
  attr_reader :enabled
47
79
  # The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
48
80
  attr_reader :liability
81
+
82
+ def self.inner_class_types
83
+ @inner_class_types = { liability: Liability }
84
+ end
85
+
86
+ def self.field_remappings
87
+ @field_remappings = {}
88
+ end
49
89
  end
50
90
 
51
91
  class ConsentCollection < Stripe::StripeObject
@@ -54,6 +94,14 @@ module Stripe
54
94
  #
55
95
  # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
56
96
  attr_reader :position
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
  # Settings related to the payment method reuse text shown in the Checkout UI.
59
107
  attr_reader :payment_method_reuse_agreement
@@ -61,6 +109,14 @@ module Stripe
61
109
  attr_reader :promotions
62
110
  # If set to `required`, it requires cutomers to accept the terms of service before being able to pay. If set to `none`, customers won't be shown a checkbox to accept the terms of service.
63
111
  attr_reader :terms_of_service
112
+
113
+ def self.inner_class_types
114
+ @inner_class_types = { payment_method_reuse_agreement: PaymentMethodReuseAgreement }
115
+ end
116
+
117
+ def self.field_remappings
118
+ @field_remappings = {}
119
+ end
64
120
  end
65
121
 
66
122
  class CustomField < Stripe::StripeObject
@@ -70,11 +126,27 @@ module Stripe
70
126
  attr_reader :label
71
127
  # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
72
128
  attr_reader :value
129
+
130
+ def self.inner_class_types
131
+ @inner_class_types = {}
132
+ end
133
+
134
+ def self.field_remappings
135
+ @field_remappings = {}
136
+ end
73
137
  end
74
138
  # The value that will pre-fill on the payment page.
75
139
  attr_reader :default_value
76
140
  # The options available for the customer to select. Up to 200 options allowed.
77
141
  attr_reader :options
142
+
143
+ def self.inner_class_types
144
+ @inner_class_types = { options: Option }
145
+ end
146
+
147
+ def self.field_remappings
148
+ @field_remappings = {}
149
+ end
78
150
  end
79
151
 
80
152
  class Label < Stripe::StripeObject
@@ -82,6 +154,14 @@ module Stripe
82
154
  attr_reader :custom
83
155
  # The type of the label.
84
156
  attr_reader :type
157
+
158
+ def self.inner_class_types
159
+ @inner_class_types = {}
160
+ end
161
+
162
+ def self.field_remappings
163
+ @field_remappings = {}
164
+ end
85
165
  end
86
166
 
87
167
  class Numeric < Stripe::StripeObject
@@ -91,6 +171,14 @@ module Stripe
91
171
  attr_reader :maximum_length
92
172
  # The minimum character length requirement for the customer's input.
93
173
  attr_reader :minimum_length
174
+
175
+ def self.inner_class_types
176
+ @inner_class_types = {}
177
+ end
178
+
179
+ def self.field_remappings
180
+ @field_remappings = {}
181
+ end
94
182
  end
95
183
 
96
184
  class Text < Stripe::StripeObject
@@ -100,6 +188,14 @@ module Stripe
100
188
  attr_reader :maximum_length
101
189
  # The minimum character length requirement for the customer's input.
102
190
  attr_reader :minimum_length
191
+
192
+ def self.inner_class_types
193
+ @inner_class_types = {}
194
+ end
195
+
196
+ def self.field_remappings
197
+ @field_remappings = {}
198
+ end
103
199
  end
104
200
  # Attribute for field dropdown
105
201
  attr_reader :dropdown
@@ -115,27 +211,67 @@ module Stripe
115
211
  attr_reader :text
116
212
  # The type of the field.
117
213
  attr_reader :type
214
+
215
+ def self.inner_class_types
216
+ @inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text }
217
+ end
218
+
219
+ def self.field_remappings
220
+ @field_remappings = {}
221
+ end
118
222
  end
119
223
 
120
224
  class CustomText < Stripe::StripeObject
121
225
  class AfterSubmit < Stripe::StripeObject
122
226
  # Text may be up to 1200 characters in length.
123
227
  attr_reader :message
228
+
229
+ def self.inner_class_types
230
+ @inner_class_types = {}
231
+ end
232
+
233
+ def self.field_remappings
234
+ @field_remappings = {}
235
+ end
124
236
  end
125
237
 
126
238
  class ShippingAddress < Stripe::StripeObject
127
239
  # Text may be up to 1200 characters in length.
128
240
  attr_reader :message
241
+
242
+ def self.inner_class_types
243
+ @inner_class_types = {}
244
+ end
245
+
246
+ def self.field_remappings
247
+ @field_remappings = {}
248
+ end
129
249
  end
130
250
 
131
251
  class Submit < Stripe::StripeObject
132
252
  # Text may be up to 1200 characters in length.
133
253
  attr_reader :message
254
+
255
+ def self.inner_class_types
256
+ @inner_class_types = {}
257
+ end
258
+
259
+ def self.field_remappings
260
+ @field_remappings = {}
261
+ end
134
262
  end
135
263
 
136
264
  class TermsOfServiceAcceptance < Stripe::StripeObject
137
265
  # Text may be up to 1200 characters in length.
138
266
  attr_reader :message
267
+
268
+ def self.inner_class_types
269
+ @inner_class_types = {}
270
+ end
271
+
272
+ def self.field_remappings
273
+ @field_remappings = {}
274
+ end
139
275
  end
140
276
  # Custom text that should be displayed after the payment confirmation button.
141
277
  attr_reader :after_submit
@@ -145,6 +281,19 @@ module Stripe
145
281
  attr_reader :submit
146
282
  # Custom text that should be displayed in place of the default terms of service agreement text.
147
283
  attr_reader :terms_of_service_acceptance
284
+
285
+ def self.inner_class_types
286
+ @inner_class_types = {
287
+ after_submit: AfterSubmit,
288
+ shipping_address: ShippingAddress,
289
+ submit: Submit,
290
+ terms_of_service_acceptance: TermsOfServiceAcceptance,
291
+ }
292
+ end
293
+
294
+ def self.field_remappings
295
+ @field_remappings = {}
296
+ end
148
297
  end
149
298
 
150
299
  class InvoiceCreation < Stripe::StripeObject
@@ -154,6 +303,14 @@ module Stripe
154
303
  attr_reader :name
155
304
  # The value of the custom field.
156
305
  attr_reader :value
306
+
307
+ def self.inner_class_types
308
+ @inner_class_types = {}
309
+ end
310
+
311
+ def self.field_remappings
312
+ @field_remappings = {}
313
+ end
157
314
  end
158
315
 
159
316
  class Issuer < Stripe::StripeObject
@@ -161,6 +318,14 @@ module Stripe
161
318
  attr_reader :account
162
319
  # Type of the account referenced.
163
320
  attr_reader :type
321
+
322
+ def self.inner_class_types
323
+ @inner_class_types = {}
324
+ end
325
+
326
+ def self.field_remappings
327
+ @field_remappings = {}
328
+ end
164
329
  end
165
330
 
166
331
  class RenderingOptions < Stripe::StripeObject
@@ -168,6 +333,14 @@ module Stripe
168
333
  attr_reader :amount_tax_display
169
334
  # ID of the invoice rendering template to be used for the generated invoice.
170
335
  attr_reader :template
336
+
337
+ def self.inner_class_types
338
+ @inner_class_types = {}
339
+ end
340
+
341
+ def self.field_remappings
342
+ @field_remappings = {}
343
+ end
171
344
  end
172
345
  # The account tax IDs associated with the invoice.
173
346
  attr_reader :account_tax_ids
@@ -183,11 +356,31 @@ module Stripe
183
356
  attr_reader :metadata
184
357
  # Options for invoice PDF rendering.
185
358
  attr_reader :rendering_options
359
+
360
+ def self.inner_class_types
361
+ @inner_class_types = {
362
+ custom_fields: CustomField,
363
+ issuer: Issuer,
364
+ rendering_options: RenderingOptions,
365
+ }
366
+ end
367
+
368
+ def self.field_remappings
369
+ @field_remappings = {}
370
+ end
186
371
  end
187
372
  # Enable creating an invoice on successful payment.
188
373
  attr_reader :enabled
189
374
  # Configuration for the invoice. Default invoice values will be used if unspecified.
190
375
  attr_reader :invoice_data
376
+
377
+ def self.inner_class_types
378
+ @inner_class_types = { invoice_data: InvoiceData }
379
+ end
380
+
381
+ def self.field_remappings
382
+ @field_remappings = {}
383
+ end
191
384
  end
192
385
 
193
386
  class OptionalItem < Stripe::StripeObject
@@ -198,6 +391,14 @@ module Stripe
198
391
  attr_reader :maximum
199
392
  # The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
200
393
  attr_reader :minimum
394
+
395
+ def self.inner_class_types
396
+ @inner_class_types = {}
397
+ end
398
+
399
+ def self.field_remappings
400
+ @field_remappings = {}
401
+ end
201
402
  end
202
403
  # Attribute for field adjustable_quantity
203
404
  attr_reader :adjustable_quantity
@@ -205,6 +406,14 @@ module Stripe
205
406
  attr_reader :price
206
407
  # Attribute for field quantity
207
408
  attr_reader :quantity
409
+
410
+ def self.inner_class_types
411
+ @inner_class_types = { adjustable_quantity: AdjustableQuantity }
412
+ end
413
+
414
+ def self.field_remappings
415
+ @field_remappings = {}
416
+ end
208
417
  end
209
418
 
210
419
  class PaymentIntentData < Stripe::StripeObject
@@ -222,11 +431,27 @@ module Stripe
222
431
  attr_reader :statement_descriptor_suffix
223
432
  # A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
224
433
  attr_reader :transfer_group
434
+
435
+ def self.inner_class_types
436
+ @inner_class_types = {}
437
+ end
438
+
439
+ def self.field_remappings
440
+ @field_remappings = {}
441
+ end
225
442
  end
226
443
 
227
444
  class PhoneNumberCollection < Stripe::StripeObject
228
445
  # If `true`, a phone number will be collected during checkout.
229
446
  attr_reader :enabled
447
+
448
+ def self.inner_class_types
449
+ @inner_class_types = {}
450
+ end
451
+
452
+ def self.field_remappings
453
+ @field_remappings = {}
454
+ end
230
455
  end
231
456
 
232
457
  class Restrictions < Stripe::StripeObject
@@ -235,14 +460,38 @@ module Stripe
235
460
  attr_reader :count
236
461
  # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
237
462
  attr_reader :limit
463
+
464
+ def self.inner_class_types
465
+ @inner_class_types = {}
466
+ end
467
+
468
+ def self.field_remappings
469
+ @field_remappings = {}
470
+ end
238
471
  end
239
472
  # Attribute for field completed_sessions
240
473
  attr_reader :completed_sessions
474
+
475
+ def self.inner_class_types
476
+ @inner_class_types = { completed_sessions: CompletedSessions }
477
+ end
478
+
479
+ def self.field_remappings
480
+ @field_remappings = {}
481
+ end
241
482
  end
242
483
 
243
484
  class ShippingAddressCollection < Stripe::StripeObject
244
485
  # An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
245
486
  attr_reader :allowed_countries
487
+
488
+ def self.inner_class_types
489
+ @inner_class_types = {}
490
+ end
491
+
492
+ def self.field_remappings
493
+ @field_remappings = {}
494
+ end
246
495
  end
247
496
 
248
497
  class ShippingOption < Stripe::StripeObject
@@ -250,6 +499,14 @@ module Stripe
250
499
  attr_reader :shipping_amount
251
500
  # The ID of the Shipping Rate to use for this shipping option.
252
501
  attr_reader :shipping_rate
502
+
503
+ def self.inner_class_types
504
+ @inner_class_types = {}
505
+ end
506
+
507
+ def self.field_remappings
508
+ @field_remappings = {}
509
+ end
253
510
  end
254
511
 
255
512
  class SubscriptionData < Stripe::StripeObject
@@ -259,18 +516,50 @@ module Stripe
259
516
  attr_reader :account
260
517
  # Type of the account referenced.
261
518
  attr_reader :type
519
+
520
+ def self.inner_class_types
521
+ @inner_class_types = {}
522
+ end
523
+
524
+ def self.field_remappings
525
+ @field_remappings = {}
526
+ end
262
527
  end
263
528
  # Attribute for field issuer
264
529
  attr_reader :issuer
530
+
531
+ def self.inner_class_types
532
+ @inner_class_types = { issuer: Issuer }
533
+ end
534
+
535
+ def self.field_remappings
536
+ @field_remappings = {}
537
+ end
265
538
  end
266
539
 
267
540
  class TrialSettings < Stripe::StripeObject
268
541
  class EndBehavior < Stripe::StripeObject
269
542
  # Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
270
543
  attr_reader :missing_payment_method
544
+
545
+ def self.inner_class_types
546
+ @inner_class_types = {}
547
+ end
548
+
549
+ def self.field_remappings
550
+ @field_remappings = {}
551
+ end
271
552
  end
272
553
  # Defines how a subscription behaves when a free trial ends.
273
554
  attr_reader :end_behavior
555
+
556
+ def self.inner_class_types
557
+ @inner_class_types = { end_behavior: EndBehavior }
558
+ end
559
+
560
+ def self.field_remappings
561
+ @field_remappings = {}
562
+ end
274
563
  end
275
564
  # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
276
565
  attr_reader :description
@@ -282,6 +571,14 @@ module Stripe
282
571
  attr_reader :trial_period_days
283
572
  # Settings related to subscription trials.
284
573
  attr_reader :trial_settings
574
+
575
+ def self.inner_class_types
576
+ @inner_class_types = { invoice_settings: InvoiceSettings, trial_settings: TrialSettings }
577
+ end
578
+
579
+ def self.field_remappings
580
+ @field_remappings = {}
581
+ end
285
582
  end
286
583
 
287
584
  class TaxIdCollection < Stripe::StripeObject
@@ -289,6 +586,14 @@ module Stripe
289
586
  attr_reader :enabled
290
587
  # Attribute for field required
291
588
  attr_reader :required
589
+
590
+ def self.inner_class_types
591
+ @inner_class_types = {}
592
+ end
593
+
594
+ def self.field_remappings
595
+ @field_remappings = {}
596
+ end
292
597
  end
293
598
 
294
599
  class TransferData < Stripe::StripeObject
@@ -296,6 +601,14 @@ module Stripe
296
601
  attr_reader :amount
297
602
  # The connected account receiving the transfer.
298
603
  attr_reader :destination
604
+
605
+ def self.inner_class_types
606
+ @inner_class_types = {}
607
+ end
608
+
609
+ def self.field_remappings
610
+ @field_remappings = {}
611
+ end
299
612
  end
300
613
 
301
614
  class ListParams < Stripe::RequestParams
@@ -1766,5 +2079,29 @@ module Stripe
1766
2079
  opts: opts
1767
2080
  )
1768
2081
  end
2082
+
2083
+ def self.inner_class_types
2084
+ @inner_class_types = {
2085
+ after_completion: AfterCompletion,
2086
+ automatic_tax: AutomaticTax,
2087
+ consent_collection: ConsentCollection,
2088
+ custom_fields: CustomField,
2089
+ custom_text: CustomText,
2090
+ invoice_creation: InvoiceCreation,
2091
+ optional_items: OptionalItem,
2092
+ payment_intent_data: PaymentIntentData,
2093
+ phone_number_collection: PhoneNumberCollection,
2094
+ restrictions: Restrictions,
2095
+ shipping_address_collection: ShippingAddressCollection,
2096
+ shipping_options: ShippingOption,
2097
+ subscription_data: SubscriptionData,
2098
+ tax_id_collection: TaxIdCollection,
2099
+ transfer_data: TransferData,
2100
+ }
2101
+ end
2102
+
2103
+ def self.field_remappings
2104
+ @field_remappings = {}
2105
+ end
1769
2106
  end
1770
2107
  end