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
@@ -50,20 +50,11 @@ module Stripe
50
50
  end
51
51
  end
52
52
 
53
- class Affirm < Stripe::RequestParams
54
- end
55
-
56
- class AfterpayClearpay < Stripe::RequestParams
57
- end
58
-
59
- class Alipay < Stripe::RequestParams
60
- end
61
-
62
- class Alma < Stripe::RequestParams
63
- end
64
-
65
- class AmazonPay < Stripe::RequestParams
66
- end
53
+ class Affirm < Stripe::RequestParams; end
54
+ class AfterpayClearpay < Stripe::RequestParams; end
55
+ class Alipay < Stripe::RequestParams; end
56
+ class Alma < Stripe::RequestParams; end
57
+ class AmazonPay < Stripe::RequestParams; end
67
58
 
68
59
  class AuBecsDebit < Stripe::RequestParams
69
60
  # The account number for the bank account.
@@ -89,11 +80,8 @@ module Stripe
89
80
  end
90
81
  end
91
82
 
92
- class Bancontact < Stripe::RequestParams
93
- end
94
-
95
- class Billie < Stripe::RequestParams
96
- end
83
+ class Bancontact < Stripe::RequestParams; end
84
+ class Billie < Stripe::RequestParams; end
97
85
 
98
86
  class BillingDetails < Stripe::RequestParams
99
87
  class Address < Stripe::RequestParams
@@ -134,17 +122,19 @@ module Stripe
134
122
  attr_accessor :name
135
123
  # Billing phone number (including extension).
136
124
  attr_accessor :phone
125
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
126
+ attr_accessor :tax_id
137
127
 
138
- def initialize(address: nil, email: nil, name: nil, phone: nil)
128
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
139
129
  @address = address
140
130
  @email = email
141
131
  @name = name
142
132
  @phone = phone
133
+ @tax_id = tax_id
143
134
  end
144
135
  end
145
136
 
146
- class Blik < Stripe::RequestParams
147
- end
137
+ class Blik < Stripe::RequestParams; end
148
138
 
149
139
  class Boleto < Stripe::RequestParams
150
140
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
@@ -194,11 +184,9 @@ module Stripe
194
184
  end
195
185
  end
196
186
 
197
- class Cashapp < Stripe::RequestParams
198
- end
199
-
200
- class CustomerBalance < Stripe::RequestParams
201
- end
187
+ class Cashapp < Stripe::RequestParams; end
188
+ class Crypto < Stripe::RequestParams; end
189
+ class CustomerBalance < Stripe::RequestParams; end
202
190
 
203
191
  class Eps < Stripe::RequestParams
204
192
  # The customer's bank.
@@ -221,11 +209,8 @@ module Stripe
221
209
  end
222
210
  end
223
211
 
224
- class Giropay < Stripe::RequestParams
225
- end
226
-
227
- class Grabpay < Stripe::RequestParams
228
- end
212
+ class Giropay < Stripe::RequestParams; end
213
+ class Grabpay < Stripe::RequestParams; end
229
214
 
230
215
  class Ideal < Stripe::RequestParams
231
216
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -236,11 +221,8 @@ module Stripe
236
221
  end
237
222
  end
238
223
 
239
- class InteracPresent < Stripe::RequestParams
240
- end
241
-
242
- class KakaoPay < Stripe::RequestParams
243
- end
224
+ class InteracPresent < Stripe::RequestParams; end
225
+ class KakaoPay < Stripe::RequestParams; end
244
226
 
245
227
  class Klarna < Stripe::RequestParams
246
228
  class Dob < Stripe::RequestParams
@@ -265,20 +247,11 @@ module Stripe
265
247
  end
266
248
  end
267
249
 
268
- class Konbini < Stripe::RequestParams
269
- end
270
-
271
- class KrCard < Stripe::RequestParams
272
- end
273
-
274
- class Link < Stripe::RequestParams
275
- end
276
-
277
- class Mobilepay < Stripe::RequestParams
278
- end
279
-
280
- class Multibanco < Stripe::RequestParams
281
- end
250
+ class Konbini < Stripe::RequestParams; end
251
+ class KrCard < Stripe::RequestParams; end
252
+ class Link < Stripe::RequestParams; end
253
+ class Mobilepay < Stripe::RequestParams; end
254
+ class Multibanco < Stripe::RequestParams; end
282
255
 
283
256
  class NaverPay < Stripe::RequestParams
284
257
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
@@ -320,8 +293,7 @@ module Stripe
320
293
  end
321
294
  end
322
295
 
323
- class Oxxo < Stripe::RequestParams
324
- end
296
+ class Oxxo < Stripe::RequestParams; end
325
297
 
326
298
  class P24 < Stripe::RequestParams
327
299
  # The customer's bank.
@@ -332,23 +304,12 @@ module Stripe
332
304
  end
333
305
  end
334
306
 
335
- class PayByBank < Stripe::RequestParams
336
- end
337
-
338
- class Payco < Stripe::RequestParams
339
- end
340
-
341
- class Paynow < Stripe::RequestParams
342
- end
343
-
344
- class Paypal < Stripe::RequestParams
345
- end
346
-
347
- class Pix < Stripe::RequestParams
348
- end
349
-
350
- class Promptpay < Stripe::RequestParams
351
- end
307
+ class PayByBank < Stripe::RequestParams; end
308
+ class Payco < Stripe::RequestParams; end
309
+ class Paynow < Stripe::RequestParams; end
310
+ class Paypal < Stripe::RequestParams; end
311
+ class Pix < Stripe::RequestParams; end
312
+ class Promptpay < Stripe::RequestParams; end
352
313
 
353
314
  class RadarOptions < Stripe::RequestParams
354
315
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -359,14 +320,9 @@ module Stripe
359
320
  end
360
321
  end
361
322
 
362
- class RevolutPay < Stripe::RequestParams
363
- end
364
-
365
- class SamsungPay < Stripe::RequestParams
366
- end
367
-
368
- class Satispay < Stripe::RequestParams
369
- end
323
+ class RevolutPay < Stripe::RequestParams; end
324
+ class SamsungPay < Stripe::RequestParams; end
325
+ class Satispay < Stripe::RequestParams; end
370
326
 
371
327
  class SepaDebit < Stripe::RequestParams
372
328
  # IBAN of the bank account.
@@ -386,11 +342,8 @@ module Stripe
386
342
  end
387
343
  end
388
344
 
389
- class Swish < Stripe::RequestParams
390
- end
391
-
392
- class Twint < Stripe::RequestParams
393
- end
345
+ class Swish < Stripe::RequestParams; end
346
+ class Twint < Stripe::RequestParams; end
394
347
 
395
348
  class UsBankAccount < Stripe::RequestParams
396
349
  # Account holder type: individual or company.
@@ -419,11 +372,8 @@ module Stripe
419
372
  end
420
373
  end
421
374
 
422
- class WechatPay < Stripe::RequestParams
423
- end
424
-
425
- class Zip < Stripe::RequestParams
426
- end
375
+ class WechatPay < Stripe::RequestParams; end
376
+ class Zip < Stripe::RequestParams; end
427
377
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
428
378
  attr_accessor :acss_debit
429
379
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -444,7 +394,7 @@ module Stripe
444
394
  attr_accessor :bacs_debit
445
395
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
446
396
  attr_accessor :bancontact
447
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
397
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
448
398
  attr_accessor :billie
449
399
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
450
400
  attr_accessor :billing_details
@@ -456,6 +406,8 @@ module Stripe
456
406
  attr_accessor :card
457
407
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
458
408
  attr_accessor :cashapp
409
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
410
+ attr_accessor :crypto
459
411
  # The `Customer` to whom the original PaymentMethod is attached.
460
412
  attr_accessor :customer
461
413
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
@@ -514,11 +466,11 @@ module Stripe
514
466
  attr_accessor :promptpay
515
467
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
516
468
  attr_accessor :radar_options
517
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
469
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
518
470
  attr_accessor :revolut_pay
519
471
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
520
472
  attr_accessor :samsung_pay
521
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
473
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
522
474
  attr_accessor :satispay
523
475
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
524
476
  attr_accessor :sepa_debit
@@ -554,6 +506,7 @@ module Stripe
554
506
  boleto: nil,
555
507
  card: nil,
556
508
  cashapp: nil,
509
+ crypto: nil,
557
510
  customer: nil,
558
511
  customer_balance: nil,
559
512
  eps: nil,
@@ -611,6 +564,7 @@ module Stripe
611
564
  @boleto = boleto
612
565
  @card = card
613
566
  @cashapp = cashapp
567
+ @crypto = crypto
614
568
  @customer = customer
615
569
  @customer_balance = customer_balance
616
570
  @eps = eps
@@ -703,12 +657,15 @@ module Stripe
703
657
  attr_accessor :name
704
658
  # Billing phone number (including extension).
705
659
  attr_accessor :phone
660
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
661
+ attr_accessor :tax_id
706
662
 
707
- def initialize(address: nil, email: nil, name: nil, phone: nil)
663
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
708
664
  @address = address
709
665
  @email = email
710
666
  @name = name
711
667
  @phone = phone
668
+ @tax_id = tax_id
712
669
  end
713
670
  end
714
671
 
@@ -735,11 +692,8 @@ module Stripe
735
692
  end
736
693
  end
737
694
 
738
- class Link < Stripe::RequestParams
739
- end
740
-
741
- class PayByBank < Stripe::RequestParams
742
- end
695
+ class Link < Stripe::RequestParams; end
696
+ class PayByBank < Stripe::RequestParams; end
743
697
 
744
698
  class UsBankAccount < Stripe::RequestParams
745
699
  # Bank account holder type.
@@ -813,16 +767,16 @@ module Stripe
813
767
 
814
768
  # Attaches a PaymentMethod object to a Customer.
815
769
  #
816
- # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
817
- # or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
770
+ # To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
771
+ # or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
818
772
  # These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
819
773
  # endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
820
774
  # future use, which makes later declines and payment friction more likely.
821
- # See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
775
+ # See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
822
776
  # future payments.
823
777
  #
824
778
  # To use this PaymentMethod as the default for invoice or subscription payments,
825
- # set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
779
+ # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
826
780
  # on the Customer to the PaymentMethod's ID.
827
781
  def attach(payment_method, params = {}, opts = {})
828
782
  request(
@@ -834,9 +788,9 @@ module Stripe
834
788
  )
835
789
  end
836
790
 
837
- # Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
791
+ # Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
838
792
  #
839
- # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
793
+ # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
840
794
  def create(params = {}, opts = {})
841
795
  request(
842
796
  method: :post,
@@ -858,7 +812,7 @@ module Stripe
858
812
  )
859
813
  end
860
814
 
861
- # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
815
+ # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
862
816
  def list(params = {}, opts = {})
863
817
  request(
864
818
  method: :get,
@@ -869,7 +823,7 @@ module Stripe
869
823
  )
870
824
  end
871
825
 
872
- # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
826
+ # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
873
827
  def retrieve(payment_method, params = {}, opts = {})
874
828
  request(
875
829
  method: :get,
@@ -173,11 +173,11 @@ module Stripe
173
173
  )
174
174
  end
175
175
 
176
- # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/docs/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
176
+ # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
177
177
  #
178
178
  # If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
179
179
  #
180
- # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/docs/api#balance_object) details available and pending amounts by source type.
180
+ # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
181
181
  def create(params = {}, opts = {})
182
182
  request(method: :post, path: "/v1/payouts", params: params, opts: opts, base_address: :api)
183
183
  end
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class PlanService < 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.
@@ -252,7 +251,7 @@ module Stripe
252
251
  end
253
252
  end
254
253
 
255
- # You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/docs/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
254
+ # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
256
255
  def create(params = {}, opts = {})
257
256
  request(method: :post, path: "/v1/plans", params: params, opts: opts, base_address: :api)
258
257
  end
@@ -501,7 +501,7 @@ module Stripe
501
501
  request(method: :post, path: "/v1/prices", params: params, opts: opts, base_address: :api)
502
502
  end
503
503
 
504
- # Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
504
+ # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
505
505
  def list(params = {}, opts = {})
506
506
  request(method: :get, path: "/v1/prices", params: params, opts: opts, base_address: :api)
507
507
  end
@@ -517,7 +517,7 @@ module Stripe
517
517
  )
518
518
  end
519
519
 
520
- # Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
520
+ # Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
521
521
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
522
522
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
523
523
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -3,8 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  class ProductFeatureService < 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.
@@ -6,12 +6,11 @@ module Stripe
6
6
  attr_reader :features
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @features = Stripe::ProductFeatureService.new(@requestor)
11
11
  end
12
12
 
13
- class DeleteParams < Stripe::RequestParams
14
- end
13
+ class DeleteParams < Stripe::RequestParams; end
15
14
 
16
15
  class RetrieveParams < Stripe::RequestParams
17
16
  # Specifies which fields in the response should be expanded.
@@ -467,7 +466,7 @@ module Stripe
467
466
  )
468
467
  end
469
468
 
470
- # Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
469
+ # Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
471
470
  # Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
472
471
  # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
473
472
  # to an hour behind during outages. Search functionality is not available to merchants in India.
@@ -203,7 +203,7 @@ module Stripe
203
203
  )
204
204
  end
205
205
 
206
- # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
206
+ # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code.
207
207
  def retrieve(promotion_code, params = {}, opts = {})
208
208
  request(
209
209
  method: :get,
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :line_items, :computed_upfront_line_items
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @line_items = Stripe::QuoteLineItemService.new(@requestor)
11
11
  @computed_upfront_line_items = Stripe::QuoteComputedUpfrontLineItemsService.new(@requestor)
12
12
  end
@@ -198,16 +198,33 @@ module Stripe
198
198
  end
199
199
 
200
200
  class SubscriptionData < Stripe::RequestParams
201
+ class BillingMode < Stripe::RequestParams
202
+ # Attribute for param field type
203
+ attr_accessor :type
204
+
205
+ def initialize(type: nil)
206
+ @type = type
207
+ end
208
+ end
209
+ # Controls how prorations and invoices for subscriptions are calculated and orchestrated.
210
+ attr_accessor :billing_mode
201
211
  # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
202
212
  attr_accessor :description
203
- # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
213
+ # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
204
214
  attr_accessor :effective_date
205
215
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
206
216
  attr_accessor :metadata
207
217
  # Integer representing the number of trial period days before the customer is charged for the first time.
208
218
  attr_accessor :trial_period_days
209
219
 
210
- def initialize(description: nil, effective_date: nil, metadata: nil, trial_period_days: nil)
220
+ def initialize(
221
+ billing_mode: nil,
222
+ description: nil,
223
+ effective_date: nil,
224
+ metadata: nil,
225
+ trial_period_days: nil
226
+ )
227
+ @billing_mode = billing_mode
211
228
  @description = description
212
229
  @effective_date = effective_date
213
230
  @metadata = metadata
@@ -476,7 +493,7 @@ module Stripe
476
493
  class SubscriptionData < Stripe::RequestParams
477
494
  # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
478
495
  attr_accessor :description
479
- # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
496
+ # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted.
480
497
  attr_accessor :effective_date
481
498
  # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
482
499
  attr_accessor :metadata
@@ -78,7 +78,7 @@ module Stripe
78
78
 
79
79
  # Retrieves the details of an early fraud warning that has previously been created.
80
80
  #
81
- # Please refer to the [early fraud warning](https://stripe.com/docs/api#early_fraud_warning_object) object reference for more details.
81
+ # Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
82
82
  def retrieve(early_fraud_warning, params = {}, opts = {})
83
83
  request(
84
84
  method: :get,
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module Radar
6
6
  class ValueListItemService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
- end
7
+ class DeleteParams < Stripe::RequestParams; end
9
8
 
10
9
  class RetrieveParams < Stripe::RequestParams
11
10
  # Specifies which fields in the response should be expanded.
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module Radar
6
6
  class ValueListService < StripeService
7
- class DeleteParams < Stripe::RequestParams
8
- end
7
+ class DeleteParams < Stripe::RequestParams; end
9
8
 
10
9
  class RetrieveParams < Stripe::RequestParams
11
10
  # Specifies which fields in the response should be expanded.
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :early_fraud_warnings, :value_lists, :value_list_items
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @early_fraud_warnings = Stripe::Radar::EarlyFraudWarningService.new(@requestor)
11
11
  @value_lists = Stripe::Radar::ValueListService.new(@requestor)
12
12
  @value_list_items = Stripe::Radar::ValueListItemService.new(@requestor)
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :report_runs, :report_types
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @report_runs = Stripe::Reporting::ReportRunService.new(@requestor)
11
11
  @report_types = Stripe::Reporting::ReportTypeService.new(@requestor)
12
12
  end