stripe 13.3.0.pre.beta.2 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1394
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_version.rb +1 -1
  6. data/lib/stripe/object_types.rb +0 -32
  7. data/lib/stripe/resources/account.rb +2 -232
  8. data/lib/stripe/resources/account_link.rb +0 -9
  9. data/lib/stripe/resources/account_session.rb +0 -103
  10. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  11. data/lib/stripe/resources/application_fee.rb +2 -36
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  13. data/lib/stripe/resources/apps/secret.rb +2 -24
  14. data/lib/stripe/resources/balance.rb +0 -59
  15. data/lib/stripe/resources/balance_transaction.rb +2 -36
  16. data/lib/stripe/resources/bank_account.rb +3 -61
  17. data/lib/stripe/resources/billing/alert.rb +2 -23
  18. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  19. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -46
  20. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  21. data/lib/stripe/resources/billing/meter.rb +2 -44
  22. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  23. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  24. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  25. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  26. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  27. data/lib/stripe/resources/capability.rb +0 -38
  28. data/lib/stripe/resources/card.rb +1 -73
  29. data/lib/stripe/resources/cash_balance.rb +0 -14
  30. data/lib/stripe/resources/charge.rb +2 -471
  31. data/lib/stripe/resources/checkout/session.rb +2 -498
  32. data/lib/stripe/resources/climate/order.rb +2 -57
  33. data/lib/stripe/resources/climate/product.rb +2 -26
  34. data/lib/stripe/resources/climate/supplier.rb +2 -20
  35. data/lib/stripe/resources/confirmation_token.rb +0 -297
  36. data/lib/stripe/resources/country_spec.rb +2 -29
  37. data/lib/stripe/resources/coupon.rb +2 -46
  38. data/lib/stripe/resources/credit_note.rb +2 -93
  39. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  40. data/lib/stripe/resources/customer.rb +2 -95
  41. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  42. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  43. data/lib/stripe/resources/customer_session.rb +0 -34
  44. data/lib/stripe/resources/discount.rb +0 -29
  45. data/lib/stripe/resources/dispute.rb +2 -90
  46. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  47. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  48. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  49. data/lib/stripe/resources/event.rb +2 -46
  50. data/lib/stripe/resources/exchange_rate.rb +2 -9
  51. data/lib/stripe/resources/file.rb +2 -25
  52. data/lib/stripe/resources/file_link.rb +2 -21
  53. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  54. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  55. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  56. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  57. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  58. data/lib/stripe/resources/forwarding/request.rb +2 -42
  59. data/lib/stripe/resources/funding_instructions.rb +0 -82
  60. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  61. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  62. data/lib/stripe/resources/invoice.rb +2 -420
  63. data/lib/stripe/resources/invoice_item.rb +2 -56
  64. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  65. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  66. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  67. data/lib/stripe/resources/issuing/card.rb +2 -88
  68. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  69. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  70. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  71. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  72. data/lib/stripe/resources/issuing/token.rb +2 -48
  73. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  74. data/lib/stripe/resources/line_item.rb +0 -50
  75. data/lib/stripe/resources/login_link.rb +0 -7
  76. data/lib/stripe/resources/mandate.rb +0 -78
  77. data/lib/stripe/resources/payment_intent.rb +2 -714
  78. data/lib/stripe/resources/payment_link.rb +2 -200
  79. data/lib/stripe/resources/payment_method.rb +2 -370
  80. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  81. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  82. data/lib/stripe/resources/payout.rb +2 -58
  83. data/lib/stripe/resources/person.rb +0 -128
  84. data/lib/stripe/resources/plan.rb +2 -54
  85. data/lib/stripe/resources/price.rb +2 -79
  86. data/lib/stripe/resources/product.rb +2 -62
  87. data/lib/stripe/resources/product_feature.rb +0 -12
  88. data/lib/stripe/resources/promotion_code.rb +2 -37
  89. data/lib/stripe/resources/quote.rb +2 -358
  90. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  91. data/lib/stripe/resources/radar/value_list.rb +2 -25
  92. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  93. data/lib/stripe/resources/refund.rb +2 -132
  94. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  95. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  96. data/lib/stripe/resources/reversal.rb +0 -21
  97. data/lib/stripe/resources/review.rb +2 -38
  98. data/lib/stripe/resources/setup_attempt.rb +2 -103
  99. data/lib/stripe/resources/setup_intent.rb +2 -160
  100. data/lib/stripe/resources/shipping_rate.rb +2 -44
  101. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  102. data/lib/stripe/resources/source.rb +0 -195
  103. data/lib/stripe/resources/source_transaction.rb +0 -48
  104. data/lib/stripe/resources/subscription.rb +2 -216
  105. data/lib/stripe/resources/subscription_item.rb +2 -48
  106. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  107. data/lib/stripe/resources/tax/calculation.rb +0 -72
  108. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  109. data/lib/stripe/resources/tax/registration.rb +2 -381
  110. data/lib/stripe/resources/tax/settings.rb +0 -33
  111. data/lib/stripe/resources/tax/transaction.rb +0 -68
  112. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  113. data/lib/stripe/resources/tax_code.rb +2 -11
  114. data/lib/stripe/resources/tax_id.rb +2 -32
  115. data/lib/stripe/resources/tax_rate.rb +2 -44
  116. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  117. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  118. data/lib/stripe/resources/terminal/location.rb +2 -22
  119. data/lib/stripe/resources/terminal/reader.rb +2 -180
  120. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  121. data/lib/stripe/resources/token.rb +0 -29
  122. data/lib/stripe/resources/topup.rb +2 -35
  123. data/lib/stripe/resources/transfer.rb +2 -37
  124. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  125. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  126. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  127. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  128. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  129. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  130. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  131. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  132. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  133. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  134. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  135. data/lib/stripe/resources/usage_record.rb +0 -13
  136. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  138. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  139. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  140. data/lib/stripe/resources/v2/event.rb +0 -21
  141. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  142. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  143. data/lib/stripe/resources.rb +0 -31
  144. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  145. data/lib/stripe/services/financial_connections_service.rb +1 -2
  146. data/lib/stripe/services/invoice_service.rb +1 -44
  147. data/lib/stripe/services/issuing_service.rb +1 -5
  148. data/lib/stripe/services/payment_intent_service.rb +0 -37
  149. data/lib/stripe/services/quote_service.rb +1 -49
  150. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  153. data/lib/stripe/services/terminal_service.rb +1 -2
  154. data/lib/stripe/services/v1_services.rb +1 -8
  155. data/lib/stripe/services.rb +0 -25
  156. data/lib/stripe/stripe_client.rb +1 -1
  157. data/lib/stripe/stripe_configuration.rb +1 -3
  158. data/lib/stripe/stripe_object.rb +3 -8
  159. data/lib/stripe/util.rb +2 -8
  160. data/lib/stripe/version.rb +1 -1
  161. data/lib/stripe.rb +0 -45
  162. data/stripe.gemspec +1 -2
  163. metadata +4 -62
  164. data/lib/stripe/request_signing_authenticator.rb +0 -79
  165. data/lib/stripe/resources/account_notice.rb +0 -60
  166. data/lib/stripe/resources/application.rb +0 -20
  167. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  168. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  169. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  170. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  171. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  172. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  173. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  174. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  175. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  176. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  177. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  178. data/lib/stripe/resources/invoice_payment.rb +0 -46
  179. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  180. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  181. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  182. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  183. data/lib/stripe/resources/margin.rb +0 -56
  184. data/lib/stripe/resources/order.rb +0 -322
  185. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  186. data/lib/stripe/resources/payment_record.rb +0 -194
  187. data/lib/stripe/resources/quote_line.rb +0 -136
  188. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  189. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  190. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  191. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  192. data/lib/stripe/resources/tax/association.rb +0 -60
  193. data/lib/stripe/resources/tax/form.rb +0 -124
  194. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  195. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  196. data/lib/stripe/resources/v2/amount.rb +0 -9
  197. data/lib/stripe/services/account_notice_service.rb +0 -39
  198. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  199. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  200. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  201. data/lib/stripe/services/capital_service.rb +0 -15
  202. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  203. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  204. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  205. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  206. data/lib/stripe/services/gift_cards_service.rb +0 -14
  207. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  208. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  209. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  210. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  211. data/lib/stripe/services/margin_service.rb +0 -50
  212. data/lib/stripe/services/order_line_item_service.rb +0 -17
  213. data/lib/stripe/services/order_service.rb +0 -78
  214. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  215. data/lib/stripe/services/payment_record_service.rb +0 -78
  216. data/lib/stripe/services/quote_line_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  219. data/lib/stripe/services/tax/association_service.rb +0 -19
  220. data/lib/stripe/services/tax/form_service.rb +0 -37
  221. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -27,502 +27,6 @@ module Stripe
27
27
  "checkout.session"
28
28
  end
29
29
 
30
- class AdaptivePricing < Stripe::StripeObject
31
- attr_reader :enabled
32
- end
33
-
34
- class AfterExpiration < Stripe::StripeObject
35
- class Recovery < Stripe::StripeObject
36
- attr_reader :allow_promotion_codes, :enabled, :expires_at, :url
37
- end
38
- attr_reader :recovery
39
- end
40
-
41
- class AutomaticTax < Stripe::StripeObject
42
- class Liability < Stripe::StripeObject
43
- attr_reader :account, :type
44
- end
45
- attr_reader :enabled, :liability, :status
46
- end
47
-
48
- class CollectedInformation < Stripe::StripeObject
49
- class ShippingDetails < Stripe::StripeObject
50
- class Address < Stripe::StripeObject
51
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
52
- end
53
- attr_reader :address, :carrier, :name, :phone, :tracking_number
54
- end
55
-
56
- class TaxId < Stripe::StripeObject
57
- attr_reader :type, :value
58
- end
59
- attr_reader :business_name, :email, :phone, :shipping_details, :tax_ids
60
- end
61
-
62
- class Consent < Stripe::StripeObject
63
- attr_reader :promotions, :terms_of_service
64
- end
65
-
66
- class ConsentCollection < Stripe::StripeObject
67
- class PaymentMethodReuseAgreement < Stripe::StripeObject
68
- attr_reader :position
69
- end
70
- attr_reader :payment_method_reuse_agreement, :promotions, :terms_of_service
71
- end
72
-
73
- class CurrencyConversion < Stripe::StripeObject
74
- attr_reader :amount_subtotal, :amount_total, :fx_rate, :source_currency
75
- end
76
-
77
- class CustomField < Stripe::StripeObject
78
- class Dropdown < Stripe::StripeObject
79
- class Option < Stripe::StripeObject
80
- attr_reader :label, :value
81
- end
82
- attr_reader :default_value, :options, :value
83
- end
84
-
85
- class Label < Stripe::StripeObject
86
- attr_reader :custom, :type
87
- end
88
-
89
- class Numeric < Stripe::StripeObject
90
- attr_reader :default_value, :maximum_length, :minimum_length, :value
91
- end
92
-
93
- class Text < Stripe::StripeObject
94
- attr_reader :default_value, :maximum_length, :minimum_length, :value
95
- end
96
- attr_reader :dropdown, :key, :label, :numeric, :optional, :text, :type
97
- end
98
-
99
- class CustomText < Stripe::StripeObject
100
- class AfterSubmit < Stripe::StripeObject
101
- attr_reader :message
102
- end
103
-
104
- class ShippingAddress < Stripe::StripeObject
105
- attr_reader :message
106
- end
107
-
108
- class Submit < Stripe::StripeObject
109
- attr_reader :message
110
- end
111
-
112
- class TermsOfServiceAcceptance < Stripe::StripeObject
113
- attr_reader :message
114
- end
115
- attr_reader :after_submit, :shipping_address, :submit, :terms_of_service_acceptance
116
- end
117
-
118
- class CustomerDetails < Stripe::StripeObject
119
- class Address < Stripe::StripeObject
120
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
121
- end
122
-
123
- class TaxId < Stripe::StripeObject
124
- attr_reader :type, :value
125
- end
126
- attr_reader :address, :email, :name, :phone, :tax_exempt, :tax_ids
127
- end
128
-
129
- class InvoiceCreation < Stripe::StripeObject
130
- class InvoiceData < Stripe::StripeObject
131
- class CustomField < Stripe::StripeObject
132
- attr_reader :name, :value
133
- end
134
-
135
- class Issuer < Stripe::StripeObject
136
- attr_reader :account, :type
137
- end
138
-
139
- class RenderingOptions < Stripe::StripeObject
140
- attr_reader :amount_tax_display
141
- end
142
- attr_reader :account_tax_ids, :custom_fields, :description, :footer, :issuer, :metadata, :rendering_options
143
- end
144
- attr_reader :enabled, :invoice_data
145
- end
146
-
147
- class PaymentMethodConfigurationDetails < Stripe::StripeObject
148
- attr_reader :id, :parent
149
- end
150
-
151
- class PaymentMethodOptions < Stripe::StripeObject
152
- class AcssDebit < Stripe::StripeObject
153
- class MandateOptions < Stripe::StripeObject
154
- attr_reader :custom_mandate_url, :default_for, :interval_description, :payment_schedule, :transaction_type
155
- end
156
- attr_reader :currency, :mandate_options, :setup_future_usage, :verification_method
157
- end
158
-
159
- class Affirm < Stripe::StripeObject
160
- attr_reader :setup_future_usage
161
- end
162
-
163
- class AfterpayClearpay < Stripe::StripeObject
164
- attr_reader :setup_future_usage
165
- end
166
-
167
- class Alipay < Stripe::StripeObject
168
- attr_reader :setup_future_usage
169
- end
170
-
171
- class AmazonPay < Stripe::StripeObject
172
- attr_reader :setup_future_usage
173
- end
174
-
175
- class AuBecsDebit < Stripe::StripeObject
176
- attr_reader :setup_future_usage
177
- end
178
-
179
- class BacsDebit < Stripe::StripeObject
180
- class MandateOptions < Stripe::StripeObject
181
- attr_reader :reference_prefix
182
- end
183
- attr_reader :mandate_options, :setup_future_usage
184
- end
185
-
186
- class Bancontact < Stripe::StripeObject
187
- attr_reader :setup_future_usage
188
- end
189
-
190
- class Boleto < Stripe::StripeObject
191
- attr_reader :expires_after_days, :setup_future_usage
192
- end
193
-
194
- class Card < Stripe::StripeObject
195
- class Installments < Stripe::StripeObject
196
- attr_reader :enabled
197
- end
198
- attr_reader :installments, :request_decremental_authorization, :request_extended_authorization, :request_incremental_authorization, :request_multicapture, :request_overcapture, :request_three_d_secure, :setup_future_usage, :statement_descriptor_suffix_kana, :statement_descriptor_suffix_kanji
199
- end
200
-
201
- class Cashapp < Stripe::StripeObject
202
- attr_reader :setup_future_usage
203
- end
204
-
205
- class CustomerBalance < Stripe::StripeObject
206
- class BankTransfer < Stripe::StripeObject
207
- class EuBankTransfer < Stripe::StripeObject
208
- attr_reader :country
209
- end
210
- attr_reader :eu_bank_transfer, :requested_address_types, :type
211
- end
212
- attr_reader :bank_transfer, :funding_type, :setup_future_usage
213
- end
214
-
215
- class Eps < Stripe::StripeObject
216
- attr_reader :setup_future_usage
217
- end
218
-
219
- class Fpx < Stripe::StripeObject
220
- attr_reader :setup_future_usage
221
- end
222
-
223
- class Giropay < Stripe::StripeObject
224
- attr_reader :setup_future_usage
225
- end
226
-
227
- class Grabpay < Stripe::StripeObject
228
- attr_reader :setup_future_usage
229
- end
230
-
231
- class Ideal < Stripe::StripeObject
232
- attr_reader :setup_future_usage
233
- end
234
-
235
- class KakaoPay < Stripe::StripeObject
236
- attr_reader :capture_method, :setup_future_usage
237
- end
238
-
239
- class Klarna < Stripe::StripeObject
240
- attr_reader :setup_future_usage
241
- end
242
-
243
- class Konbini < Stripe::StripeObject
244
- attr_reader :expires_after_days, :setup_future_usage
245
- end
246
-
247
- class KrCard < Stripe::StripeObject
248
- attr_reader :capture_method, :setup_future_usage
249
- end
250
-
251
- class Link < Stripe::StripeObject
252
- attr_reader :setup_future_usage
253
- end
254
-
255
- class Mobilepay < Stripe::StripeObject
256
- attr_reader :setup_future_usage
257
- end
258
-
259
- class Multibanco < Stripe::StripeObject
260
- attr_reader :setup_future_usage
261
- end
262
-
263
- class NaverPay < Stripe::StripeObject
264
- attr_reader :capture_method
265
- end
266
-
267
- class Oxxo < Stripe::StripeObject
268
- attr_reader :expires_after_days, :setup_future_usage
269
- end
270
-
271
- class P24 < Stripe::StripeObject
272
- attr_reader :setup_future_usage
273
- end
274
-
275
- class Payco < Stripe::StripeObject
276
- attr_reader :capture_method
277
- end
278
-
279
- class Paynow < Stripe::StripeObject
280
- attr_reader :setup_future_usage
281
- end
282
-
283
- class Paypal < Stripe::StripeObject
284
- attr_reader :capture_method, :preferred_locale, :reference, :setup_future_usage, :subsellers
285
- end
286
-
287
- class Payto < Stripe::StripeObject
288
- class MandateOptions < Stripe::StripeObject
289
- attr_reader :amount, :amount_type, :end_date, :payment_schedule, :payments_per_period, :purpose, :start_date
290
- end
291
- attr_reader :mandate_options, :setup_future_usage
292
- end
293
-
294
- class Pix < Stripe::StripeObject
295
- attr_reader :expires_after_seconds
296
- end
297
-
298
- class RevolutPay < Stripe::StripeObject
299
- attr_reader :setup_future_usage
300
- end
301
-
302
- class SamsungPay < Stripe::StripeObject
303
- attr_reader :capture_method
304
- end
305
-
306
- class SepaDebit < Stripe::StripeObject
307
- class MandateOptions < Stripe::StripeObject
308
- attr_reader :reference_prefix
309
- end
310
- attr_reader :mandate_options, :setup_future_usage
311
- end
312
-
313
- class Sofort < Stripe::StripeObject
314
- attr_reader :setup_future_usage
315
- end
316
-
317
- class Swish < Stripe::StripeObject
318
- attr_reader :reference
319
- end
320
-
321
- class UsBankAccount < Stripe::StripeObject
322
- class FinancialConnections < Stripe::StripeObject
323
- class Filters < Stripe::StripeObject
324
- attr_reader :account_subcategories, :institution
325
- end
326
-
327
- class ManualEntry < Stripe::StripeObject
328
- attr_reader :mode
329
- end
330
- attr_reader :filters, :manual_entry, :permissions, :prefetch, :return_url
331
- end
332
- attr_reader :financial_connections, :setup_future_usage, :verification_method
333
- end
334
- attr_reader :acss_debit, :affirm, :afterpay_clearpay, :alipay, :amazon_pay, :au_becs_debit, :bacs_debit, :bancontact, :boleto, :card, :cashapp, :customer_balance, :eps, :fpx, :giropay, :grabpay, :ideal, :kakao_pay, :klarna, :konbini, :kr_card, :link, :mobilepay, :multibanco, :naver_pay, :oxxo, :p24, :payco, :paynow, :paypal, :payto, :pix, :revolut_pay, :samsung_pay, :sepa_debit, :sofort, :swish, :us_bank_account
335
- end
336
-
337
- class Permissions < Stripe::StripeObject
338
- class Update < Stripe::StripeObject
339
- attr_reader :line_items, :shipping_details
340
- end
341
- attr_reader :update
342
- end
343
-
344
- class PhoneNumberCollection < Stripe::StripeObject
345
- attr_reader :enabled
346
- end
347
-
348
- class SavedPaymentMethodOptions < Stripe::StripeObject
349
- attr_reader :allow_redisplay_filters, :payment_method_remove, :payment_method_save
350
- end
351
-
352
- class ShippingAddressCollection < Stripe::StripeObject
353
- attr_reader :allowed_countries
354
- end
355
-
356
- class ShippingCost < Stripe::StripeObject
357
- class Tax < Stripe::StripeObject
358
- attr_reader :amount, :rate, :taxability_reason, :taxable_amount
359
- end
360
- attr_reader :amount_subtotal, :amount_tax, :amount_total, :shipping_rate, :taxes
361
- end
362
-
363
- class ShippingDetails < Stripe::StripeObject
364
- class Address < Stripe::StripeObject
365
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
366
- end
367
- attr_reader :address, :carrier, :name, :phone, :tracking_number
368
- end
369
-
370
- class ShippingOption < Stripe::StripeObject
371
- attr_reader :shipping_amount, :shipping_rate
372
- end
373
-
374
- class TaxIdCollection < Stripe::StripeObject
375
- attr_reader :enabled, :required
376
- end
377
-
378
- class TotalDetails < Stripe::StripeObject
379
- class Breakdown < Stripe::StripeObject
380
- class Discount < Stripe::StripeObject
381
- attr_reader :amount, :discount
382
- end
383
-
384
- class Tax < Stripe::StripeObject
385
- attr_reader :amount, :rate, :taxability_reason, :taxable_amount
386
- end
387
- attr_reader :discounts, :taxes
388
- end
389
- attr_reader :amount_discount, :amount_shipping, :amount_tax, :breakdown
390
- end
391
- # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
392
- attr_reader :adaptive_pricing
393
- # When set, provides configuration for actions to take if this Checkout Session expires.
394
- attr_reader :after_expiration
395
- # Enables user redeemable promotion codes.
396
- attr_reader :allow_promotion_codes
397
- # Total of all items before discounts or taxes are applied.
398
- attr_reader :amount_subtotal
399
- # Total of all items after discounts and taxes are applied.
400
- attr_reader :amount_total
401
- # Attribute for field automatic_tax
402
- attr_reader :automatic_tax
403
- # Describes whether Checkout should collect the customer's billing address. Defaults to `auto`.
404
- attr_reader :billing_address_collection
405
- # If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
406
- attr_reader :cancel_url
407
- # A unique string to reference the Checkout Session. This can be a
408
- # customer ID, a cart ID, or similar, and can be used to reconcile the
409
- # Session with your internal systems.
410
- attr_reader :client_reference_id
411
- # The client secret of the Session. Use this with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
412
- attr_reader :client_secret
413
- # Information about the customer collected within the Checkout Session.
414
- attr_reader :collected_information
415
- # Results of `consent_collection` for this session.
416
- attr_reader :consent
417
- # When set, provides configuration for the Checkout Session to gather active consent from customers.
418
- attr_reader :consent_collection
419
- # Time at which the object was created. Measured in seconds since the Unix epoch.
420
- attr_reader :created
421
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
422
- attr_reader :currency
423
- # Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions
424
- attr_reader :currency_conversion
425
- # Collect additional information from your customer using custom fields. Up to 3 fields are supported.
426
- attr_reader :custom_fields
427
- # Attribute for field custom_text
428
- attr_reader :custom_text
429
- # The ID of the customer for this Session.
430
- # For Checkout Sessions in `subscription` mode or Checkout Sessions with `customer_creation` set as `always` in `payment` mode, Checkout
431
- # will create a new customer object based on information provided
432
- # during the payment flow unless an existing customer was provided when
433
- # the Session was created.
434
- attr_reader :customer
435
- # Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
436
- attr_reader :customer_creation
437
- # The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
438
- attr_reader :customer_details
439
- # If provided, this value will be used when the Customer object is created.
440
- # If not provided, customers will be asked to enter their email address.
441
- # Use this parameter to prefill customer data if you already have an email
442
- # on file. To access information about the customer once the payment flow is
443
- # complete, use the `customer` attribute.
444
- attr_reader :customer_email
445
- # The timestamp at which the Checkout Session will expire.
446
- attr_reader :expires_at
447
- # Unique identifier for the object.
448
- attr_reader :id
449
- # ID of the invoice created by the Checkout Session, if it exists.
450
- attr_reader :invoice
451
- # Details on the state of invoice creation for the Checkout Session.
452
- attr_reader :invoice_creation
453
- # The line items purchased by the customer.
454
- attr_reader :line_items
455
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
456
- attr_reader :livemode
457
- # The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
458
- attr_reader :locale
459
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
460
- attr_reader :metadata
461
- # The mode of the Checkout Session.
462
- attr_reader :mode
463
- # String representing the object's type. Objects of the same type share the same value.
464
- attr_reader :object
465
- # The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
466
- attr_reader :payment_intent
467
- # The ID of the Payment Link that created this Session.
468
- attr_reader :payment_link
469
- # Configure whether a Checkout Session should collect a payment method. Defaults to `always`.
470
- attr_reader :payment_method_collection
471
- # Information about the payment method configuration used for this Checkout session if using dynamic payment methods.
472
- attr_reader :payment_method_configuration_details
473
- # Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
474
- attr_reader :payment_method_options
475
- # A list of the types of payment methods (e.g. card) this Checkout
476
- # Session is allowed to accept.
477
- attr_reader :payment_method_types
478
- # The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`.
479
- # You can use this value to decide when to fulfill your customer's order.
480
- attr_reader :payment_status
481
- # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
482
- #
483
- # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
484
- attr_reader :permissions
485
- # Attribute for field phone_number_collection
486
- attr_reader :phone_number_collection
487
- # The ID of the original expired Checkout Session that triggered the recovery flow.
488
- attr_reader :recovered_from
489
- # This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
490
- attr_reader :redirect_on_completion
491
- # Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
492
- attr_reader :return_url
493
- # Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
494
- attr_reader :saved_payment_method_options
495
- # The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
496
- attr_reader :setup_intent
497
- # When set, provides configuration for Checkout to collect a shipping address from a customer.
498
- attr_reader :shipping_address_collection
499
- # The details of the customer cost of shipping, including the customer chosen ShippingRate.
500
- attr_reader :shipping_cost
501
- # Shipping information for this Checkout Session.
502
- attr_reader :shipping_details
503
- # The shipping rate options applied to this Session.
504
- attr_reader :shipping_options
505
- # The status of the Checkout Session, one of `open`, `complete`, or `expired`.
506
- attr_reader :status
507
- # Describes the type of transaction being performed by Checkout in order to customize
508
- # relevant text on the page, such as the submit button. `submit_type` can only be
509
- # specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
510
- attr_reader :submit_type
511
- # The ID of the subscription for Checkout Sessions in `subscription` mode.
512
- attr_reader :subscription
513
- # The URL the customer will be directed to after the payment or
514
- # subscription creation is successful.
515
- attr_reader :success_url
516
- # Attribute for field tax_id_collection
517
- attr_reader :tax_id_collection
518
- # Tax and discount details for the computed total amount.
519
- attr_reader :total_details
520
- # The UI mode of the Session. Defaults to `hosted`.
521
- attr_reader :ui_mode
522
- # The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
523
- # This value is only present when the session is active.
524
- attr_reader :url
525
-
526
30
  # Creates a Session object.
527
31
  def self.create(params = {}, opts = {})
528
32
  request_stripe_object(
@@ -558,11 +62,11 @@ module Stripe
558
62
  end
559
63
 
560
64
  # Returns a list of Checkout Sessions.
561
- def self.list(filters = {}, opts = {})
65
+ def self.list(params = {}, opts = {})
562
66
  request_stripe_object(
563
67
  method: :get,
564
68
  path: "/v1/checkout/sessions",
565
- params: filters,
69
+ params: params,
566
70
  opts: opts
567
71
  )
568
72
  end
@@ -15,61 +15,6 @@ module Stripe
15
15
  "climate.order"
16
16
  end
17
17
 
18
- class Beneficiary < Stripe::StripeObject
19
- attr_reader :public_name
20
- end
21
-
22
- class DeliveryDetail < Stripe::StripeObject
23
- class Location < Stripe::StripeObject
24
- attr_reader :city, :country, :latitude, :longitude, :region
25
- end
26
- attr_reader :delivered_at, :location, :metric_tons, :registry_url, :supplier
27
- end
28
- # Total amount of [Frontier](https://frontierclimate.com/)'s service fees in the currency's smallest unit.
29
- attr_reader :amount_fees
30
- # Total amount of the carbon removal in the currency's smallest unit.
31
- attr_reader :amount_subtotal
32
- # Total amount of the order including fees in the currency's smallest unit.
33
- attr_reader :amount_total
34
- # Attribute for field beneficiary
35
- attr_reader :beneficiary
36
- # Time at which the order was canceled. Measured in seconds since the Unix epoch.
37
- attr_reader :canceled_at
38
- # Reason for the cancellation of this order.
39
- attr_reader :cancellation_reason
40
- # For delivered orders, a URL to a delivery certificate for the order.
41
- attr_reader :certificate
42
- # Time at which the order was confirmed. Measured in seconds since the Unix epoch.
43
- attr_reader :confirmed_at
44
- # Time at which the object was created. Measured in seconds since the Unix epoch.
45
- attr_reader :created
46
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase, representing the currency for this order.
47
- attr_reader :currency
48
- # Time at which the order's expected_delivery_year was delayed. Measured in seconds since the Unix epoch.
49
- attr_reader :delayed_at
50
- # Time at which the order was delivered. Measured in seconds since the Unix epoch.
51
- attr_reader :delivered_at
52
- # Details about the delivery of carbon removal for this order.
53
- attr_reader :delivery_details
54
- # The year this order is expected to be delivered.
55
- attr_reader :expected_delivery_year
56
- # Unique identifier for the object.
57
- attr_reader :id
58
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
59
- attr_reader :livemode
60
- # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
61
- attr_reader :metadata
62
- # Quantity of carbon removal that is included in this order.
63
- attr_reader :metric_tons
64
- # String representing the object's type. Objects of the same type share the same value.
65
- attr_reader :object
66
- # Unique ID for the Climate `Product` this order is purchasing.
67
- attr_reader :product
68
- # Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch.
69
- attr_reader :product_substituted_at
70
- # The current status of this order.
71
- attr_reader :status
72
-
73
18
  # Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
74
19
  # reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
75
20
  # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
@@ -104,8 +49,8 @@ module Stripe
104
49
 
105
50
  # Lists all Climate order objects. The orders are returned sorted by creation date, with the
106
51
  # most recently created orders appearing first.
107
- def self.list(filters = {}, opts = {})
108
- request_stripe_object(method: :get, path: "/v1/climate/orders", params: filters, opts: opts)
52
+ def self.list(params = {}, opts = {})
53
+ request_stripe_object(method: :get, path: "/v1/climate/orders", params: params, opts: opts)
109
54
  end
110
55
 
111
56
  # Updates the specified order by setting the values of the parameters passed.
@@ -13,36 +13,12 @@ module Stripe
13
13
  "climate.product"
14
14
  end
15
15
 
16
- class CurrentPricesPerMetricTon < Stripe::StripeObject
17
- attr_reader :amount_fees, :amount_subtotal, :amount_total
18
- end
19
- # Time at which the object was created. Measured in seconds since the Unix epoch.
20
- attr_reader :created
21
- # Current prices for a metric ton of carbon removal in a currency's smallest unit.
22
- attr_reader :current_prices_per_metric_ton
23
- # The year in which the carbon removal is expected to be delivered.
24
- attr_reader :delivery_year
25
- # Unique identifier for the object. For convenience, Climate product IDs are human-readable strings
26
- # that start with `climsku_`. See [carbon removal inventory](https://stripe.com/docs/climate/orders/carbon-removal-inventory)
27
- # for a list of available carbon removal products.
28
- attr_reader :id
29
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
30
- attr_reader :livemode
31
- # The quantity of metric tons available for reservation.
32
- attr_reader :metric_tons_available
33
- # The Climate product's name.
34
- attr_reader :name
35
- # String representing the object's type. Objects of the same type share the same value.
36
- attr_reader :object
37
- # The carbon removal suppliers that fulfill orders for this Climate product.
38
- attr_reader :suppliers
39
-
40
16
  # Lists all available Climate product objects.
41
- def self.list(filters = {}, opts = {})
17
+ def self.list(params = {}, opts = {})
42
18
  request_stripe_object(
43
19
  method: :get,
44
20
  path: "/v1/climate/products",
45
- params: filters,
21
+ params: params,
46
22
  opts: opts
47
23
  )
48
24
  end
@@ -12,30 +12,12 @@ module Stripe
12
12
  "climate.supplier"
13
13
  end
14
14
 
15
- class Location < Stripe::StripeObject
16
- attr_reader :city, :country, :latitude, :longitude, :region
17
- end
18
- # Unique identifier for the object.
19
- attr_reader :id
20
- # Link to a webpage to learn more about the supplier.
21
- attr_reader :info_url
22
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
23
- attr_reader :livemode
24
- # The locations in which this supplier operates.
25
- attr_reader :locations
26
- # Name of this carbon removal supplier.
27
- attr_reader :name
28
- # String representing the object’s type. Objects of the same type share the same value.
29
- attr_reader :object
30
- # The scientific pathway used for carbon removal.
31
- attr_reader :removal_pathway
32
-
33
15
  # Lists all available Climate supplier objects.
34
- def self.list(filters = {}, opts = {})
16
+ def self.list(params = {}, opts = {})
35
17
  request_stripe_object(
36
18
  method: :get,
37
19
  path: "/v1/climate/suppliers",
38
- params: filters,
20
+ params: params,
39
21
  opts: opts
40
22
  )
41
23
  end