stripe 15.0.0 → 15.3.0

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 (320) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -0
  3. data/CHANGELOG.md +129 -44
  4. data/CONTRIBUTING.md +25 -0
  5. data/Gemfile +1 -1
  6. data/OPENAPI_VERSION +1 -1
  7. data/README.md +28 -55
  8. data/VERSION +1 -1
  9. data/lib/stripe/api_operations/nested_resource.rb +35 -35
  10. data/lib/stripe/api_requestor.rb +1 -1
  11. data/lib/stripe/api_version.rb +2 -1
  12. data/lib/stripe/connection_manager.rb +1 -3
  13. data/lib/stripe/event_types.rb +1 -0
  14. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
  15. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
  16. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  17. data/lib/stripe/oauth.rb +1 -1
  18. data/lib/stripe/resources/account.rb +198 -28
  19. data/lib/stripe/resources/account_session.rb +176 -72
  20. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  21. data/lib/stripe/resources/balance.rb +42 -0
  22. data/lib/stripe/resources/balance_transaction.rb +2 -0
  23. data/lib/stripe/resources/bank_account.rb +2 -2
  24. data/lib/stripe/resources/billing_portal/session.rb +3 -3
  25. data/lib/stripe/resources/capability.rb +1 -1
  26. data/lib/stripe/resources/charge.rb +43 -20
  27. data/lib/stripe/resources/checkout/session.rb +120 -19
  28. data/lib/stripe/resources/confirmation_token.rb +119 -100
  29. data/lib/stripe/resources/country_spec.rb +1 -1
  30. data/lib/stripe/resources/coupon.rb +2 -3
  31. data/lib/stripe/resources/credit_note.rb +21 -18
  32. data/lib/stripe/resources/customer.rb +4 -6
  33. data/lib/stripe/resources/customer_session.rb +5 -5
  34. data/lib/stripe/resources/dispute.rb +2 -2
  35. data/lib/stripe/resources/event.rb +3 -1
  36. data/lib/stripe/resources/file.rb +1 -1
  37. data/lib/stripe/resources/funding_instructions.rb +1 -1
  38. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  39. data/lib/stripe/resources/identity/verification_session.rb +51 -11
  40. data/lib/stripe/resources/invoice.rb +146 -32
  41. data/lib/stripe/resources/invoice_item.rb +3 -7
  42. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  43. data/lib/stripe/resources/invoice_payment.rb +9 -2
  44. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  45. data/lib/stripe/resources/issuing/card.rb +1 -1
  46. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  47. data/lib/stripe/resources/login_link.rb +2 -1
  48. data/lib/stripe/resources/mandate.rb +3 -0
  49. data/lib/stripe/resources/payment_intent.rb +602 -325
  50. data/lib/stripe/resources/payment_method.rb +76 -117
  51. data/lib/stripe/resources/payment_method_configuration.rb +356 -2
  52. data/lib/stripe/resources/payment_method_domain.rb +15 -2
  53. data/lib/stripe/resources/payout.rb +4 -4
  54. data/lib/stripe/resources/person.rb +27 -3
  55. data/lib/stripe/resources/plan.rb +2 -3
  56. data/lib/stripe/resources/price.rb +1 -1
  57. data/lib/stripe/resources/product.rb +1 -2
  58. data/lib/stripe/resources/quote.rb +28 -3
  59. data/lib/stripe/resources/radar/value_list.rb +1 -2
  60. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  61. data/lib/stripe/resources/refund.rb +8 -1
  62. data/lib/stripe/resources/reversal.rb +1 -1
  63. data/lib/stripe/resources/review.rb +1 -1
  64. data/lib/stripe/resources/setup_attempt.rb +1 -1
  65. data/lib/stripe/resources/setup_intent.rb +414 -293
  66. data/lib/stripe/resources/source.rb +1 -1
  67. data/lib/stripe/resources/subscription.rb +149 -27
  68. data/lib/stripe/resources/subscription_item.rb +33 -0
  69. data/lib/stripe/resources/subscription_schedule.rb +141 -4
  70. data/lib/stripe/resources/tax/calculation.rb +6 -2
  71. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  72. data/lib/stripe/resources/tax/registration.rb +261 -1
  73. data/lib/stripe/resources/tax/transaction.rb +1 -1
  74. data/lib/stripe/resources/tax_id.rb +3 -4
  75. data/lib/stripe/resources/tax_rate.rb +2 -2
  76. data/lib/stripe/resources/terminal/configuration.rb +2 -2
  77. data/lib/stripe/resources/terminal/location.rb +2 -3
  78. data/lib/stripe/resources/terminal/reader.rb +426 -6
  79. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  80. data/lib/stripe/resources/token.rb +63 -2
  81. data/lib/stripe/resources/transfer.rb +1 -1
  82. data/lib/stripe/resources/treasury/financial_account.rb +5 -1
  83. data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
  84. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
  85. data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
  86. data/lib/stripe/resources/v2/event.rb +2 -2
  87. data/lib/stripe/resources/v2/event_destination.rb +2 -2
  88. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  89. data/lib/stripe/resources.rb +1 -0
  90. data/lib/stripe/services/account_external_account_service.rb +3 -4
  91. data/lib/stripe/services/account_login_link_service.rb +1 -1
  92. data/lib/stripe/services/account_person_service.rb +85 -2
  93. data/lib/stripe/services/account_service.rb +169 -20
  94. data/lib/stripe/services/account_session_service.rb +115 -47
  95. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  96. data/lib/stripe/services/application_fee_service.rb +1 -1
  97. data/lib/stripe/services/apps_service.rb +1 -1
  98. data/lib/stripe/services/balance_service.rb +1 -1
  99. data/lib/stripe/services/billing/meter_service.rb +1 -1
  100. data/lib/stripe/services/billing_portal/session_service.rb +1 -1
  101. data/lib/stripe/services/billing_portal_service.rb +1 -1
  102. data/lib/stripe/services/billing_service.rb +1 -1
  103. data/lib/stripe/services/charge_service.rb +4 -4
  104. data/lib/stripe/services/checkout/session_service.rb +94 -15
  105. data/lib/stripe/services/checkout_service.rb +1 -1
  106. data/lib/stripe/services/climate_service.rb +1 -1
  107. data/lib/stripe/services/coupon_service.rb +1 -2
  108. data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
  109. data/lib/stripe/services/credit_note_service.rb +14 -15
  110. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  111. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  112. data/lib/stripe/services/customer_payment_method_service.rb +1 -1
  113. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  114. data/lib/stripe/services/customer_service.rb +5 -7
  115. data/lib/stripe/services/customer_session_service.rb +1 -1
  116. data/lib/stripe/services/customer_tax_id_service.rb +2 -3
  117. data/lib/stripe/services/dispute_service.rb +1 -1
  118. data/lib/stripe/services/entitlements_service.rb +1 -1
  119. data/lib/stripe/services/file_service.rb +1 -1
  120. data/lib/stripe/services/financial_connections/account_service.rb +1 -1
  121. data/lib/stripe/services/financial_connections_service.rb +1 -1
  122. data/lib/stripe/services/forwarding_service.rb +1 -1
  123. data/lib/stripe/services/identity/verification_session_service.rb +21 -5
  124. data/lib/stripe/services/identity_service.rb +1 -1
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +122 -28
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/issuing_service.rb +1 -1
  131. data/lib/stripe/services/payment_intent_service.rb +563 -313
  132. data/lib/stripe/services/payment_link_service.rb +1 -1
  133. data/lib/stripe/services/payment_method_configuration_service.rb +254 -2
  134. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  135. data/lib/stripe/services/payment_method_service.rb +59 -105
  136. data/lib/stripe/services/payout_service.rb +2 -2
  137. data/lib/stripe/services/plan_service.rb +2 -3
  138. data/lib/stripe/services/price_service.rb +2 -2
  139. data/lib/stripe/services/product_feature_service.rb +1 -2
  140. data/lib/stripe/services/product_service.rb +3 -4
  141. data/lib/stripe/services/promotion_code_service.rb +1 -1
  142. data/lib/stripe/services/quote_service.rb +21 -4
  143. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  144. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  145. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  146. data/lib/stripe/services/radar_service.rb +1 -1
  147. data/lib/stripe/services/reporting_service.rb +1 -1
  148. data/lib/stripe/services/setup_intent_service.rb +403 -291
  149. data/lib/stripe/services/sigma_service.rb +1 -1
  150. data/lib/stripe/services/source_service.rb +2 -2
  151. data/lib/stripe/services/subscription_item_service.rb +26 -0
  152. data/lib/stripe/services/subscription_schedule_service.rb +106 -3
  153. data/lib/stripe/services/subscription_service.rb +121 -26
  154. data/lib/stripe/services/tax/calculation_service.rb +6 -2
  155. data/lib/stripe/services/tax/registration_service.rb +170 -1
  156. data/lib/stripe/services/tax/transaction_service.rb +1 -1
  157. data/lib/stripe/services/tax_id_service.rb +2 -3
  158. data/lib/stripe/services/tax_service.rb +1 -1
  159. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  160. data/lib/stripe/services/terminal/location_service.rb +2 -3
  161. data/lib/stripe/services/terminal/reader_service.rb +196 -2
  162. data/lib/stripe/services/terminal_service.rb +1 -1
  163. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +90 -91
  164. data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
  165. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  166. data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
  167. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  168. data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
  169. data/lib/stripe/services/test_helpers_service.rb +1 -1
  170. data/lib/stripe/services/token_service.rb +62 -1
  171. data/lib/stripe/services/transfer_service.rb +2 -2
  172. data/lib/stripe/services/treasury/financial_account_service.rb +6 -2
  173. data/lib/stripe/services/treasury_service.rb +1 -1
  174. data/lib/stripe/services/v1_services.rb +1 -1
  175. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  176. data/lib/stripe/services/v2/billing_service.rb +3 -3
  177. data/lib/stripe/services/v2/core/event_destination_service.rb +17 -23
  178. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  179. data/lib/stripe/services/v2/core_service.rb +1 -1
  180. data/lib/stripe/services/v2_services.rb +1 -1
  181. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  182. data/lib/stripe/version.rb +1 -1
  183. data/lib/stripe/webhook.rb +1 -1
  184. data/rbi/stripe/resources/account.rbi +190 -35
  185. data/rbi/stripe/resources/account_session.rbi +196 -77
  186. data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
  187. data/rbi/stripe/resources/balance.rbi +55 -0
  188. data/rbi/stripe/resources/balance_transaction.rbi +3 -0
  189. data/rbi/stripe/resources/bank_account.rbi +2 -2
  190. data/rbi/stripe/resources/billing/alert.rbi +2 -2
  191. data/rbi/stripe/resources/billing_portal/session.rbi +3 -3
  192. data/rbi/stripe/resources/capability.rbi +1 -1
  193. data/rbi/stripe/resources/charge.rbi +52 -20
  194. data/rbi/stripe/resources/checkout/session.rbi +133 -24
  195. data/rbi/stripe/resources/confirmation_token.rbi +140 -115
  196. data/rbi/stripe/resources/country_spec.rbi +1 -1
  197. data/rbi/stripe/resources/coupon.rbi +2 -4
  198. data/rbi/stripe/resources/credit_note.rbi +23 -18
  199. data/rbi/stripe/resources/customer.rbi +4 -8
  200. data/rbi/stripe/resources/customer_session.rbi +5 -5
  201. data/rbi/stripe/resources/dispute.rbi +2 -2
  202. data/rbi/stripe/resources/event.rbi +4 -1
  203. data/rbi/stripe/resources/file.rbi +1 -1
  204. data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
  205. data/rbi/stripe/resources/identity/verification_session.rbi +59 -12
  206. data/rbi/stripe/resources/invoice.rbi +149 -40
  207. data/rbi/stripe/resources/invoice_item.rbi +3 -8
  208. data/rbi/stripe/resources/invoice_line_item.rbi +2 -2
  209. data/rbi/stripe/resources/invoice_payment.rbi +9 -2
  210. data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
  211. data/rbi/stripe/resources/issuing/card.rbi +1 -1
  212. data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
  213. data/rbi/stripe/resources/login_link.rbi +2 -1
  214. data/rbi/stripe/resources/mandate.rbi +4 -0
  215. data/rbi/stripe/resources/payment_intent.rbi +637 -381
  216. data/rbi/stripe/resources/payment_method.rbi +81 -133
  217. data/rbi/stripe/resources/payment_method_configuration.rbi +400 -4
  218. data/rbi/stripe/resources/payment_method_domain.rbi +18 -2
  219. data/rbi/stripe/resources/payout.rbi +4 -4
  220. data/rbi/stripe/resources/person.rbi +33 -3
  221. data/rbi/stripe/resources/plan.rbi +2 -4
  222. data/rbi/stripe/resources/price.rbi +1 -1
  223. data/rbi/stripe/resources/product.rbi +1 -3
  224. data/rbi/stripe/resources/quote.rbi +25 -3
  225. data/rbi/stripe/resources/radar/value_list.rbi +1 -3
  226. data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
  227. data/rbi/stripe/resources/refund.rbi +8 -1
  228. data/rbi/stripe/resources/reversal.rbi +1 -1
  229. data/rbi/stripe/resources/review.rbi +1 -1
  230. data/rbi/stripe/resources/setup_attempt.rbi +1 -1
  231. data/rbi/stripe/resources/setup_intent.rbi +464 -346
  232. data/rbi/stripe/resources/source.rbi +1 -1
  233. data/rbi/stripe/resources/subscription.rbi +150 -34
  234. data/rbi/stripe/resources/subscription_item.rbi +36 -2
  235. data/rbi/stripe/resources/subscription_schedule.rbi +161 -11
  236. data/rbi/stripe/resources/tax/calculation.rbi +7 -3
  237. data/rbi/stripe/resources/tax/calculation_line_item.rbi +4 -1
  238. data/rbi/stripe/resources/tax/registration.rbi +249 -2
  239. data/rbi/stripe/resources/tax/transaction.rbi +1 -1
  240. data/rbi/stripe/resources/tax_id.rbi +3 -5
  241. data/rbi/stripe/resources/tax_rate.rbi +2 -2
  242. data/rbi/stripe/resources/terminal/configuration.rbi +2 -3
  243. data/rbi/stripe/resources/terminal/location.rbi +4 -6
  244. data/rbi/stripe/resources/terminal/reader.rbi +415 -8
  245. data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
  246. data/rbi/stripe/resources/token.rbi +70 -4
  247. data/rbi/stripe/resources/transfer.rbi +1 -1
  248. data/rbi/stripe/resources/treasury/financial_account.rbi +6 -2
  249. data/rbi/stripe/resources/v2/billing/meter_event.rbi +3 -3
  250. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +3 -3
  251. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +3 -3
  252. data/rbi/stripe/resources/v2/event.rbi +3 -3
  253. data/rbi/stripe/resources/v2/event_destination.rbi +3 -3
  254. data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
  255. data/rbi/stripe/services/account_external_account_service.rbi +3 -5
  256. data/rbi/stripe/services/account_login_link_service.rbi +1 -1
  257. data/rbi/stripe/services/account_person_service.rbi +93 -5
  258. data/rbi/stripe/services/account_service.rbi +166 -28
  259. data/rbi/stripe/services/account_session_service.rbi +126 -52
  260. data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
  261. data/rbi/stripe/services/balance_service.rbi +1 -1
  262. data/rbi/stripe/services/billing/alert_service.rbi +2 -2
  263. data/rbi/stripe/services/billing_portal/session_service.rbi +1 -1
  264. data/rbi/stripe/services/charge_service.rbi +4 -4
  265. data/rbi/stripe/services/checkout/session_service.rbi +104 -19
  266. data/rbi/stripe/services/coupon_service.rbi +1 -3
  267. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +3 -3
  268. data/rbi/stripe/services/credit_note_service.rbi +13 -14
  269. data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
  270. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
  271. data/rbi/stripe/services/customer_payment_method_service.rbi +1 -1
  272. data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
  273. data/rbi/stripe/services/customer_service.rbi +4 -8
  274. data/rbi/stripe/services/customer_session_service.rbi +1 -1
  275. data/rbi/stripe/services/customer_tax_id_service.rbi +2 -4
  276. data/rbi/stripe/services/dispute_service.rbi +1 -1
  277. data/rbi/stripe/services/file_service.rbi +1 -1
  278. data/rbi/stripe/services/identity/verification_session_service.rbi +22 -6
  279. data/rbi/stripe/services/invoice_item_service.rbi +1 -3
  280. data/rbi/stripe/services/invoice_service.rbi +126 -35
  281. data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
  282. data/rbi/stripe/services/issuing/card_service.rbi +1 -1
  283. data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
  284. data/rbi/stripe/services/payment_intent_service.rbi +599 -369
  285. data/rbi/stripe/services/payment_method_configuration_service.rbi +280 -4
  286. data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
  287. data/rbi/stripe/services/payment_method_service.rbi +62 -121
  288. data/rbi/stripe/services/payout_service.rbi +2 -2
  289. data/rbi/stripe/services/plan_service.rbi +2 -4
  290. data/rbi/stripe/services/price_service.rbi +2 -2
  291. data/rbi/stripe/services/product_feature_service.rbi +1 -3
  292. data/rbi/stripe/services/product_service.rbi +2 -4
  293. data/rbi/stripe/services/promotion_code_service.rbi +1 -1
  294. data/rbi/stripe/services/quote_service.rbi +16 -3
  295. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
  296. data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
  297. data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
  298. data/rbi/stripe/services/setup_intent_service.rbi +457 -344
  299. data/rbi/stripe/services/source_service.rbi +1 -1
  300. data/rbi/stripe/services/subscription_item_service.rbi +28 -2
  301. data/rbi/stripe/services/subscription_schedule_service.rbi +119 -10
  302. data/rbi/stripe/services/subscription_service.rbi +121 -33
  303. data/rbi/stripe/services/tax/calculation_service.rbi +6 -2
  304. data/rbi/stripe/services/tax/registration_service.rbi +171 -2
  305. data/rbi/stripe/services/tax_id_service.rbi +2 -4
  306. data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
  307. data/rbi/stripe/services/terminal/location_service.rbi +4 -6
  308. data/rbi/stripe/services/terminal/reader_service.rbi +200 -4
  309. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +106 -106
  310. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
  311. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
  312. data/rbi/stripe/services/token_service.rbi +71 -3
  313. data/rbi/stripe/services/transfer_service.rbi +1 -1
  314. data/rbi/stripe/services/treasury/financial_account_service.rbi +6 -2
  315. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
  316. data/rbi/stripe/services/v2/billing_service.rbi +1 -1
  317. data/rbi/stripe/services/v2/core/event_destination_service.rbi +14 -22
  318. data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
  319. data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
  320. metadata +5 -2
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :line_items
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @line_items = Stripe::Checkout::SessionLineItemService.new(@requestor)
12
12
  end
13
13
 
@@ -1161,6 +1161,43 @@ module Stripe
1161
1161
  end
1162
1162
 
1163
1163
  class Klarna < Stripe::RequestParams
1164
+ class Subscription < Stripe::RequestParams
1165
+ class NextBilling < Stripe::RequestParams
1166
+ # The amount of the next charge for the subscription.
1167
+ attr_accessor :amount
1168
+ # The date of the next charge for the subscription in YYYY-MM-DD format.
1169
+ attr_accessor :date
1170
+
1171
+ def initialize(amount: nil, date: nil)
1172
+ @amount = amount
1173
+ @date = date
1174
+ end
1175
+ end
1176
+ # Unit of time between subscription charges.
1177
+ attr_accessor :interval
1178
+ # The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1179
+ attr_accessor :interval_count
1180
+ # Name for subscription.
1181
+ attr_accessor :name
1182
+ # Describes the upcoming charge for this subscription.
1183
+ attr_accessor :next_billing
1184
+ # A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1185
+ attr_accessor :reference
1186
+
1187
+ def initialize(
1188
+ interval: nil,
1189
+ interval_count: nil,
1190
+ name: nil,
1191
+ next_billing: nil,
1192
+ reference: nil
1193
+ )
1194
+ @interval = interval
1195
+ @interval_count = interval_count
1196
+ @name = name
1197
+ @next_billing = next_billing
1198
+ @reference = reference
1199
+ end
1200
+ end
1164
1201
  # Indicates that you intend to make future payments with this PaymentIntent's payment method.
1165
1202
  #
1166
1203
  # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
@@ -1169,9 +1206,12 @@ module Stripe
1169
1206
  #
1170
1207
  # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
1171
1208
  attr_accessor :setup_future_usage
1209
+ # Subscription details if the Checkout Session sets up a future subscription.
1210
+ attr_accessor :subscriptions
1172
1211
 
1173
- def initialize(setup_future_usage: nil)
1212
+ def initialize(setup_future_usage: nil, subscriptions: nil)
1174
1213
  @setup_future_usage = setup_future_usage
1214
+ @subscriptions = subscriptions
1175
1215
  end
1176
1216
  end
1177
1217
 
@@ -1310,8 +1350,7 @@ module Stripe
1310
1350
  end
1311
1351
  end
1312
1352
 
1313
- class PayByBank < Stripe::RequestParams
1314
- end
1353
+ class PayByBank < Stripe::RequestParams; end
1315
1354
 
1316
1355
  class Payco < Stripe::RequestParams
1317
1356
  # Controls when the funds will be captured from the customer's account.
@@ -1707,11 +1746,18 @@ module Stripe
1707
1746
  class SavedPaymentMethodOptions < Stripe::RequestParams
1708
1747
  # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
1709
1748
  attr_accessor :allow_redisplay_filters
1749
+ # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
1750
+ attr_accessor :payment_method_remove
1710
1751
  # Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
1711
1752
  attr_accessor :payment_method_save
1712
1753
 
1713
- def initialize(allow_redisplay_filters: nil, payment_method_save: nil)
1754
+ def initialize(
1755
+ allow_redisplay_filters: nil,
1756
+ payment_method_remove: nil,
1757
+ payment_method_save: nil
1758
+ )
1714
1759
  @allow_redisplay_filters = allow_redisplay_filters
1760
+ @payment_method_remove = payment_method_remove
1715
1761
  @payment_method_save = payment_method_save
1716
1762
  end
1717
1763
  end
@@ -1848,6 +1894,15 @@ module Stripe
1848
1894
  end
1849
1895
 
1850
1896
  class SubscriptionData < Stripe::RequestParams
1897
+ class BillingMode < Stripe::RequestParams
1898
+ # Attribute for param field type
1899
+ attr_accessor :type
1900
+
1901
+ def initialize(type: nil)
1902
+ @type = type
1903
+ end
1904
+ end
1905
+
1851
1906
  class InvoiceSettings < Stripe::RequestParams
1852
1907
  class Issuer < Stripe::RequestParams
1853
1908
  # The connected account being referenced when `type` is `account`.
@@ -1900,6 +1955,8 @@ module Stripe
1900
1955
  attr_accessor :application_fee_percent
1901
1956
  # A future timestamp to anchor the subscription's billing cycle for new subscriptions.
1902
1957
  attr_accessor :billing_cycle_anchor
1958
+ # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
1959
+ attr_accessor :billing_mode
1903
1960
  # The tax rates that will apply to any subscription item that does not have
1904
1961
  # `tax_rates` set. Invoices created will have their `default_tax_rates` populated
1905
1962
  # from the subscription.
@@ -1918,12 +1975,9 @@ module Stripe
1918
1975
  attr_accessor :proration_behavior
1919
1976
  # If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
1920
1977
  attr_accessor :transfer_data
1921
- # Unix timestamp representing the end of the trial period the customer
1922
- # will get before being charged for the first time. Has to be at least
1923
- # 48 hours in the future.
1978
+ # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
1924
1979
  attr_accessor :trial_end
1925
- # Integer representing the number of trial period days before the
1926
- # customer is charged for the first time. Has to be at least 1.
1980
+ # Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
1927
1981
  attr_accessor :trial_period_days
1928
1982
  # Settings related to subscription trials.
1929
1983
  attr_accessor :trial_settings
@@ -1931,6 +1985,7 @@ module Stripe
1931
1985
  def initialize(
1932
1986
  application_fee_percent: nil,
1933
1987
  billing_cycle_anchor: nil,
1988
+ billing_mode: nil,
1934
1989
  default_tax_rates: nil,
1935
1990
  description: nil,
1936
1991
  invoice_settings: nil,
@@ -1944,6 +1999,7 @@ module Stripe
1944
1999
  )
1945
2000
  @application_fee_percent = application_fee_percent
1946
2001
  @billing_cycle_anchor = billing_cycle_anchor
2002
+ @billing_mode = billing_mode
1947
2003
  @default_tax_rates = default_tax_rates
1948
2004
  @description = description
1949
2005
  @invoice_settings = invoice_settings
@@ -1968,6 +2024,23 @@ module Stripe
1968
2024
  @required = required
1969
2025
  end
1970
2026
  end
2027
+
2028
+ class WalletOptions < Stripe::RequestParams
2029
+ class Link < Stripe::RequestParams
2030
+ # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
2031
+ attr_accessor :display
2032
+
2033
+ def initialize(display: nil)
2034
+ @display = display
2035
+ end
2036
+ end
2037
+ # contains details about the Link wallet options.
2038
+ attr_accessor :link
2039
+
2040
+ def initialize(link: nil)
2041
+ @link = link
2042
+ end
2043
+ end
1971
2044
  # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
1972
2045
  attr_accessor :adaptive_pricing
1973
2046
  # Configure actions after a Checkout Session has expired.
@@ -2030,7 +2103,7 @@ module Stripe
2030
2103
  attr_accessor :expires_at
2031
2104
  # Generate a post-purchase Invoice for one-time payments.
2032
2105
  attr_accessor :invoice_creation
2033
- # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
2106
+ # A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
2034
2107
  #
2035
2108
  # For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
2036
2109
  #
@@ -2077,9 +2150,9 @@ module Stripe
2077
2150
  # prioritize the most relevant payment methods based on the customer's location and
2078
2151
  # other characteristics.
2079
2152
  attr_accessor :payment_method_types
2080
- # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
2153
+ # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
2081
2154
  #
2082
- # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
2155
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
2083
2156
  attr_accessor :permissions
2084
2157
  # Controls phone number collection settings for the session.
2085
2158
  #
@@ -2117,6 +2190,8 @@ module Stripe
2117
2190
  attr_accessor :tax_id_collection
2118
2191
  # The UI mode of the Session. Defaults to `hosted`.
2119
2192
  attr_accessor :ui_mode
2193
+ # Wallet-specific configuration.
2194
+ attr_accessor :wallet_options
2120
2195
 
2121
2196
  def initialize(
2122
2197
  adaptive_pricing: nil,
@@ -2161,7 +2236,8 @@ module Stripe
2161
2236
  subscription_data: nil,
2162
2237
  success_url: nil,
2163
2238
  tax_id_collection: nil,
2164
- ui_mode: nil
2239
+ ui_mode: nil,
2240
+ wallet_options: nil
2165
2241
  )
2166
2242
  @adaptive_pricing = adaptive_pricing
2167
2243
  @after_expiration = after_expiration
@@ -2206,6 +2282,7 @@ module Stripe
2206
2282
  @success_url = success_url
2207
2283
  @tax_id_collection = tax_id_collection
2208
2284
  @ui_mode = ui_mode
2285
+ @wallet_options = wallet_options
2209
2286
  end
2210
2287
  end
2211
2288
 
@@ -2374,7 +2451,7 @@ module Stripe
2374
2451
  @shipping_rate_data = shipping_rate_data
2375
2452
  end
2376
2453
  end
2377
- # Information about the customer collected within the Checkout Session.
2454
+ # Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
2378
2455
  attr_accessor :collected_information
2379
2456
  # Specifies which fields in the response should be expanded.
2380
2457
  attr_accessor :expand
@@ -2452,6 +2529,8 @@ module Stripe
2452
2529
  end
2453
2530
 
2454
2531
  # Updates a Checkout Session object.
2532
+ #
2533
+ # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
2455
2534
  def update(session, params = {}, opts = {})
2456
2535
  request(
2457
2536
  method: :post,
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :sessions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @sessions = Stripe::Checkout::SessionService.new(@requestor)
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :orders, :products, :suppliers
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @orders = Stripe::Climate::OrderService.new(@requestor)
11
11
  @products = Stripe::Climate::ProductService.new(@requestor)
12
12
  @suppliers = Stripe::Climate::SupplierService.new(@requestor)
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class CouponService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -81,7 +81,7 @@ module Stripe
81
81
  @shipping_rate = shipping_rate
82
82
  end
83
83
  end
84
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
84
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
85
85
  attr_accessor :amount
86
86
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
87
87
  attr_accessor :credit_amount
@@ -97,7 +97,7 @@ module Stripe
97
97
  attr_accessor :invoice
98
98
  # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
99
99
  attr_accessor :limit
100
- # Line items that make up the credit note.
100
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
101
101
  attr_accessor :lines
102
102
  # The credit note's memo appears on the credit note PDF.
103
103
  attr_accessor :memo
@@ -111,7 +111,7 @@ module Stripe
111
111
  attr_accessor :refund_amount
112
112
  # Refunds to link to this credit note.
113
113
  attr_accessor :refunds
114
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
114
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
115
115
  attr_accessor :shipping_cost
116
116
  # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
117
117
  attr_accessor :starting_after
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :line_items, :preview_lines
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @line_items = Stripe::CreditNoteLineItemService.new(@requestor)
11
11
  @preview_lines = Stripe::CreditNotePreviewLinesService.new(@requestor)
12
12
  end
@@ -141,7 +141,7 @@ module Stripe
141
141
  @shipping_rate = shipping_rate
142
142
  end
143
143
  end
144
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
144
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
145
145
  attr_accessor :amount
146
146
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
147
147
  attr_accessor :credit_amount
@@ -153,7 +153,7 @@ module Stripe
153
153
  attr_accessor :expand
154
154
  # ID of the invoice.
155
155
  attr_accessor :invoice
156
- # Line items that make up the credit note.
156
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
157
157
  attr_accessor :lines
158
158
  # The credit note's memo appears on the credit note PDF.
159
159
  attr_accessor :memo
@@ -167,7 +167,7 @@ module Stripe
167
167
  attr_accessor :refund_amount
168
168
  # Refunds to link to this credit note.
169
169
  attr_accessor :refunds
170
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
170
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
171
171
  attr_accessor :shipping_cost
172
172
 
173
173
  def initialize(
@@ -305,7 +305,7 @@ module Stripe
305
305
  @shipping_rate = shipping_rate
306
306
  end
307
307
  end
308
- # The integer amount in cents (or local equivalent) representing the total amount of the credit note.
308
+ # The integer amount in cents (or local equivalent) representing the total amount of the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
309
309
  attr_accessor :amount
310
310
  # The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
311
311
  attr_accessor :credit_amount
@@ -317,7 +317,7 @@ module Stripe
317
317
  attr_accessor :expand
318
318
  # ID of the invoice.
319
319
  attr_accessor :invoice
320
- # Line items that make up the credit note.
320
+ # Line items that make up the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
321
321
  attr_accessor :lines
322
322
  # The credit note's memo appears on the credit note PDF.
323
323
  attr_accessor :memo
@@ -331,7 +331,7 @@ module Stripe
331
331
  attr_accessor :refund_amount
332
332
  # Refunds to link to this credit note.
333
333
  attr_accessor :refunds
334
- # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
334
+ # When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. One of `amount`, `lines`, or `shipping_cost` must be provided.
335
335
  attr_accessor :shipping_cost
336
336
 
337
337
  def initialize(
@@ -376,20 +376,19 @@ module Stripe
376
376
  end
377
377
  end
378
378
 
379
- # Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
380
- # its amount_due. For a status=paid invoice, a credit note does not affect its amount_due. Instead, it can result
381
- # in any combination of the following:
379
+ # Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
380
+ # This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
382
381
  #
383
382
  #
384
- # Refund: create a new refund (using refund_amount) or link an existing refund (using refund).
383
+ # Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
385
384
  # Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
386
385
  # Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
387
386
  #
388
387
  #
389
- # For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.
388
+ # The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
390
389
  #
391
- # You may issue multiple credit notes for an invoice. Each credit note will increment the invoice's pre_payment_credit_notes_amount
392
- # or post_payment_credit_notes_amount depending on its status at the time of credit note creation.
390
+ # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
391
+ # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
393
392
  def create(params = {}, opts = {})
394
393
  request(
395
394
  method: :post,
@@ -444,7 +443,7 @@ module Stripe
444
443
  )
445
444
  end
446
445
 
447
- # Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
446
+ # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
448
447
  def void_credit_note(id, params = {}, opts = {})
449
448
  request(
450
449
  method: :post,
@@ -66,7 +66,7 @@ module Stripe
66
66
  end
67
67
  end
68
68
 
69
- # Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).
69
+ # Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance).
70
70
  def create(customer, params = {}, opts = {})
71
71
  request(
72
72
  method: :post,
@@ -77,7 +77,7 @@ module Stripe
77
77
  )
78
78
  end
79
79
 
80
- # Returns a list of transactions that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
80
+ # Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
81
81
  def list(customer, params = {}, opts = {})
82
82
  request(
83
83
  method: :get,
@@ -88,7 +88,7 @@ module Stripe
88
88
  )
89
89
  end
90
90
 
91
- # Retrieves a specific customer balance transaction that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).
91
+ # Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance).
92
92
  def retrieve(customer, transaction, params = {}, opts = {})
93
93
  request(
94
94
  method: :get,
@@ -30,7 +30,7 @@ module Stripe
30
30
  end
31
31
  end
32
32
 
33
- # Returns a list of transactions that modified the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
33
+ # Returns a list of transactions that modified the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
34
34
  def list(customer, params = {}, opts = {})
35
35
  request(
36
36
  method: :get,
@@ -41,7 +41,7 @@ module Stripe
41
41
  )
42
42
  end
43
43
 
44
- # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://stripe.com/docs/payments/customer-balance).
44
+ # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance).
45
45
  def retrieve(customer, transaction, params = {}, opts = {})
46
46
  request(
47
47
  method: :get,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  class CustomerPaymentMethodService < StripeService
6
6
  class ListParams < Stripe::RequestParams
7
- # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
7
+ # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow.
8
8
  attr_accessor :allow_redisplay
9
9
  # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
10
10
  attr_accessor :ending_before
@@ -186,7 +186,7 @@ module Stripe
186
186
  #
187
187
  # If the card's owner has no default card, then the new card will become the default.
188
188
  # However, if the owner already has a default, then it will not change.
189
- # To change the default, you should [update the customer](https://stripe.com/docs/api#update_customer) to have a new default_source.
189
+ # To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source.
190
190
  def create(customer, params = {}, opts = {})
191
191
  request(
192
192
  method: :post,
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :cash_balance, :balance_transactions, :cash_balance_transactions, :payment_sources, :tax_ids, :payment_methods, :funding_instructions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @cash_balance = Stripe::CustomerCashBalanceService.new(@requestor)
11
11
  @balance_transactions = Stripe::CustomerBalanceTransactionService.new(@requestor)
12
12
  @cash_balance_transactions = Stripe::CustomerCashBalanceTransactionService.new(@requestor)
@@ -16,8 +16,7 @@ module Stripe
16
16
  @funding_instructions = Stripe::CustomerFundingInstructionsService.new(@requestor)
17
17
  end
18
18
 
19
- class DeleteParams < Stripe::RequestParams
20
- end
19
+ class DeleteParams < Stripe::RequestParams; end
21
20
 
22
21
  class RetrieveParams < Stripe::RequestParams
23
22
  # Specifies which fields in the response should be expanded.
@@ -266,8 +265,7 @@ module Stripe
266
265
  end
267
266
  end
268
267
 
269
- class DeleteDiscountParams < Stripe::RequestParams
270
- end
268
+ class DeleteDiscountParams < Stripe::RequestParams; end
271
269
 
272
270
  class ListParams < Stripe::RequestParams
273
271
  class Created < Stripe::RequestParams
@@ -475,7 +473,7 @@ module Stripe
475
473
  end
476
474
 
477
475
  class TaxIdDatum < Stripe::RequestParams
478
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
476
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
479
477
  attr_accessor :type
480
478
  # Value of the tax ID.
481
479
  attr_accessor :value
@@ -636,7 +634,7 @@ module Stripe
636
634
  )
637
635
  end
638
636
 
639
- # Search for customers you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
637
+ # Search for customers you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
640
638
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
641
639
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
642
640
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -22,7 +22,7 @@ module Stripe
22
22
  attr_accessor :payment_method_allow_redisplay_filters
23
23
  # Controls whether or not the Payment Element shows saved payment methods. This parameter defaults to `disabled`.
24
24
  attr_accessor :payment_method_redisplay
25
- # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`.
25
+ # Determines the max number of saved payment methods for the Payment Element to display. This parameter defaults to `3`. The maximum redisplay limit is `10`.
26
26
  attr_accessor :payment_method_redisplay_limit
27
27
  # Controls whether the Payment Element displays the option to remove a saved payment method. This parameter defaults to `disabled`.
28
28
  #
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class CustomerTaxIdService < StripeService
6
- class DeleteParams < Stripe::RequestParams
7
- end
6
+ class DeleteParams < Stripe::RequestParams; end
8
7
 
9
8
  class RetrieveParams < Stripe::RequestParams
10
9
  # Specifies which fields in the response should be expanded.
@@ -36,7 +35,7 @@ module Stripe
36
35
  class CreateParams < Stripe::RequestParams
37
36
  # Specifies which fields in the response should be expanded.
38
37
  attr_accessor :expand
39
- # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
38
+ # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
40
39
  attr_accessor :type
41
40
  # Value of the tax ID.
42
41
  attr_accessor :value
@@ -408,7 +408,7 @@ module Stripe
408
408
 
409
409
  # When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
410
410
  #
411
- # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
411
+ # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
412
412
  def update(dispute, params = {}, opts = {})
413
413
  request(
414
414
  method: :post,
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :active_entitlements, :features
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @active_entitlements = Stripe::Entitlements::ActiveEntitlementService.new(@requestor)
11
11
  @features = Stripe::Entitlements::FeatureService.new(@requestor)
12
12
  end
@@ -110,7 +110,7 @@ module Stripe
110
110
  request(method: :get, path: "/v1/files", params: params, opts: opts, base_address: :api)
111
111
  end
112
112
 
113
- # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents).
113
+ # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents).
114
114
  def retrieve(file, params = {}, opts = {})
115
115
  request(
116
116
  method: :get,
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :owners
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @owners = Stripe::FinancialConnections::AccountOwnerService.new(@requestor)
12
12
  end
13
13
 
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :accounts, :sessions, :transactions
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @accounts = Stripe::FinancialConnections::AccountService.new(@requestor)
11
11
  @sessions = Stripe::FinancialConnections::SessionService.new(@requestor)
12
12
  @transactions = Stripe::FinancialConnections::TransactionService.new(@requestor)
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :requests
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @requests = Stripe::Forwarding::RequestService.new(@requestor)
11
11
  end
12
12
  end