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
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module Terminal
6
6
  class ReaderService < 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.
@@ -106,6 +105,164 @@ module Stripe
106
105
  end
107
106
  end
108
107
 
108
+ class CollectInputsParams < Stripe::RequestParams
109
+ class Input < Stripe::RequestParams
110
+ class CustomText < Stripe::RequestParams
111
+ # The description which will be displayed when collecting this input
112
+ attr_accessor :description
113
+ # The skip button text
114
+ attr_accessor :skip_button
115
+ # The submit button text
116
+ attr_accessor :submit_button
117
+ # The title which will be displayed when collecting this input
118
+ attr_accessor :title
119
+
120
+ def initialize(description: nil, skip_button: nil, submit_button: nil, title: nil)
121
+ @description = description
122
+ @skip_button = skip_button
123
+ @submit_button = submit_button
124
+ @title = title
125
+ end
126
+ end
127
+
128
+ class Selection < Stripe::RequestParams
129
+ class Choice < Stripe::RequestParams
130
+ # The unique identifier for this choice
131
+ attr_accessor :id
132
+ # The style of the button which will be shown for this choice
133
+ attr_accessor :style
134
+ # The text which will be shown on the button for this choice
135
+ attr_accessor :text
136
+
137
+ def initialize(id: nil, style: nil, text: nil)
138
+ @id = id
139
+ @style = style
140
+ @text = text
141
+ end
142
+ end
143
+ # List of choices for the `selection` input
144
+ attr_accessor :choices
145
+
146
+ def initialize(choices: nil)
147
+ @choices = choices
148
+ end
149
+ end
150
+
151
+ class Toggle < Stripe::RequestParams
152
+ # The default value of the toggle
153
+ attr_accessor :default_value
154
+ # The description which will be displayed for the toggle
155
+ attr_accessor :description
156
+ # The title which will be displayed for the toggle
157
+ attr_accessor :title
158
+
159
+ def initialize(default_value: nil, description: nil, title: nil)
160
+ @default_value = default_value
161
+ @description = description
162
+ @title = title
163
+ end
164
+ end
165
+ # Customize the text which will be displayed while collecting this input
166
+ attr_accessor :custom_text
167
+ # Indicate that this input is required, disabling the skip button
168
+ attr_accessor :required
169
+ # Options for the `selection` input
170
+ attr_accessor :selection
171
+ # List of toggles to be displayed and customization for the toggles
172
+ attr_accessor :toggles
173
+ # The type of input to collect
174
+ attr_accessor :type
175
+
176
+ def initialize(custom_text: nil, required: nil, selection: nil, toggles: nil, type: nil)
177
+ @custom_text = custom_text
178
+ @required = required
179
+ @selection = selection
180
+ @toggles = toggles
181
+ @type = type
182
+ end
183
+ end
184
+ # Specifies which fields in the response should be expanded.
185
+ attr_accessor :expand
186
+ # List of inputs to be collected using the Reader
187
+ attr_accessor :inputs
188
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
189
+ attr_accessor :metadata
190
+
191
+ def initialize(expand: nil, inputs: nil, metadata: nil)
192
+ @expand = expand
193
+ @inputs = inputs
194
+ @metadata = metadata
195
+ end
196
+ end
197
+
198
+ class CollectPaymentMethodParams < Stripe::RequestParams
199
+ class CollectConfig < Stripe::RequestParams
200
+ class Tipping < Stripe::RequestParams
201
+ # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
202
+ attr_accessor :amount_eligible
203
+
204
+ def initialize(amount_eligible: nil)
205
+ @amount_eligible = amount_eligible
206
+ end
207
+ end
208
+ # 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.
209
+ attr_accessor :allow_redisplay
210
+ # Enables cancel button on transaction screens.
211
+ attr_accessor :enable_customer_cancellation
212
+ # Override showing a tipping selection screen on this transaction.
213
+ attr_accessor :skip_tipping
214
+ # Tipping configuration for this transaction.
215
+ attr_accessor :tipping
216
+
217
+ def initialize(
218
+ allow_redisplay: nil,
219
+ enable_customer_cancellation: nil,
220
+ skip_tipping: nil,
221
+ tipping: nil
222
+ )
223
+ @allow_redisplay = allow_redisplay
224
+ @enable_customer_cancellation = enable_customer_cancellation
225
+ @skip_tipping = skip_tipping
226
+ @tipping = tipping
227
+ end
228
+ end
229
+ # Configuration overrides.
230
+ attr_accessor :collect_config
231
+ # Specifies which fields in the response should be expanded.
232
+ attr_accessor :expand
233
+ # PaymentIntent ID.
234
+ attr_accessor :payment_intent
235
+
236
+ def initialize(collect_config: nil, expand: nil, payment_intent: nil)
237
+ @collect_config = collect_config
238
+ @expand = expand
239
+ @payment_intent = payment_intent
240
+ end
241
+ end
242
+
243
+ class ConfirmPaymentIntentParams < Stripe::RequestParams
244
+ class ConfirmConfig < Stripe::RequestParams
245
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
246
+ attr_accessor :return_url
247
+
248
+ def initialize(return_url: nil)
249
+ @return_url = return_url
250
+ end
251
+ end
252
+ # Configuration overrides.
253
+ attr_accessor :confirm_config
254
+ # Specifies which fields in the response should be expanded.
255
+ attr_accessor :expand
256
+ # PaymentIntent ID.
257
+ attr_accessor :payment_intent
258
+
259
+ def initialize(confirm_config: nil, expand: nil, payment_intent: nil)
260
+ @confirm_config = confirm_config
261
+ @expand = expand
262
+ @payment_intent = payment_intent
263
+ end
264
+ end
265
+
109
266
  class ProcessPaymentIntentParams < Stripe::RequestParams
110
267
  class ProcessConfig < Stripe::RequestParams
111
268
  class Tipping < Stripe::RequestParams
@@ -120,6 +277,8 @@ module Stripe
120
277
  attr_accessor :allow_redisplay
121
278
  # Enables cancel button on transaction screens.
122
279
  attr_accessor :enable_customer_cancellation
280
+ # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
281
+ attr_accessor :return_url
123
282
  # Override showing a tipping selection screen on this transaction.
124
283
  attr_accessor :skip_tipping
125
284
  # Tipping configuration for this transaction.
@@ -128,11 +287,13 @@ module Stripe
128
287
  def initialize(
129
288
  allow_redisplay: nil,
130
289
  enable_customer_cancellation: nil,
290
+ return_url: nil,
131
291
  skip_tipping: nil,
132
292
  tipping: nil
133
293
  )
134
294
  @allow_redisplay = allow_redisplay
135
295
  @enable_customer_cancellation = enable_customer_cancellation
296
+ @return_url = return_url
136
297
  @skip_tipping = skip_tipping
137
298
  @tipping = tipping
138
299
  end
@@ -281,6 +442,39 @@ module Stripe
281
442
  )
282
443
  end
283
444
 
445
+ # Initiates an input collection flow on a Reader.
446
+ def collect_inputs(reader, params = {}, opts = {})
447
+ request(
448
+ method: :post,
449
+ path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
450
+ params: params,
451
+ opts: opts,
452
+ base_address: :api
453
+ )
454
+ end
455
+
456
+ # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
457
+ def collect_payment_method(reader, params = {}, opts = {})
458
+ request(
459
+ method: :post,
460
+ path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
461
+ params: params,
462
+ opts: opts,
463
+ base_address: :api
464
+ )
465
+ end
466
+
467
+ # Finalizes a payment on a Reader.
468
+ def confirm_payment_intent(reader, params = {}, opts = {})
469
+ request(
470
+ method: :post,
471
+ path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
472
+ params: params,
473
+ opts: opts,
474
+ base_address: :api
475
+ )
476
+ end
477
+
284
478
  # Creates a new Reader object.
285
479
  def create(params = {}, opts = {})
286
480
  request(
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :configurations, :connection_tokens, :locations, :readers
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @configurations = Stripe::Terminal::ConfigurationService.new(@requestor)
11
11
  @connection_tokens = Stripe::Terminal::ConnectionTokenService.new(@requestor)
12
12
  @locations = Stripe::Terminal::LocationService.new(@requestor)
@@ -21,20 +21,11 @@ module Stripe
21
21
  end
22
22
  end
23
23
 
24
- class Affirm < Stripe::RequestParams
25
- end
26
-
27
- class AfterpayClearpay < Stripe::RequestParams
28
- end
29
-
30
- class Alipay < Stripe::RequestParams
31
- end
32
-
33
- class Alma < Stripe::RequestParams
34
- end
35
-
36
- class AmazonPay < Stripe::RequestParams
37
- end
24
+ class Affirm < Stripe::RequestParams; end
25
+ class AfterpayClearpay < Stripe::RequestParams; end
26
+ class Alipay < Stripe::RequestParams; end
27
+ class Alma < Stripe::RequestParams; end
28
+ class AmazonPay < Stripe::RequestParams; end
38
29
 
39
30
  class AuBecsDebit < Stripe::RequestParams
40
31
  # The account number for the bank account.
@@ -60,11 +51,8 @@ module Stripe
60
51
  end
61
52
  end
62
53
 
63
- class Bancontact < Stripe::RequestParams
64
- end
65
-
66
- class Billie < Stripe::RequestParams
67
- end
54
+ class Bancontact < Stripe::RequestParams; end
55
+ class Billie < Stripe::RequestParams; end
68
56
 
69
57
  class BillingDetails < Stripe::RequestParams
70
58
  class Address < Stripe::RequestParams
@@ -105,17 +93,19 @@ module Stripe
105
93
  attr_accessor :name
106
94
  # Billing phone number (including extension).
107
95
  attr_accessor :phone
96
+ # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
97
+ attr_accessor :tax_id
108
98
 
109
- def initialize(address: nil, email: nil, name: nil, phone: nil)
99
+ def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
110
100
  @address = address
111
101
  @email = email
112
102
  @name = name
113
103
  @phone = phone
104
+ @tax_id = tax_id
114
105
  end
115
106
  end
116
107
 
117
- class Blik < Stripe::RequestParams
118
- end
108
+ class Blik < Stripe::RequestParams; end
119
109
 
120
110
  class Boleto < Stripe::RequestParams
121
111
  # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
@@ -126,11 +116,9 @@ module Stripe
126
116
  end
127
117
  end
128
118
 
129
- class Cashapp < Stripe::RequestParams
130
- end
131
-
132
- class CustomerBalance < Stripe::RequestParams
133
- end
119
+ class Cashapp < Stripe::RequestParams; end
120
+ class Crypto < Stripe::RequestParams; end
121
+ class CustomerBalance < Stripe::RequestParams; end
134
122
 
135
123
  class Eps < Stripe::RequestParams
136
124
  # The customer's bank.
@@ -153,11 +141,8 @@ module Stripe
153
141
  end
154
142
  end
155
143
 
156
- class Giropay < Stripe::RequestParams
157
- end
158
-
159
- class Grabpay < Stripe::RequestParams
160
- end
144
+ class Giropay < Stripe::RequestParams; end
145
+ class Grabpay < Stripe::RequestParams; end
161
146
 
162
147
  class Ideal < Stripe::RequestParams
163
148
  # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -168,11 +153,8 @@ module Stripe
168
153
  end
169
154
  end
170
155
 
171
- class InteracPresent < Stripe::RequestParams
172
- end
173
-
174
- class KakaoPay < Stripe::RequestParams
175
- end
156
+ class InteracPresent < Stripe::RequestParams; end
157
+ class KakaoPay < Stripe::RequestParams; end
176
158
 
177
159
  class Klarna < Stripe::RequestParams
178
160
  class Dob < Stripe::RequestParams
@@ -197,20 +179,11 @@ module Stripe
197
179
  end
198
180
  end
199
181
 
200
- class Konbini < Stripe::RequestParams
201
- end
202
-
203
- class KrCard < Stripe::RequestParams
204
- end
205
-
206
- class Link < Stripe::RequestParams
207
- end
208
-
209
- class Mobilepay < Stripe::RequestParams
210
- end
211
-
212
- class Multibanco < Stripe::RequestParams
213
- end
182
+ class Konbini < Stripe::RequestParams; end
183
+ class KrCard < Stripe::RequestParams; end
184
+ class Link < Stripe::RequestParams; end
185
+ class Mobilepay < Stripe::RequestParams; end
186
+ class Multibanco < Stripe::RequestParams; end
214
187
 
215
188
  class NaverPay < Stripe::RequestParams
216
189
  # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
@@ -252,8 +225,7 @@ module Stripe
252
225
  end
253
226
  end
254
227
 
255
- class Oxxo < Stripe::RequestParams
256
- end
228
+ class Oxxo < Stripe::RequestParams; end
257
229
 
258
230
  class P24 < Stripe::RequestParams
259
231
  # The customer's bank.
@@ -264,23 +236,12 @@ module Stripe
264
236
  end
265
237
  end
266
238
 
267
- class PayByBank < Stripe::RequestParams
268
- end
269
-
270
- class Payco < Stripe::RequestParams
271
- end
272
-
273
- class Paynow < Stripe::RequestParams
274
- end
275
-
276
- class Paypal < Stripe::RequestParams
277
- end
278
-
279
- class Pix < Stripe::RequestParams
280
- end
281
-
282
- class Promptpay < Stripe::RequestParams
283
- end
239
+ class PayByBank < Stripe::RequestParams; end
240
+ class Payco < Stripe::RequestParams; end
241
+ class Paynow < Stripe::RequestParams; end
242
+ class Paypal < Stripe::RequestParams; end
243
+ class Pix < Stripe::RequestParams; end
244
+ class Promptpay < Stripe::RequestParams; end
284
245
 
285
246
  class RadarOptions < Stripe::RequestParams
286
247
  # 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.
@@ -291,14 +252,9 @@ module Stripe
291
252
  end
292
253
  end
293
254
 
294
- class RevolutPay < Stripe::RequestParams
295
- end
296
-
297
- class SamsungPay < Stripe::RequestParams
298
- end
299
-
300
- class Satispay < Stripe::RequestParams
301
- end
255
+ class RevolutPay < Stripe::RequestParams; end
256
+ class SamsungPay < Stripe::RequestParams; end
257
+ class Satispay < Stripe::RequestParams; end
302
258
 
303
259
  class SepaDebit < Stripe::RequestParams
304
260
  # IBAN of the bank account.
@@ -318,11 +274,8 @@ module Stripe
318
274
  end
319
275
  end
320
276
 
321
- class Swish < Stripe::RequestParams
322
- end
323
-
324
- class Twint < Stripe::RequestParams
325
- end
277
+ class Swish < Stripe::RequestParams; end
278
+ class Twint < Stripe::RequestParams; end
326
279
 
327
280
  class UsBankAccount < Stripe::RequestParams
328
281
  # Account holder type: individual or company.
@@ -351,11 +304,8 @@ module Stripe
351
304
  end
352
305
  end
353
306
 
354
- class WechatPay < Stripe::RequestParams
355
- end
356
-
357
- class Zip < Stripe::RequestParams
358
- end
307
+ class WechatPay < Stripe::RequestParams; end
308
+ class Zip < Stripe::RequestParams; end
359
309
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
360
310
  attr_accessor :acss_debit
361
311
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
@@ -376,7 +326,7 @@ module Stripe
376
326
  attr_accessor :bacs_debit
377
327
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
378
328
  attr_accessor :bancontact
379
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
329
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
380
330
  attr_accessor :billie
381
331
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
382
332
  attr_accessor :billing_details
@@ -386,6 +336,8 @@ module Stripe
386
336
  attr_accessor :boleto
387
337
  # If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
388
338
  attr_accessor :cashapp
339
+ # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
340
+ attr_accessor :crypto
389
341
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
390
342
  attr_accessor :customer_balance
391
343
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
@@ -438,11 +390,11 @@ module Stripe
438
390
  attr_accessor :promptpay
439
391
  # Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
440
392
  attr_accessor :radar_options
441
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
393
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
442
394
  attr_accessor :revolut_pay
443
395
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
444
396
  attr_accessor :samsung_pay
445
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
397
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
446
398
  attr_accessor :satispay
447
399
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
448
400
  attr_accessor :sepa_debit
@@ -477,6 +429,7 @@ module Stripe
477
429
  blik: nil,
478
430
  boleto: nil,
479
431
  cashapp: nil,
432
+ crypto: nil,
480
433
  customer_balance: nil,
481
434
  eps: nil,
482
435
  fpx: nil,
@@ -530,6 +483,7 @@ module Stripe
530
483
  @blik = blik
531
484
  @boleto = boleto
532
485
  @cashapp = cashapp
486
+ @crypto = crypto
533
487
  @customer_balance = customer_balance
534
488
  @eps = eps
535
489
  @fpx = fpx
@@ -570,6 +524,47 @@ module Stripe
570
524
  end
571
525
  end
572
526
 
527
+ class PaymentMethodOptions < Stripe::RequestParams
528
+ class Card < Stripe::RequestParams
529
+ class Installments < Stripe::RequestParams
530
+ class Plan < Stripe::RequestParams
531
+ # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
532
+ attr_accessor :count
533
+ # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
534
+ # One of `month`.
535
+ attr_accessor :interval
536
+ # Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
537
+ attr_accessor :type
538
+
539
+ def initialize(count: nil, interval: nil, type: nil)
540
+ @count = count
541
+ @interval = interval
542
+ @type = type
543
+ end
544
+ end
545
+ # The selected installment plan to use for this payment attempt.
546
+ # This parameter can only be provided during confirmation.
547
+ attr_accessor :plan
548
+
549
+ def initialize(plan: nil)
550
+ @plan = plan
551
+ end
552
+ end
553
+ # Installment configuration for payments confirmed using this ConfirmationToken.
554
+ attr_accessor :installments
555
+
556
+ def initialize(installments: nil)
557
+ @installments = installments
558
+ end
559
+ end
560
+ # Configuration for any card payments confirmed using this ConfirmationToken.
561
+ attr_accessor :card
562
+
563
+ def initialize(card: nil)
564
+ @card = card
565
+ end
566
+ end
567
+
573
568
  class Shipping < Stripe::RequestParams
574
569
  class Address < Stripe::RequestParams
575
570
  # City, district, suburb, town, or village.
@@ -620,6 +615,8 @@ module Stripe
620
615
  attr_accessor :payment_method
621
616
  # If provided, this hash will be used to create a PaymentMethod.
622
617
  attr_accessor :payment_method_data
618
+ # Payment-method-specific configuration for this ConfirmationToken.
619
+ attr_accessor :payment_method_options
623
620
  # Return URL used to confirm the Intent.
624
621
  attr_accessor :return_url
625
622
  # Indicates that you intend to make future payments with this ConfirmationToken's payment method.
@@ -633,6 +630,7 @@ module Stripe
633
630
  expand: nil,
634
631
  payment_method: nil,
635
632
  payment_method_data: nil,
633
+ payment_method_options: nil,
636
634
  return_url: nil,
637
635
  setup_future_usage: nil,
638
636
  shipping: nil
@@ -640,6 +638,7 @@ module Stripe
640
638
  @expand = expand
641
639
  @payment_method = payment_method
642
640
  @payment_method_data = payment_method_data
641
+ @payment_method_options = payment_method_options
643
642
  @return_url = return_url
644
643
  @setup_future_usage = setup_future_usage
645
644
  @shipping = shipping
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :authorizations, :cards, :personalization_designs, :transactions
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @authorizations = Stripe::TestHelpers::Issuing::AuthorizationService.new(@requestor)
12
12
  @cards = Stripe::TestHelpers::Issuing::CardService.new(@requestor)
13
13
  @personalization_designs = Stripe::TestHelpers::Issuing::PersonalizationDesignService
@@ -49,6 +49,27 @@ module Stripe
49
49
  end
50
50
  end
51
51
 
52
+ class SucceedInputCollectionParams < Stripe::RequestParams
53
+ # Specifies which fields in the response should be expanded.
54
+ attr_accessor :expand
55
+ # This parameter defines the skip behavior for input collection.
56
+ attr_accessor :skip_non_required_inputs
57
+
58
+ def initialize(expand: nil, skip_non_required_inputs: nil)
59
+ @expand = expand
60
+ @skip_non_required_inputs = skip_non_required_inputs
61
+ end
62
+ end
63
+
64
+ class TimeoutInputCollectionParams < Stripe::RequestParams
65
+ # Specifies which fields in the response should be expanded.
66
+ attr_accessor :expand
67
+
68
+ def initialize(expand: nil)
69
+ @expand = expand
70
+ end
71
+ end
72
+
52
73
  # Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
53
74
  def present_payment_method(reader, params = {}, opts = {})
54
75
  request(
@@ -59,6 +80,28 @@ module Stripe
59
80
  base_address: :api
60
81
  )
61
82
  end
83
+
84
+ # Use this endpoint to trigger a successful input collection on a simulated reader.
85
+ def succeed_input_collection(reader, params = {}, opts = {})
86
+ request(
87
+ method: :post,
88
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/succeed_input_collection", { reader: CGI.escape(reader) }),
89
+ params: params,
90
+ opts: opts,
91
+ base_address: :api
92
+ )
93
+ end
94
+
95
+ # Use this endpoint to complete an input collection with a timeout error on a simulated reader.
96
+ def timeout_input_collection(reader, params = {}, opts = {})
97
+ request(
98
+ method: :post,
99
+ path: format("/v1/test_helpers/terminal/readers/%<reader>s/timeout_input_collection", { reader: CGI.escape(reader) }),
100
+ params: params,
101
+ opts: opts,
102
+ base_address: :api
103
+ )
104
+ end
62
105
  end
63
106
  end
64
107
  end
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :readers
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @readers = Stripe::TestHelpers::Terminal::ReaderService.new(@requestor)
12
12
  end
13
13
  end
@@ -4,8 +4,7 @@
4
4
  module Stripe
5
5
  module TestHelpers
6
6
  class TestClockService < 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.
@@ -7,7 +7,7 @@ module Stripe
7
7
  attr_reader :inbound_transfers, :outbound_payments, :outbound_transfers, :received_credits, :received_debits
8
8
 
9
9
  def initialize(requestor)
10
- super(requestor)
10
+ super
11
11
  @inbound_transfers = Stripe::TestHelpers::Treasury::InboundTransferService.new(@requestor)
12
12
  @outbound_payments = Stripe::TestHelpers::Treasury::OutboundPaymentService.new(@requestor)
13
13
  @outbound_transfers = Stripe::TestHelpers::Treasury::OutboundTransferService.new(@requestor)
@@ -6,7 +6,7 @@ module Stripe
6
6
  attr_reader :confirmation_tokens, :customers, :issuing, :refunds, :terminal, :test_clocks, :treasury
7
7
 
8
8
  def initialize(requestor)
9
- super(requestor)
9
+ super
10
10
  @confirmation_tokens = Stripe::TestHelpers::ConfirmationTokenService.new(@requestor)
11
11
  @customers = Stripe::TestHelpers::CustomerService.new(@requestor)
12
12
  @issuing = Stripe::TestHelpers::IssuingService.new(@requestor)